Table of Contents

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

IEvent<BuildingInstance>

OnBuildingRemoved

IEvent<BuildingInstance> OnBuildingRemoved { get; }

Property Value

IEvent<BuildingInstance>

OnBunchEditFinished

IEvent OnBunchEditFinished { get; }

Property Value

IEvent

OnBunchEditStarted

IEvent OnBunchEditStarted { get; }

Property Value

IEvent

OnIslandAdded

IEvent<IslandInstance> OnIslandAdded { get; }

Property Value

IEvent<IslandInstance>

OnIslandRemoved

IEvent<IslandInstance> OnIslandRemoved { get; }

Property Value

IEvent<IslandInstance>

Methods

GetBuilding(in GlobalTileCoordinate)

BuildingInstance GetBuilding(in GlobalTileCoordinate position)

Parameters

position GlobalTileCoordinate

Returns

BuildingInstance

GetIsland(in GlobalChunkCoordinate)

IslandInstance GetIsland(in GlobalChunkCoordinate position)

Parameters

position GlobalChunkCoordinate

Returns

IslandInstance

TryGetBuilding(in GlobalTileCoordinate, out BuildingInstance)

bool TryGetBuilding(in GlobalTileCoordinate position, out BuildingInstance building)

Parameters

position GlobalTileCoordinate
building BuildingInstance

Returns

bool

TryGetIsland(in GlobalChunkCoordinate, out IslandInstance)

bool TryGetIsland(in GlobalChunkCoordinate position, out IslandInstance island)

Parameters

position GlobalChunkCoordinate
island IslandInstance

Returns

bool