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