Class SpawnEntryDef
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
templateIdstringcountintintervalfloatstartDelayfloatlaneSelectionLaneSelectionlaneIndexintfollowingGapfloatalternateTemplateIdstringsameKindLimitint
Properties
AlternateTemplateId
Optional alternate type, sharing the same total count.
public string AlternateTemplateId { get; }
Property Value
Count
Number of enemies.
public int Count { get; }
Property Value
FollowingGap
Delay after this entry's trailing interval, when another entry follows.
public float FollowingGap { get; }
Property Value
Interval
Seconds between spawns; zero enforces one spawn per fixed tick.
public float Interval { get; }
Property Value
LaneIndex
Fixed lane or initial round-robin lane.
public int LaneIndex { get; }
Property Value
LaneSelection
Lane selection strategy.
public LaneSelection LaneSelection { get; }
Property Value
SameKindLimit
Number of consecutive units before alternating; zero disables alternation.
public int SameKindLimit { get; }
Property Value
StartDelay
Additional delay relative to the group start.
public float StartDelay { get; }
Property Value
TemplateId
Resolved registry template identifier.
public string TemplateId { get; }