Table of Contents

Struct PlacementExtendedMapLayout

Namespace
Game.Placement.MapManipulation
Assembly
SPZGameAssembly.dll
public readonly struct PlacementExtendedMapLayout : IReadOnlyMapLayout
Implements
Extension Methods

Constructors

PlacementExtendedMapLayout(IPlacementData, IReadOnlyMapLayout, IReadOnlyList<PlacementMapLayoutQuerySource>)

public PlacementExtendedMapLayout(IPlacementData placementData, IReadOnlyMapLayout baseLayout, IReadOnlyList<PlacementMapLayoutQuerySource> sources)

Parameters

placementData IPlacementData
baseLayout IReadOnlyMapLayout
sources IReadOnlyList<PlacementMapLayoutQuerySource>

Properties

BuildingCount

public int BuildingCount { get; }

Property Value

int

Buildings

public IEnumerable<BuildingInstance> Buildings { get; }

Property Value

IEnumerable<BuildingInstance>

IslandCount

public int IslandCount { get; }

Property Value

int

Islands

public IEnumerable<IslandInstance> Islands { get; }

Property Value

IEnumerable<IslandInstance>

OnBuildingAdded

public IEvent<BuildingInstance> OnBuildingAdded { get; }

Property Value

IEvent<BuildingInstance>

OnBuildingRemoved

public IEvent<BuildingInstance> OnBuildingRemoved { get; }

Property Value

IEvent<BuildingInstance>

OnBunchEditFinished

public IEvent OnBunchEditFinished { get; }

Property Value

IEvent

OnBunchEditStarted

public IEvent OnBunchEditStarted { get; }

Property Value

IEvent

OnIslandAdded

public IEvent<IslandInstance> OnIslandAdded { get; }

Property Value

IEvent<IslandInstance>

OnIslandRemoved

public IEvent<IslandInstance> OnIslandRemoved { get; }

Property Value

IEvent<IslandInstance>

Methods

TryGetBuilding(in GlobalTileCoordinate, out BuildingInstance)

public bool TryGetBuilding(in GlobalTileCoordinate position, out BuildingInstance building)

Parameters

position GlobalTileCoordinate
building BuildingInstance

Returns

bool

TryGetIsland(in GlobalChunkCoordinate, out IslandInstance)

public bool TryGetIsland(in GlobalChunkCoordinate position, out IslandInstance island)

Parameters

position GlobalChunkCoordinate
island IslandInstance

Returns

bool