diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2025-01-05 16:54:36 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2025-01-05 16:54:36 +0100 |
commit | 35b0f811f23f029110373798b19d9d0895d907f0 (patch) | |
tree | 2e4906a992c2569fa0f89dbe0f079010a734cc41 /data_models | |
parent | e08a29e73ea4f7e6d78e8e7f5a6e7033dbc1f542 (diff) |
next commit
Diffstat (limited to 'data_models')
-rw-r--r-- | data_models/login_character_list.gd | 8 | ||||
-rw-r--r-- | data_models/player_data.gd | 6 |
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 |