summaryrefslogtreecommitdiff
path: root/constants.gd
diff options
context:
space:
mode:
Diffstat (limited to 'constants.gd')
-rw-r--r--constants.gd26
1 files changed, 21 insertions, 5 deletions
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 "»ÓÀÎ"