pixi-reels

API reference

PhaseCreateContext

pixi-reels


pixi-reels / index / PhaseCreateContext

Defined in: spin/phases/ReelPhase.ts:81

What the factory knows about the reel a phase is being built for. A registered factory branches on it ('stop' building a different phase for a reel that teased), and the phase reads its own profile section through it.

Properties#

PropertyModifierTypeDescriptionDefined in
anticipatedreadonlybooleanThe reel ran an anticipation tease TO ITS END earlier in this spin. false for the tease itself and every phase before it, true from the phase after it on. Selects the whenAnticipated half of a profile section, and is what a factory checks to build a different phase for a reel that teased. A tease a 'quicken' press cut short does not count: the press asked for the landing, and what it cut is the tease whenAnticipated exists to pay off. quickened is here too, so a phase that wants the other reading can take it.spin/phases/ReelPhase.ts:98
phasereadonlystringThe registered name being created, e.g. 'stop'. Also the profile section this phase reads.spin/phases/ReelPhase.ts:83
quickenedreadonlybooleanA 'quicken' press has already reached this reel.spin/phases/ReelPhase.ts:100
reelIndexreadonlynumberIndex of the reel in the set, or -1 when the phase was built outside a spin.spin/phases/ReelPhase.ts:85