From e08a29e73ea4f7e6d78e8e7f5a6e7033dbc1f542 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 30 Dec 2024 15:15:01 +0100 Subject: next commit --- data_models/login_character_list.gd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 data_models/login_character_list.gd (limited to 'data_models') 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 -- cgit v1.2.3