-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
requestserverlogin, playfail, playok packets
- Loading branch information
Showing
19 changed files
with
299 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...pts/Networking/ClientLibrary/Packet/Loginserver/ClientPackets/RequestServerLoginPacket.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class RequestServerLoginPacket : ClientPacket { | ||
public RequestServerLoginPacket(int serverId, int sessionKey1, int sessionKey2) : base((byte)LoginClientPacketType.RequestServerLogin) { | ||
|
||
WriteI(sessionKey1); | ||
WriteI(sessionKey2); | ||
WriteI(serverId); | ||
|
||
BuildPacket(); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...etworking/ClientLibrary/Packet/Loginserver/ClientPackets/RequestServerLoginPacket.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
...ssets/Scripts/Networking/ClientLibrary/Packet/Loginserver/ServerPackets/PlayFailPacket.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class PlayFailPacket : ServerPacket { | ||
public enum PlayFailReason : byte { | ||
REASON_NO_MESSAGE = 0x00, | ||
REASON_SYSTEM_ERROR_LOGIN_LATER = 0x01, | ||
REASON_USER_OR_PASS_WRONG = 0x02, | ||
REASON_ACCESS_FAILED_TRY_AGAIN_LATER = 0x04, | ||
REASON_ACCOUNT_INFO_INCORRECT_CONTACT_SUPPORT = 0x05, | ||
REASON_ACCOUNT_IN_USE = 0x07, | ||
REASON_UNDER_18_YEARS_KR = 0x0C, | ||
REASON_SERVER_OVERLOADED = 0x0F, | ||
REASON_SERVER_MAINTENANCE = 0x10, | ||
REASON_TEMP_PASS_EXPIRED = 0x11, | ||
REASON_GAME_TIME_EXPIRED = 0x12, | ||
REASON_NO_TIME_LEFT = 0x13, | ||
REASON_SYSTEM_ERROR = 0x14, | ||
REASON_ACCESS_FAILED = 0x15, | ||
REASON_RESTRICTED_IP = 0x16, | ||
REASON_WEEK_USAGE_FINISHED = 0x1E, | ||
REASON_SECURITY_CARD_NUMBER_INVALID = 0x1F, | ||
REASON_AGE_NOT_VERIFIED_CANT_LOG_BETWEEN_10PM_6AM = 0x20, | ||
REASON_SERVER_CANNOT_BE_ACCESSED_BY_YOUR_COUPON = 0x21, | ||
REASON_DUAL_BOX = 0x23, | ||
REASON_INACTIVE = 0x24, | ||
REASON_USER_AGREEMENT_REJECTED_ON_WEBSITE = 0x25, | ||
REASON_GUARDIAN_CONSENT_REQUIRED = 0x26, | ||
REASON_USER_AGREEMENT_DECLINED_OR_WITHDRAWAL_REQUEST = 0x27, | ||
REASON_ACCOUNT_SUSPENDED_CALL = 0x28, | ||
REASON_CHANGE_PASSWORD_AND_QUIZ_ON_WEBSITE = 0x29, | ||
REASON_ALREADY_LOGGED_INTO_10_ACCOUNTS = 0x2A, | ||
REASON_MASTER_ACCOUNT_RESTRICTED = 0x2B, | ||
REASON_CERTIFICATION_FAILED = 0x2E, | ||
REASON_TELEPHONE_CERTIFICATION_UNAVAILABLE = 0x2F, | ||
REASON_TELEPHONE_SIGNALS_DELAYED = 0x30, | ||
REASON_CERTIFICATION_FAILED_LINE_BUSY = 0x31, | ||
REASON_CERTIFICATION_SERVICE_NUMBER_EXPIRED_OR_INCORRECT = 0x32, | ||
REASON_CERTIFICATION_SERVICE_CURRENTLY_BEING_CHECKED = 0x33, | ||
REASON_CERTIFICATION_SERVICE_CANT_BE_USED_HEAVY_VOLUME = 0x34, | ||
REASON_CERTIFICATION_SERVICE_EXPIRED_GAMEPLAY_BLOCKED = 0x35, | ||
REASON_CERTIFICATION_FAILED_3_TIMES_GAMEPLAY_BLOCKED_30_MIN = 0x36, | ||
REASON_CERTIFICATION_DAILY_USE_EXCEEDED = 0x37, | ||
REASON_CERTIFICATION_UNDERWAY_TRY_AGAIN_LATER = 0x38 | ||
} | ||
|
||
|
||
private PlayFailReason _playFailReason; | ||
public PlayFailReason FailedReason { get { return _playFailReason; } } | ||
|
||
|
||
public PlayFailPacket(byte[] d) : base(d) { | ||
Parse(); | ||
} | ||
|
||
public override void Parse() { | ||
_playFailReason = (PlayFailReason)ReadB(); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
.../Scripts/Networking/ClientLibrary/Packet/Loginserver/ServerPackets/PlayFailPacket.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.