Expand description
Defines the scenario language used in bevy mod scripting framework integration tests
Example:
SetCurrentLanguage language="@this_script_language"
InstallPlugin nanoseconds_budget=999999999
SetupHandler OnTest=null, Update=null
SetupHandler OnTestPostUpdate=null, PostUpdate=null
SetupHandler Last=null, OnTestLast=null
FinalizeApp
LoadScriptAs as_name="@this_script", path="@this_script"
WaitForScriptAssetLoaded name="@this_script"
SpawnEntityWithScript name="test_entity", script="@this_script"
RunUpdateOnce
EmitScriptCallbackEvent emit_response=true, entity="test_entity", label="OnTest", language=null, recipients="EntityScript", script="@this_script"
EmitScriptCallbackEvent emit_response=true, entity="test_entity", label="OnTestPostUpdate", language=null, recipients="EntityScript", script="@this_script"
EmitScriptCallbackEvent emit_response=true, entity="test_entity", label="OnTestLast", language=null, recipients="EntityScript", script="@this_script"
RunUpdateOnce
AssertCallbackSuccess attachment="EntityScript", entity="test_entity", label="OnTest", script="@this_script"
AssertCallbackSuccess attachment="EntityScript", entity="test_entity", label="OnTestPostUpdate", script="@this_script"
AssertCallbackSuccess attachment="EntityScript", entity="test_entity", label="OnTestLast", script="@this_script"
Scenarios are serialized/deserialized using json as an intermediate stage, each step is simply a flattened json object.
Enums§
- Context
Mode - The mode of context assignment for scripts in the scenario.
- Scenario
Attachment - Maps to supported attachments
- Scenario
Context State - Maps to supported context states
- Scenario
Label - Maps to special / core callback labels
- Scenario
Language - Maps to supported languages
- Scenario
Recipients - Maps to the BMS domain
- Scenario
Schedule - Maps to bevy schedules
- Scenario
Step Serialized - Describes the available scenario steps
Constants§
- SCENARIO_
SELF_ LANGUAGE_ NAME - the special name for referencing the current script’s language
- SCENARIO_
SELF_ SCRIPT_ NAME - the special name for referencing the current script
Functions§
- serialize_
schema - Serializes the scenario schema