diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-12-30 15:15:01 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-12-30 15:15:01 +0100 |
commit | e08a29e73ea4f7e6d78e8e7f5a6e7033dbc1f542 (patch) | |
tree | 966b95a7cdad16f7658d2e10cec6e549f3b98c17 /data_models | |
parent | 6e2deea3d1b2fb4d79dac02a0d4310936c7f317c (diff) |
next commit
Diffstat (limited to 'data_models')
-rw-r--r-- | data_models/login_character_list.gd | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/data_models/login_character_list.gd b/data_models/login_character_list.gd new file mode 100644 index 0000000..f34d61e --- /dev/null +++ b/data_models/login_character_list.gd @@ -0,0 +1,16 @@ +class_name LoginCharacterList +extends Resource + + +var slot_count: int + +var character_information: Array[CharacterInformation] + + +static func from_character_list_packet(packet: CharacterServerLoginSuccessCharacterListPacket) -> LoginCharacterList: + var resource := LoginCharacterList.new() + + resource.slot_count = packet.maximum_slot_count + resource.character_information = packet.character_information + + return resource |