From b0b17920dccab3e6b02a4beea7c141a0a8be131c Mon Sep 17 00:00:00 2001 From: pbentes Date: Sat, 31 Aug 2024 14:32:14 +0100 Subject: [PATCH] Added a script template for states --- script_templates/State/state.gd | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 script_templates/State/state.gd diff --git a/script_templates/State/state.gd b/script_templates/State/state.gd new file mode 100644 index 0000000..ea55a6f --- /dev/null +++ b/script_templates/State/state.gd @@ -0,0 +1,18 @@ +# meta-name: State script +# meta-description: A script containing the basic definition of a state +# meta-default: true +# meta-space-indent: 4 + +extends _BASE_ + +func enter() -> void: + pass + +func exit() -> void: + pass + +func update(_delta: float) -> void: + pass + +func physics_update(_delta: float) -> void: + pass