blob: e6388770c5b4dbcd4d538b52d349f49bc59bde1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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
func get_info_for_slot(slot_idx: int):
for info in character_information:
if info.character_number == slot_idx:
return info
return null
|