ReplayActionKind

Discriminates the action recorded by a ReplayPathEntry in the Path. Each value corresponds to a BonsaiRuntime API that was called during the original session.

public enum ReplayActionKind

Fields

SelectChoice 0

Player selected a dialogue choice — recorded by SelectChoice(string).

EnterScene 1

Runtime entered a named scene — recorded by EnterScene(string, bool).

MoveTo 2

Player moved to a location programmatically — recorded by internal movement (authored moveTo events, initial placement). Free and ungated, unlike TraverseTo entries.

AdvanceTime 3

Time was advanced — recorded by the advanceTime event executor.

StartEncounter 4

An encounter scene was started — recorded by StartEncounter(string).

LeaveScene 5

Runtime left an encounter scene — recorded by LeaveScene().

ActivityCompleted 6

A blocking activity was completed — recorded by Complete(). Replay drives through it by re-invoking the pending activity’s completion with the stored fields.

StartProject 7

Commit-origin marker for StartProject(string, SceneScope) — used only by the blocking-activity pause record and RuntimeSnapshot.PendingSuffix (a Start can pause at an intro activity). Never appears in a Path; replay reconstructs the start from the save header instead.

TraverseTo 8

Player traversed to a location along an open connection (player-input path — travel auto-cost applies and re-applies on replay). Recorded by TraverseTo(string). Distinct from MoveTo so replay re-derives cost + world-scene lifecycle without guessing “was this player-initiated?”.

Docs last synced: 2026-07-18
Screenshot viewer