Class BuildingPlacementHandlerBase
Inheritance
BuildingPlacementHandlerBase
Assembly: cs.temp.dll.dll
Syntax
public abstract class BuildingPlacementHandlerBase : IBuildingPlacementHandler
Properties
audioMgr
Declaration
protected IGameAudioManager audioMgr { get; }
Property Value
Type |
Description |
IGameAudioManager |
|
buildingMgr
Declaration
protected IBuildingManager buildingMgr { get; }
Property Value
CanRotateCurrent
Declaration
public bool CanRotateCurrent { get; }
Property Value
controls
Declaration
protected IGameControlsManager controls { get; }
Property Value
Type |
Description |
IGameControlsManager |
|
Count
Declaration
public int Count { get; }
Property Value
current
Declaration
protected PendingPlacementData current { get; }
Property Value
FactionSlot
Declaration
public IFactionSlot FactionSlot { get; }
Property Value
Type |
Description |
IFactionSlot |
|
gameMgr
Declaration
protected IGameManager gameMgr { get; }
Property Value
Type |
Description |
IGameManager |
|
globalEvent
Declaration
protected IGlobalEventPublisher globalEvent { get; }
Property Value
Type |
Description |
IGlobalEventPublisher |
|
IsActive
Declaration
public bool IsActive { get; }
Property Value
logger
Declaration
protected IGameLoggingService logger { get; }
Property Value
Type |
Description |
IGameLoggingService |
|
mainCameraController
Declaration
protected IMainCameraController mainCameraController { get; }
Property Value
Type |
Description |
IMainCameraController |
|
placerMgr
Declaration
protected IBuildingPlacement placerMgr { get; }
Property Value
playerMsgHandler
Declaration
protected IPlayerMessageHandler playerMsgHandler { get; }
Property Value
Type |
Description |
IPlayerMessageHandler |
|
Queue
Declaration
public IReadOnlyList<PendingPlacementData> Queue { get; }
Property Value
resourceMgr
Declaration
protected IResourceManager resourceMgr { get; }
Property Value
Type |
Description |
IResourceManager |
|
selectionMgr
Declaration
protected ISelectionManager selectionMgr { get; }
Property Value
Type |
Description |
ISelectionManager |
|
selector
Declaration
protected ISelector selector { get; }
Property Value
Type |
Description |
ISelector |
|
terrainMgr
Declaration
protected ITerrainManager terrainMgr { get; }
Property Value
Type |
Description |
ITerrainManager |
|
Methods
Add(IBuildingPlacementTask, BuildingPlacementOptions)
Declaration
public ErrorMessage Add(IBuildingPlacementTask task, BuildingPlacementOptions options)
Parameters
Returns
CanAdd(IBuildingPlacementTask, BuildingPlacementOptions)
Declaration
public virtual ErrorMessage CanAdd(IBuildingPlacementTask task, BuildingPlacementOptions options)
Parameters
Returns
CanComplete()
Declaration
protected ErrorMessage CanComplete()
Returns
CanPlace(IBuildingPlacer)
Declaration
public ErrorMessage CanPlace(IBuildingPlacer buildingPlacer)
Parameters
Returns
Complete()
Declaration
Returns
Init(IGameManager, IFactionSlot)
Declaration
public void Init(IGameManager gameMgr, IFactionSlot factionSlot)
Parameters
Type |
Name |
Description |
IGameManager |
gameMgr |
|
IFactionSlot |
factionSlot |
|
OnActiveUpdate()
Declaration
protected virtual void OnActiveUpdate()
OnAdded(ErrorMessage, IBuilding, IBuildingPlacementTask, BuildingPlacementOptions)
Declaration
protected virtual void OnAdded(ErrorMessage errorMsg, IBuilding placementInstance, IBuildingPlacementTask task, BuildingPlacementOptions options)
Parameters
OnComplete(ErrorMessage, CompletedPlacementData)
Declaration
protected virtual void OnComplete(ErrorMessage errorMsg, CompletedPlacementData completedPlacement)
Parameters
OnInactiveUpdate()
Declaration
protected virtual void OnInactiveUpdate()
OnInit()
Declaration
protected virtual void OnInit()
OnStart()
Declaration
protected virtual void OnStart()
OnStop()
Declaration
protected virtual void OnStop()
OnUpdate()
Declaration
Stop()
Declaration
Returns
Stop(Int32)
Declaration
public virtual bool Stop(int queueIndex)
Parameters
Type |
Name |
Description |
Int32 |
queueIndex |
|
Returns
StopAll()
Declaration
Returns
StopOnCondition(Func<PendingPlacementData, Boolean>)
Declaration
public void StopOnCondition(Func<PendingPlacementData, bool> condition)
Parameters
Events
PlacementAdded
Declaration
public event CustomEventHandler<IBuildingPlacementHandler, IPendingPlacementData> PlacementAdded
Event Type
PlacementStopped
Declaration
public event CustomEventHandler<IBuildingPlacementHandler, IPendingPlacementData> PlacementStopped
Event Type
Implements