Class BarracksDef

Namespace
TDMaker.Core.Defs
Assembly
TDMaker.Core.dll

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

soldierTemplateId string
count int
rallyRadius float
respawnTime float
formationRadius float

Properties

Count

Maximum living soldiers.

public int Count { get; }

Property Value

int

FormationRadius

Radius of the idle formation around the rally center.

public float FormationRadius { get; }

Property Value

float

RallyRadius

Maximum distance between tower and rally point.

public float RallyRadius { get; }

Property Value

float

RespawnTime

Delay before a dead soldier is replaced.

public float RespawnTime { get; }

Property Value

float

SoldierTemplateId

Template instantiated for each soldier.

public string SoldierTemplateId { get; }

Property Value

string