Class BarracksDef
Soldier population and rally settings.
public sealed class BarracksDef
- Inheritance
-
BarracksDef
- Inherited Members
Constructors
BarracksDef(string, int, float, float, float)
Creates barracks data.
public BarracksDef(string soldierTemplateId, int count, float rallyRadius, float respawnTime, float formationRadius = 0)
Parameters
Properties
Count
Maximum living soldiers.
public int Count { get; }
Property Value
FormationRadius
Radius of the idle formation around the rally center.
public float FormationRadius { get; }
Property Value
RallyRadius
Maximum distance between tower and rally point.
public float RallyRadius { get; }
Property Value
RespawnTime
Delay before a dead soldier is replaced.
public float RespawnTime { get; }
Property Value
SoldierTemplateId
Template instantiated for each soldier.
public string SoldierTemplateId { get; }