TimelineSpawns
Defined in: sdk/src/timeline/timelineSpawns.ts:51
The instances of every playing timeline’s spawn tracks, by player.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TimelineSpawns():
TimelineSpawns
Returns
Section titled “Returns”TimelineSpawns
Methods
Section titled “Methods”forget()
Section titled “forget()”forget(
player,spawner):void
Defined in: sdk/src/timeline/timelineSpawns.ts:118
Takes away every instance of player and lets go of what was prepared for it: the player or its timeline went.
Parameters
Section titled “Parameters”player
Section titled “player”number
spawner
Section titled “spawner”TimelineSpawner | null
Returns
Section titled “Returns”void
instancesOf()
Section titled “instancesOf()”instancesOf(
player):number[]
Defined in: sdk/src/timeline/timelineSpawns.ts:132
The entities player has spawned and still has.
Parameters
Section titled “Parameters”player
Section titled “player”number
Returns
Section titled “Returns”number[]
prepare()
Section titled “prepare()”prepare(
player,asset,spawner):ReadonlyMap<string,PreparedTimelineSpawn|null>
Defined in: sdk/src/timeline/timelineSpawns.ts:140
Starts loading what asset spawns for player, once per set of prefabs (a changed set lets go of the old one);
answers what has landed so far. Called every frame a player has its timeline, so loading starts before it plays.
Parameters
Section titled “Parameters”player
Section titled “player”number
spawner
Section titled “spawner”Returns
Section titled “Returns”ReadonlyMap<string, PreparedTimelineSpawn | null>
stop()
Section titled “stop()”stop(
player,spawner):void
Defined in: sdk/src/timeline/timelineSpawns.ts:107
Takes away every instance of player (what was prepared for it is kept, for when it plays again).
Parameters
Section titled “Parameters”player
Section titled “player”number
spawner
Section titled “spawner”TimelineSpawner | null
Returns
Section titled “Returns”void
stopAll()
Section titled “stopAll()”stopAll(
spawner):void
Defined in: sdk/src/timeline/timelineSpawns.ts:127
Forgets every player.
Parameters
Section titled “Parameters”spawner
Section titled “spawner”TimelineSpawner | null
Returns
Section titled “Returns”void
sync()
Section titled “sync()”sync(
player,asset,time,spawner,resolve):void
Defined in: sdk/src/timeline/timelineSpawns.ts:60
Brings player’s instances in line with asset at time: each spawn clip the playhead is inside has one, under
the entity its track names (resolve, null where that is not there: no instance then).
Parameters
Section titled “Parameters”player
Section titled “player”number
number
spawner
Section titled “spawner”resolve
Section titled “resolve”(childPath) => number | null
Returns
Section titled “Returns”void