summaryrefslogtreecommitdiff
path: root/data_models
diff options
context:
space:
mode:
Diffstat (limited to 'data_models')
-rw-r--r--data_models/login_character_list.gd8
-rw-r--r--data_models/player_data.gd6
2 files changed, 14 insertions, 0 deletions
diff --git a/data_models/login_character_list.gd b/data_models/login_character_list.gd
index f34d61e..e638877 100644
--- a/data_models/login_character_list.gd
+++ b/data_models/login_character_list.gd
@@ -14,3 +14,11 @@ static func from_character_list_packet(packet: CharacterServerLoginSuccessCharac
resource.character_information = packet.character_information
return resource
+
+
+func get_info_for_slot(slot_idx: int):
+ for info in character_information:
+ if info.character_number == slot_idx:
+ return info
+
+ return null
diff --git a/data_models/player_data.gd b/data_models/player_data.gd
new file mode 100644
index 0000000..c4a7c73
--- /dev/null
+++ b/data_models/player_data.gd
@@ -0,0 +1,6 @@
+class_name PlayerData
+extends Resource
+
+
+var head_direction: Constants.Direction
+var body_direction: Constants.Direction