Start of rewind system

This commit is contained in:
Rendo 2025-12-21 02:22:41 +05:00
commit 42c95820d7
16 changed files with 55 additions and 33 deletions

View file

@ -70,12 +70,12 @@ func _enter() -> void:
func _exit() -> void:
super()
func use_begin() -> void:
func use_begin(timestamp: float) -> void:
if current_state != null:
current_state.use_begin()
func use_end() -> void:
current_state.use_begin(timestamp)
func use_end(timestamp: float) -> void:
if current_state != null:
current_state.use_end()
current_state.use_end(timestamp)
func alternate_state() -> void:
if current_state != null:
current_state.alternate_state()