]> purplebirdman git - frog-ninja.git/blob - asset/character/input/input_packet.gd
Squashed commit of the following:
[frog-ninja.git] / asset / character / input / input_packet.gd
1 extends Node
2 class_name InputPacket
3 ## The base class for holding all meaningful inputs
4 ##
5 ## Returned by an InputHandler upon request. Contains a snapshot of the input state.
6 ##
7
8 ## The XY direction the player has indicated
9 var player_movement_direction: Vector2 = Vector2.ZERO
10
11 ## PlayerModel State names that are based on raw input
12 var player_actions: Array[String] = []
13
14 ## Combat actions that are translated by the weapons layer
15 var player_combat_actions: Array[String] = []
16
17 ## What input method the camera was using at time of capture
18 var camera_input_method := CameraInput.MOUSE
19
20 ## What XY input direction the camera was using at time of capture
21 var camera_input_direction := Vector2.ZERO