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

@ -218,17 +218,17 @@ func _physics_process(delta: float) -> void:
return
current_state.physics_update(delta)
func use_begin() -> void:
func use_begin(timestamp: float) -> void:
if not multiplayer.is_server() or Session.round_state == Session.ROUND_STATES.BUY or disabled:
return
if current_state != null:
current_state.use_begin()
current_state.use_begin(timestamp)
func use_end() -> void:
func use_end(timestamp: float) -> void:
if not multiplayer.is_server() or Session.round_state == Session.ROUND_STATES.BUY or disabled:
return
if current_state != null:
current_state.use_end()
current_state.use_end(timestamp)
func alternate_state() -> void:
if not multiplayer.is_server() or Session.round_state == Session.ROUND_STATES.BUY or disabled: