Interface IReadOnlyMapLayout
- Namespace
- Root
- Assembly
- Game.Core.Map.Simulation.dll
public interface IReadOnlyMapLayout
- Extension Methods
Properties
BuildingCount
int BuildingCount { get; }
Property Value
- int
Buildings
IEnumerable<BuildingInstance> Buildings { get; }
Property Value
- IEnumerable<BuildingInstance>
IslandCount
int IslandCount { get; }
Property Value
- int
Islands
IEnumerable<IslandInstance> Islands { get; }
Property Value
- IEnumerable<IslandInstance>
OnBuildingAdded
IEvent<BuildingInstance> OnBuildingAdded { get; }
Property Value
OnBuildingRemoved
IEvent<BuildingInstance> OnBuildingRemoved { get; }
Property Value
OnBunchEditFinished
IEvent OnBunchEditFinished { get; }
Property Value
OnBunchEditStarted
IEvent OnBunchEditStarted { get; }
Property Value
OnIslandAdded
IEvent<IslandInstance> OnIslandAdded { get; }
Property Value
OnIslandRemoved
IEvent<IslandInstance> OnIslandRemoved { get; }
Property Value
Methods
GetBuilding(in GlobalTileCoordinate)
BuildingInstance GetBuilding(in GlobalTileCoordinate position)
Parameters
positionGlobalTileCoordinate
Returns
GetIsland(in GlobalChunkCoordinate)
IslandInstance GetIsland(in GlobalChunkCoordinate position)
Parameters
positionGlobalChunkCoordinate
Returns
TryGetBuilding(in GlobalTileCoordinate, out BuildingInstance)
bool TryGetBuilding(in GlobalTileCoordinate position, out BuildingInstance building)
Parameters
positionGlobalTileCoordinatebuildingBuildingInstance
Returns
- bool
TryGetIsland(in GlobalChunkCoordinate, out IslandInstance)
bool TryGetIsland(in GlobalChunkCoordinate position, out IslandInstance island)
Parameters
positionGlobalChunkCoordinateislandIslandInstance
Returns
- bool