Class SpawnEntryDef

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

A timed sequence of identical enemies.

public sealed class SpawnEntryDef
Inheritance
SpawnEntryDef
Inherited Members

Constructors

SpawnEntryDef(string, int, float, float, LaneSelection, int, float, string, int)

Creates a spawn sequence.

public SpawnEntryDef(string templateId, int count, float interval, float startDelay = 0, LaneSelection laneSelection = LaneSelection.RoundRobin, int laneIndex = 0, float followingGap = 0, string alternateTemplateId = null, int sameKindLimit = 0)

Parameters

templateId string
count int
interval float
startDelay float
laneSelection LaneSelection
laneIndex int
followingGap float
alternateTemplateId string
sameKindLimit int

Properties

AlternateTemplateId

Optional alternate type, sharing the same total count.

public string AlternateTemplateId { get; }

Property Value

string

Count

Number of enemies.

public int Count { get; }

Property Value

int

FollowingGap

Delay after this entry's trailing interval, when another entry follows.

public float FollowingGap { get; }

Property Value

float

Interval

Seconds between spawns; zero enforces one spawn per fixed tick.

public float Interval { get; }

Property Value

float

LaneIndex

Fixed lane or initial round-robin lane.

public int LaneIndex { get; }

Property Value

int

LaneSelection

Lane selection strategy.

public LaneSelection LaneSelection { get; }

Property Value

LaneSelection

SameKindLimit

Number of consecutive units before alternating; zero disables alternation.

public int SameKindLimit { get; }

Property Value

int

StartDelay

Additional delay relative to the group start.

public float StartDelay { get; }

Property Value

float

TemplateId

Resolved registry template identifier.

public string TemplateId { get; }

Property Value

string