ESCExitSceneScriptAnalyzer
Extends: ESCScriptAnalyzer
Description
Constants
EXIT_SCENE_EVENT_NAME
const EXIT_SCENE_EVENT_NAME = "exit_scene"
ACCEPT_INPUT_DISABLE_ARGS
const ACCEPT_INPUT_DISABLE_ARGS = ["none", "skip"]
CHANGE_SCENE_MISSING_MESSAGE
const CHANGE_SCENE_MISSING_MESSAGE = "Event \':exit_scene\' is missing \'change_scene\' command. Scene might not change as expected. Ignore this warning if the command was omitted on purpose."
COMMANDS_AFTER_CHANGE_SCENE_MESSAGE
const COMMANDS_AFTER_CHANGE_SCENE_MESSAGE = "Event \':exit_scene\' may have commands that are expected to be run after a call to \'change_scene\'. Such commands will not be executed."
MISSING_ACCEPT_INPUT_MESSAGE
const MISSING_ACCEPT_INPUT_MESSAGE = "Event \':exit_scene\' may allow for the player character to move while exiting and changing the scene. To prevent this, ensure a call to \'accept_input\' with an argument evaluating to \'NONE\' or \'SKIP\' is made before any calls to \'transition\' and/or \'change_scene\'."
BULLET_CHARACTER
const BULLET_CHARACTER = "- "
Members
transition_command_name
var transition_command_name: Variant
change_scene_command_name
var change_scene_command_name: Variant
accept_input_command_name
var accept_input_command_name: Variant
Methods
analyze
func analyze(statements: Array) -> void
visit_call_expr
func visit_call_expr(expr: ESCGrammarExprs.Call) -> Variant