MAp Highlighting¶
This module adds highlighting of the map objects to the game.
How to highlight army¶
Entity requestEntity = EntityManager.CreateEntity(typeof(ArmyHighlightRequest));
EntityManager.SetComponentData(requestEntity, new ArmyHighlightRequest {
Army = armyEntity,
Highlight = true,
});
How to highlight city¶
Entity requestEntity = EntityManager.CreateEntity(typeof(CityHighlightRequest));
EntityManager.SetComponentData(requestEntity, new CityHighlightRequest {
Province = provinceEntity,
Highlight = true,
});
How to highlight province¶
Entity requestEntity = EntityManager.CreateEntity(typeof(ProvinceHighlightRequest));
EntityManager.SetComponentData(requestEntity, new ProvinceHighlightRequest {
Province = provinceEntity,
Highlight = true,
});
How to highlight player's territory¶
Entity requestEntity = EntityManager.CreateEntity(typeof(PlayerHighlightRequest));
EntityManager.SetComponentData(requestEntity, new PlayerHighlightRequest {
Player = playerEntity,
Highlight = true,
});