Class StaticBuilding
Inheritance
StaticBuilding
Assembly: cs.temp.dll.dll
Syntax
public class StaticBuilding : MonoBehaviour, IBuilding, IFactionEntity, IEntity, IMonoBehaviour, IEquatable<IEntity>
Properties
ActiveAttackComponents
Declaration
public IEnumerable<IAttackComponent> ActiveAttackComponents { get; }
Property Value
AddableUnitComponents
Declaration
public IReadOnlyDictionary<string, IAddableUnit> AddableUnitComponents { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyDictionary<String, IAddableUnit> |
|
AnimatorController
Declaration
public IAnimatorController AnimatorController { get; }
Property Value
Type |
Description |
IAnimatorController |
|
AttackComponents
Declaration
public IReadOnlyList<IAttackComponent> AttackComponents { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyList<IAttackComponent> |
|
AttackComponentsDic
Declaration
public IReadOnlyDictionary<string, IAttackComponent> AttackComponentsDic { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyDictionary<String, IAttackComponent> |
|
AudioSourceComponent
Declaration
public AudioSource AudioSourceComponent { get; }
Property Value
Type |
Description |
AudioSource |
|
BorderComponent
Declaration
public IBorder BorderComponent { get; }
Property Value
BuildingCreator
Declaration
public IBuildingCreator BuildingCreator { get; }
Property Value
Type |
Description |
IBuildingCreator |
|
CanAttack
Declaration
public bool CanAttack { get; }
Property Value
CanLaunchTask
Declaration
public bool CanLaunchTask { get; }
Property Value
Category
Declaration
public IEnumerable<string> Category { get; }
Property Value
Code
Declaration
public string Code { get; }
Property Value
CurrentCenter
Declaration
public IBorder CurrentCenter { get; }
Property Value
Description
Declaration
public string Description { get; }
Property Value
DisableResources
Declaration
public IEnumerable<ResourceInput> DisableResources { get; }
Property Value
DropOffTarget
Declaration
public IDropOffTarget DropOffTarget { get; }
Property Value
Type |
Description |
IDropOffTarget |
|
EntityComponents
Declaration
public IReadOnlyDictionary<string, IEntityComponent> EntityComponents { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyDictionary<String, IEntityComponent> |
|
EntityTargetComponents
Declaration
public IReadOnlyDictionary<string, IEntityTargetComponent> EntityTargetComponents { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyDictionary<String, IEntityTargetComponent> |
|
EntityTargetProgressComponents
Declaration
public IReadOnlyDictionary<string, IEntityTargetProgressComponent> EntityTargetProgressComponents { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyDictionary<String, IEntityTargetProgressComponent> |
|
FactionID
Declaration
public int FactionID { get; protected set; }
Property Value
FactionMgr
Declaration
public IFactionManager FactionMgr { get; }
Property Value
Type |
Description |
IFactionManager |
|
FirstActiveAttackComponent
Declaration
public IAttackComponent FirstActiveAttackComponent { get; }
Property Value
Type |
Description |
IAttackComponent |
|
Health
Declaration
public IBuildingHealth Health { get; }
Property Value
Type |
Description |
IBuildingHealth |
|
Icon
Declaration
public Sprite Icon { get; }
Property Value
InitResources
Declaration
public IEnumerable<ResourceInput> InitResources { get; }
Property Value
IsBuilt
Declaration
public bool IsBuilt { get; }
Property Value
IsDummy
Declaration
public bool IsDummy { get; }
Property Value
IsFactionLocked
Declaration
public bool IsFactionLocked { get; }
Property Value
IsFree
Declaration
public bool IsFree { get; protected set; }
Property Value
IsIdle
Declaration
public bool IsIdle { get; }
Property Value
IsInitialized
Declaration
public bool IsInitialized { get; }
Property Value
IsInteractable
Declaration
public bool IsInteractable { get; }
Property Value
IsMainEntity
Declaration
public bool IsMainEntity { get; }
Property Value
IsPlacementInstance
Declaration
public bool IsPlacementInstance { get; }
Property Value
IsSearchable
Declaration
public bool IsSearchable { get; }
Property Value
Key
Declaration
Property Value
MinimapIconHandler
Declaration
public IEntityMinimapIconHandler MinimapIconHandler { get; }
Property Value
Type |
Description |
IEntityMinimapIconHandler |
|
Model
Declaration
public GameObject Model { get; }
Property Value
Type |
Description |
GameObject |
|
MovementComponent
Declaration
public IMovementComponent MovementComponent { get; }
Property Value
Type |
Description |
IMovementComponent |
|
Name
Declaration
public string Name { get; }
Property Value
PendingTaskEntityComponents
Declaration
public IReadOnlyList<IPendingTaskEntityComponent> PendingTaskEntityComponents { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyList<IPendingTaskEntityComponent> |
|
PendingTasksHandler
Declaration
public IPendingTasksHandler PendingTasksHandler { get; }
Property Value
Type |
Description |
IPendingTasksHandler |
|
PlacerComponent
Declaration
public IBuildingPlacer PlacerComponent { get; }
Property Value
Type |
Description |
IBuildingPlacer |
|
Radius
Declaration
public float Radius { get; }
Property Value
Type |
Description |
System.Single |
|
Rallypoint
Declaration
public IRallypoint Rallypoint { get; }
Property Value
Type |
Description |
IRallypoint |
|
ResourceGenerators
Declaration
public IEnumerable<IResourceGenerator> ResourceGenerators { get; }
Property Value
Selection
Declaration
public IEntitySelection Selection { get; }
Property Value
Type |
Description |
IEntitySelection |
|
SelectionColor
Declaration
public Color SelectionColor { get; }
Property Value
SelectionMarker
Declaration
public IEntitySelectionMarker SelectionMarker { get; }
Property Value
Type |
Description |
IEntitySelectionMarker |
|
Slot
Declaration
public IFactionSlot Slot { get; }
Property Value
Type |
Description |
IFactionSlot |
|
TasksQueue
Declaration
public IEntityTasksQueueHandler TasksQueue { get; }
Property Value
Type |
Description |
IEntityTasksQueueHandler |
|
Type
Declaration
public EntityType Type { get; }
Property Value
UnitCarrier
Declaration
public IUnitCarrier UnitCarrier { get; }
Property Value
Type |
Description |
IUnitCarrier |
|
WorkerMgr
Declaration
public IBuildingWorkerManager WorkerMgr { get; }
Property Value
Type |
Description |
IBuildingWorkerManager |
|
Methods
CanMove()
Declaration
Returns
CanMove(Boolean)
Declaration
public bool CanMove(bool playerCommand)
Parameters
Type |
Name |
Description |
Boolean |
playerCommand |
|
Returns
Equals(IEntity)
Declaration
public bool Equals(IEntity other)
Parameters
Type |
Name |
Description |
IEntity |
other |
|
Returns
Init(IGameManager, InitBuildingParameters)
Declaration
public void Init(IGameManager gameMgr, InitBuildingParameters initParams)
Parameters
InitPlacementInstance(IGameManager, InitBuildingParameters)
Declaration
public void InitPlacementInstance(IGameManager gameMgr, InitBuildingParameters initParams)
Parameters
InitPrefab(IGameManager)
Declaration
public void InitPrefab(IGameManager gameMgr)
Parameters
Type |
Name |
Description |
IGameManager |
gameMgr |
|
SetFaction(IEntity, Int32)
Declaration
public ErrorMessage SetFaction(IEntity source, int targetFactionID)
Parameters
Returns
SetFactionLocal(IEntity, Int32)
Declaration
public ErrorMessage SetFactionLocal(IEntity source, int targetFactionID)
Parameters
Returns
SetIdle(IEntityTargetComponent, Boolean)
Declaration
public void SetIdle(IEntityTargetComponent exception = null, bool includeMovement = true)
Parameters
Type |
Name |
Description |
IEntityTargetComponent |
exception |
|
Boolean |
includeMovement |
|
SetIdle(Boolean)
Declaration
public void SetIdle(bool includeMovement = true)
Parameters
Type |
Name |
Description |
Boolean |
includeMovement |
|
SetIdle(IEnumerable<IEntityTargetComponent>, Boolean)
Declaration
public void SetIdle(IEnumerable<IEntityTargetComponent> exceptions = null, bool includeMovement = true)
Parameters
Type |
Name |
Description |
IEnumerable<IEntityTargetComponent> |
exceptions |
|
Boolean |
includeMovement |
|
Declaration
public ErrorMessage SetTargetFirst(SetTargetInputData input)
Parameters
Type |
Name |
Description |
SetTargetInputData |
input |
|
Returns
Declaration
public ErrorMessage SetTargetFirstLocal(SetTargetInputData input)
Parameters
Type |
Name |
Description |
SetTargetInputData |
input |
|
Returns
UpdateRadius(Single)
Declaration
public void UpdateRadius(float newRadius)
Parameters
Type |
Name |
Description |
System.Single |
newRadius |
|
UpgradeComponent(UpgradeElement<IEntityComponent>)
Declaration
public void UpgradeComponent(UpgradeElement<IEntityComponent> upgradeElement)
Parameters
Type |
Name |
Description |
UpgradeElement<IEntityComponent> |
upgradeElement |
|
Events
BuildingBuilt
Declaration
public event CustomEventHandler<IBuilding, EventArgs> BuildingBuilt
Event Type
Type |
Description |
CustomEventHandler<IBuilding, System.EventArgs> |
|
EntityComponentUpgraded
Declaration
public event CustomEventHandler<IEntity, EntityComponentUpgradeEventArgs> EntityComponentUpgraded
Event Type
Type |
Description |
CustomEventHandler<IEntity, EntityComponentUpgradeEventArgs> |
|
EntityEnterIdle
Declaration
public event CustomEventHandler<IEntity, EventArgs> EntityEnterIdle
Event Type
Type |
Description |
CustomEventHandler<IEntity, System.EventArgs> |
|
EntityExitIdle
Declaration
public event CustomEventHandler<IEntity, EventArgs> EntityExitIdle
Event Type
Type |
Description |
CustomEventHandler<IEntity, System.EventArgs> |
|
EntityInitiated
Declaration
public event CustomEventHandler<IEntity, EventArgs> EntityInitiated
Event Type
Type |
Description |
CustomEventHandler<IEntity, System.EventArgs> |
|
FactionUpdateComplete
Declaration
public event CustomEventHandler<IEntity, FactionUpdateArgs> FactionUpdateComplete
Event Type
Type |
Description |
CustomEventHandler<IEntity, FactionUpdateArgs> |
|
FactionUpdateStart
Declaration
public event CustomEventHandler<IEntity, FactionUpdateArgs> FactionUpdateStart
Event Type
Type |
Description |
CustomEventHandler<IEntity, FactionUpdateArgs> |
|
Explicit Interface Implementations
IEntity.Health
Declaration
IEntityHealth IEntity.Health { get; }
Returns
Type |
Description |
IEntityHealth |
|
IEntity.WorkerMgr
Declaration
IEntityWorkerManager IEntity.WorkerMgr { get; }
Returns
Type |
Description |
IEntityWorkerManager |
|
IFactionEntity.Health
Declaration
IFactionEntityHealth IFactionEntity.Health { get; }
Returns
Type |
Description |
IFactionEntityHealth |
|
Implements