glowlings/entities/scripts/state.gd
Dan bb5724429a Added job component and queue system
- Introduced a new JobComponent and JobQueue to manage jobs in the game.
- Created two new jobs: DigJob and InfectJob with their respective scripts.
- Updated CrystalGlowComponent, FreeCameraComponent, MushroomGlowComponent, WaterEffectComponent to improve logging messages.
- Adjusted camera movement limits in FreeCameraGameCameraComponent for better control.
- Added FiniteStateMachine class for managing states of entities.
- Implemented GlowingIdle state as an example of using the state machine.
- Included a utility function to fetch file paths by extension from a directory.
2024-06-06 15:49:05 +01:00

18 lines
275 B
GDScript

@icon("res://resources/icons/fsm.png")
extends Node
class_name State
signal state_transition
func enter(_msg : Dictionary = {}) -> void:
pass
func exit() -> void :
pass
func update(_delta : float) -> void:
pass
func physics_update(_delate : float) -> void:
pass