Chelimbalo/scripts/weapon_system/usable.gd
2025-11-24 04:44:42 +05:00

25 lines
568 B
GDScript

@abstract
extends Node
class_name Usable
var system: WeaponSystem
var in_use: bool = false
@rpc("authority","call_local","reliable")
@abstract func use_begin() -> void
@rpc("authority","call_local","reliable")
@abstract func use_end() -> void
@abstract func alternate_state() -> void
# Need to clarify naming; Switch mode like firemode. For different states use
# alternate_state
@abstract func switch_mode() -> void
func enter() -> void:
pass
func exit() -> void:
pass
func update(_delta: float) -> void:
pass
func physics_update(_delta: float) -> void:
pass