Class BuildingHealth
Inheritance
BuildingHealth
Implements
IEntityPreInitializable
IEntityPostInitializable
Assembly: cs.temp.dll.dll
Syntax
public class BuildingHealth : FactionEntityHealth, IEntityPreInitializable, IBuildingHealth, IFactionEntityHealth, IEntityHealth, IMonoBehaviour, IEntityPostInitializable
Properties
Building
Declaration
public IBuilding Building { get; }
Property Value
Type |
Description |
IBuilding |
|
buildingMgr
Declaration
protected IBuildingManager buildingMgr { get; }
Property Value
Type |
Description |
IBuildingManager |
|
BuildTime
Declaration
public float BuildTime { get; }
Property Value
Type |
Description |
System.Single |
|
DestroyObjectDelay
Declaration
public override float DestroyObjectDelay { get; }
Property Value
Type |
Description |
System.Single |
|
Overrides
EntityType
Declaration
public override EntityType EntityType { get; }
Property Value
Type |
Description |
EntityType |
|
Overrides
Methods
CanRepair(Int32, Boolean)
Declaration
public bool CanRepair(int healthToAdd, bool takeResources = true)
Parameters
Type |
Name |
Description |
Int32 |
healthToAdd |
|
Boolean |
takeResources |
|
Returns
OnDestroyed(Boolean, IEntity)
Declaration
protected override void OnDestroyed(bool upgrade, IEntity source)
Parameters
Type |
Name |
Description |
Boolean |
upgrade |
|
IEntity |
source |
|
Overrides
OnDisabled()
Declaration
protected override void OnDisabled()
Overrides
OnEntityPostInit(IGameManager, IEntity)
Declaration
public void OnEntityPostInit(IGameManager gameMgr, IEntity entity)
Parameters
Type |
Name |
Description |
IGameManager |
gameMgr |
|
IEntity |
entity |
|
OnFactionEntityHealthInit()
Declaration
protected override void OnFactionEntityHealthInit()
Overrides
OnHealthUpdated(HealthUpdateArgs)
Declaration
protected override void OnHealthUpdated(HealthUpdateArgs args)
Parameters
Type |
Name |
Description |
HealthUpdateArgs |
args |
|
Overrides
OnMaxHealthReached(HealthUpdateArgs)
Declaration
protected override void OnMaxHealthReached(HealthUpdateArgs args)
Parameters
Type |
Name |
Description |
HealthUpdateArgs |
args |
|
Overrides
Implements
IEntityPreInitializable
IEntityPostInitializable