Class BuildingPlacement
Inheritance
BuildingPlacement
Implements
IPreRunGameService
Assembly: cs.temp.dll.dll
Syntax
public class BuildingPlacement : MonoBehaviour, IBuildingPlacement, IPreRunGameService
Fields
tabID
Declaration
Field Value
Properties
audioMgr
Declaration
protected IGameAudioManager audioMgr { get; }
Property Value
Type |
Description |
IGameAudioManager |
|
buildingMgr
Declaration
protected IBuildingManager buildingMgr { get; }
Property Value
BuildingPositionYOffset
Declaration
public float BuildingPositionYOffset { get; }
Property Value
Type |
Description |
System.Single |
|
controls
Declaration
protected IGameControlsManager controls { get; }
Property Value
Type |
Description |
IGameControlsManager |
|
gameMgr
Declaration
protected IGameManager gameMgr { get; }
Property Value
Type |
Description |
IGameManager |
|
globalEvent
Declaration
protected IGlobalEventPublisher globalEvent { get; }
Property Value
Type |
Description |
IGlobalEventPublisher |
|
GridHandler
Declaration
public IGridPlacementHandler GridHandler { get; }
Property Value
IgnoreTerrainAreas
Declaration
public IReadOnlyList<TerrainAreaType> IgnoreTerrainAreas { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyList<TerrainAreaType> |
|
IsLocalPlayerPlacingBuilding
Declaration
public bool IsLocalPlayerPlacingBuilding { get; }
Property Value
LocalFactionHandler
Declaration
public IBuildingPlacementHandler LocalFactionHandler { 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 |
|
PlacableLayerMask
Declaration
public LayerMask PlacableLayerMask { get; }
Property Value
Type |
Description |
LayerMask |
|
PlacableTerrainAreas
Declaration
public IReadOnlyList<TerrainAreaType> PlacableTerrainAreas { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyList<TerrainAreaType> |
|
PlaceBuildingAudio
Declaration
public AudioClipFetcher PlaceBuildingAudio { get; }
Property Value
Type |
Description |
AudioClipFetcher |
|
playerMsgHandler
Declaration
protected IPlayerMessageHandler playerMsgHandler { get; }
Property Value
Type |
Description |
IPlayerMessageHandler |
|
resourceMgr
Declaration
protected IResourceManager resourceMgr { get; }
Property Value
Type |
Description |
IResourceManager |
|
selectionMgr
Declaration
protected ISelectionManager selectionMgr { get; }
Property Value
Type |
Description |
ISelectionManager |
|
TerrainMaxDistance
Declaration
public float TerrainMaxDistance { get; }
Property Value
Type |
Description |
System.Single |
|
terrainMgr
Declaration
protected ITerrainManager terrainMgr { get; }
Property Value
Type |
Description |
ITerrainManager |
|
Methods
Add(Int32, IBuildingPlacementTask, BuildingPlacementOptions)
Declaration
public bool Add(int factionID, IBuildingPlacementTask task, BuildingPlacementOptions options = default(BuildingPlacementOptions))
Parameters
Returns
CanPlace(IBuildingPlacer)
Declaration
public virtual ErrorMessage CanPlace(IBuildingPlacer buildingPlacer)
Parameters
Returns
Init(IGameManager)
Declaration
public void Init(IGameManager gameMgr)
Parameters
Type |
Name |
Description |
IGameManager |
gameMgr |
|
IsPlacingBuilding(Int32)
Declaration
public bool IsPlacingBuilding(int factionID)
Parameters
Type |
Name |
Description |
Int32 |
factionID |
|
Returns
RegisterFactionPlacementHandler(Int32, IBuildingPlacementHandler)
Declaration
public bool RegisterFactionPlacementHandler(int factionID, IBuildingPlacementHandler newHandler)
Parameters
Returns
Stop(Int32)
Declaration
public bool Stop(int factionID)
Parameters
Type |
Name |
Description |
Int32 |
factionID |
|
Returns
Implements
IPreRunGameService