Interface IBuildingPlacer
Assembly: cs.temp.dll.dll
Syntax
public interface IBuildingPlacer : IMonoBehaviour
Properties
Building
Declaration
IBuilding Building { get; }
Property Value
Type |
Description |
IBuilding |
|
CanPlace
Declaration
Property Value
CanPlaceError
Declaration
ErrorMessage CanPlaceError { get; }
Property Value
CanPlaceOutsideBorder
Declaration
bool CanPlaceOutsideBorder { get; }
Property Value
GridOptions
Declaration
BuildingPlacementGridData GridOptions { get; }
Property Value
PlacableNavigationMask
Declaration
int PlacableNavigationMask { get; }
Property Value
PlacableTerrainAreas
Declaration
IReadOnlyList<TerrainAreaType> PlacableTerrainAreas { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyList<TerrainAreaType> |
|
Placed
Declaration
Property Value
PlacedData
Declaration
BuildingPlacedData PlacedData { get; }
Property Value
PlacementCenter
Declaration
IBorder PlacementCenter { get; }
Property Value
SegmentData
Declaration
BuildingPlacementSegmentData SegmentData { get; }
Property Value
Methods
InitPlaced(BuildingPlacedData)
Called on the building instance when it is placed.
Called after the EntityPreInit method.
Declaration
void InitPlaced(BuildingPlacedData placedData)
Parameters
IsBuildingInBorder()
Declaration
bool IsBuildingInBorder()
Returns
OnPlacementPreComplete()
Declaration
void OnPlacementPreComplete()
OnPlacementStart(BuildingPlacementUpdateData)
Declaration
void OnPlacementStart(BuildingPlacementUpdateData data)
Parameters
OnPlacementStop(BuildingPlacementUpdateData)
Declaration
void OnPlacementStop(BuildingPlacementUpdateData data)
Parameters
OnPlacementUpdate()
Declaration
OnPlacementUpdate(Vector3)
Declaration
void OnPlacementUpdate(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Events
BuildingPlacementStatusUpdated
Declaration
event CustomEventHandler<IBuilding, EventArgs> BuildingPlacementStatusUpdated
Event Type
Type |
Description |
CustomEventHandler<IBuilding, System.EventArgs> |
|
Declaration
event CustomEventHandler<IBuilding, EventArgs> BuildingPlacementTransformUpdated
Event Type
Type |
Description |
CustomEventHandler<IBuilding, System.EventArgs> |
|