diff options
Diffstat (limited to 'data_models/login_character_list.gd')
-rw-r--r-- | data_models/login_character_list.gd | 8 |
1 files changed, 8 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 |