summaryrefslogtreecommitdiff
path: root/constants.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-12-20 11:42:22 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-12-20 11:42:22 +0100
commitf4e07d090cded56ebab54363f1b47f1ea45c8682 (patch)
tree616698bb4306184469b92d68d3f74dfb61d02c72 /constants.gd
parent75793bd23d275d10d6a0bd8024a7e412b64557ce (diff)
next commitHEADmain
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 "»ÓÀÎ"