Class BuildingPlacer
Inheritance
BuildingPlacer
Implements
IEntityPreInitializable
Assembly: cs.temp.dll.dll
Syntax
public class BuildingPlacer : MonoBehaviour, IBuildingPlacer, IMonoBehaviour, IEntityPreInitializable
Properties
audioMgr
Declaration
protected IGameAudioManager audioMgr { get; }
Property Value
Type |
Description |
IGameAudioManager |
|
Building
Declaration
public IBuilding Building { get; }
Property Value
Type |
Description |
IBuilding |
|
buildingMgr
Declaration
protected IBuildingManager buildingMgr { get; }
Property Value
CanPlace
Declaration
public bool CanPlace { get; }
Property Value
CanPlaceError
Declaration
public ErrorMessage CanPlaceError { get; }
Property Value
CanPlaceOutsideBorder
Declaration
public bool CanPlaceOutsideBorder { get; }
Property Value
gameMgr
Declaration
protected IGameManager gameMgr { get; }
Property Value
Type |
Description |
IGameManager |
|
globalEvent
Declaration
protected IGlobalEventPublisher globalEvent { get; }
Property Value
Type |
Description |
IGlobalEventPublisher |
|
GridOptions
Declaration
public virtual BuildingPlacementGridData GridOptions { get; }
Property Value
gridSearch
Declaration
protected IGridSearchHandler gridSearch { get; }
Property Value
Type |
Description |
IGridSearchHandler |
|
IsPlacementStarted
Declaration
public bool IsPlacementStarted { get; }
Property Value
logger
Declaration
protected IGameLoggingService logger { get; }
Property Value
Type |
Description |
IGameLoggingService |
|
mvtMgr
Declaration
protected IMovementManager mvtMgr { get; }
Property Value
Type |
Description |
IMovementManager |
|
PlacableNavigationMask
Declaration
public int PlacableNavigationMask { get; }
Property Value
PlacableTerrainAreas
Declaration
public IReadOnlyList<TerrainAreaType> PlacableTerrainAreas { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyList<TerrainAreaType> |
|
Placed
Declaration
public bool Placed { get; }
Property Value
PlacedData
Declaration
public BuildingPlacedData PlacedData { get; }
Property Value
PlacementCenter
Declaration
public IBorder PlacementCenter { get; }
Property Value
placerMgr
Declaration
protected IBuildingPlacement placerMgr { get; }
Property Value
SegmentData
Declaration
public virtual BuildingPlacementSegmentData SegmentData { get; }
Property Value
terrainMgr
Declaration
protected ITerrainManager terrainMgr { get; }
Property Value
Type |
Description |
ITerrainManager |
|
Methods
Disable()
Declaration
InitPlaced(BuildingPlacedData)
Declaration
public void InitPlaced(BuildingPlacedData placedData)
Parameters
IsBuildingInBorder()
Declaration
public bool IsBuildingInBorder()
Returns
IsBuildingOnMap()
Declaration
public bool IsBuildingOnMap()
Returns
OnEntityPreInit(IGameManager, IEntity)
Declaration
public void OnEntityPreInit(IGameManager gameMgr, IEntity entity)
Parameters
Type |
Name |
Description |
IGameManager |
gameMgr |
|
IEntity |
entity |
|
OnInit()
Declaration
protected virtual void OnInit()
OnPlacedInit()
Declaration
protected virtual void OnPlacedInit()
OnPlacementPreComplete()
Declaration
public void OnPlacementPreComplete()
OnPlacementStart(BuildingPlacementUpdateData)
Declaration
public void OnPlacementStart(BuildingPlacementUpdateData data)
Parameters
OnPlacementStarted(BuildingPlacementUpdateData)
Declaration
protected virtual void OnPlacementStarted(BuildingPlacementUpdateData data)
Parameters
OnPlacementStatusUpdated()
Declaration
protected virtual void OnPlacementStatusUpdated()
OnPlacementStop(BuildingPlacementUpdateData)
Declaration
public void OnPlacementStop(BuildingPlacementUpdateData data)
Parameters
OnPlacementStopped(BuildingPlacementUpdateData)
Declaration
protected virtual void OnPlacementStopped(BuildingPlacementUpdateData data)
Parameters
OnPlacementUpdate()
Declaration
public void OnPlacementUpdate()
OnPlacementUpdate(Boolean, Vector3)
Declaration
public void OnPlacementUpdate(bool changePosition = false, Vector3 newPosition = null)
Parameters
Type |
Name |
Description |
Boolean |
changePosition |
|
Vector3 |
newPosition |
|
OnPlacementUpdate(Vector3)
Declaration
public void OnPlacementUpdate(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
OnPositionUpdate(Vector3)
Declaration
protected virtual void OnPositionUpdate(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Events
BuildingPlacementStatusUpdated
Declaration
public event CustomEventHandler<IBuilding, EventArgs> BuildingPlacementStatusUpdated
Event Type
Type |
Description |
CustomEventHandler<IBuilding, System.EventArgs> |
|
Declaration
public event CustomEventHandler<IBuilding, EventArgs> BuildingPlacementTransformUpdated
Event Type
Type |
Description |
CustomEventHandler<IBuilding, System.EventArgs> |
|
Implements
IEntityPreInitializable