From f4e07d090cded56ebab54363f1b47f1ea45c8682 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 20 Dec 2024 11:42:22 +0100 Subject: next commit --- constants.gd | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'constants.gd') diff --git a/constants.gd b/constants.gd index 41f048f..5bb518a 100644 --- a/constants.gd +++ b/constants.gd @@ -21,6 +21,12 @@ enum PinCodeState { Wrong = 8, } +enum LoginFailedReason { + ServerClosed = 1, + AlreadyLoggedIn = 2, + AlreadyOnline = 8, +} + enum StatusType { Weight, MaximumWeight, @@ -52,6 +58,15 @@ enum EmotionType { # ... TODO } +enum Job { + Novice = 0, + Swordman = 1, + Magician = 2, + Archer = 3, + Acolyte = 4, +} + + static var PacketDB = { #LoginServerLoginPacket.HEADER: LoginServerLoginPacket, LoginServerLoginSuccessPacket.HEADER: LoginServerLoginSuccessPacket, @@ -59,6 +74,7 @@ static var PacketDB = { CharacterServerLoginSuccessPacket.HEADER: CharacterServerLoginSuccessPacket, CharacterServerLoginSuccessCharacterListPacket.HEADER: CharacterServerLoginSuccessCharacterListPacket, CharacterListSizePacket.HEADER: CharacterListSizePacket, + LoginFailedPacket.HEADER: LoginFailedPacket, BlockCharacterPacket.HEADER: BlockCharacterPacket, PinCodeStatePacket.HEADER: PinCodeStatePacket, #RequestCharacterListPacket.HEADER: RequestCharacterListPacket, @@ -127,15 +143,15 @@ class FilePaths: static func get_job_path(job_id: int) -> String: match job_id: - 0: # NOVICE + Job.Novice: # NOVICE return "Ãʺ¸ÀÚ" - 1: # SWORDMAN + Job.Swordman: # SWORDMAN return "°Ë»Ç" - 2: # MAGICIAN + Job.Magician: # MAGICIAN return "À§Àúµå" - 3: # ARCHER + Job.Archer: # ARCHER return "±Ã¼Ö" - 4: # ACOLYTE + Job.Acolyte: # ACOLYTE return "¼ºÁ÷ÀÚ" 5: # MERCHANT return "»ÓÀÎ" -- cgit v1.2.3