5 # flags and variables here
9 # enums are prioritized by order of list
10 static var moves_priority: Dictionary = {
17 static func moves_priority_sort(a: String, b: String):
18 return moves_priority[a] > moves_priority[b]
22 func should_enter(input: InputPacket) -> String:
23 if not player.is_on_floor():
24 input.actions.append("fall")
25 input.actions.sort_custom(moves_priority_sort)
26 return input.actions[0]
29 func update(_input: InputPacket, _delta: float):
33 func on_enter_state():