-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public class LoadWorldPacket : ClientPacket { | ||
public LoadWorldPacket() : base((byte)GameClientPacketType.LoadWorld) { | ||
SetData(new byte[] { (byte)GameClientPacketType.LoadWorld, 0x02}); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
public class PingPacket : ClientPacket { | ||
public PingPacket() : base((byte)GameClientPacketType.Ping) { | ||
SetData(new byte[] { (byte)GameClientPacketType.Ping, 0x02}); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
public enum ClientPacketType : byte | ||
public enum GameClientPacketType : byte | ||
{ | ||
Ping = 0x00, | ||
AuthRequest = 0x01, | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
public enum ServerPacketType : byte | ||
public enum GameServerPacketType : byte | ||
{ | ||
Ping = 0, | ||
AuthResponse = 1, | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public enum LoginClientPacketType : byte { | ||
Ping = 0x00, | ||
AuthRequest = 0x01 | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public enum LoginServerPacketType : byte | ||
{ | ||
Ping = 0, | ||
AuthResponse = 1, | ||
MessagePacket = 2, | ||
SystemMessage = 3, | ||
PlayerInfo = 4, | ||
ObjectPosition = 5, | ||
RemoveObject = 6, | ||
ObjectRotation = 7, | ||
ObjectAnimation = 8, | ||
ApplyDamage = 9, | ||
NpcInfo = 0x0A, | ||
ObjectMoveTo = 0x0B, | ||
UserInfo = 0x0C, | ||
ObjectMoveDirection = 0x0D, | ||
GameTime = 0x0E, | ||
EntitySetTarget = 0x0F, | ||
AutoAttackStart = 0x10, | ||
AutoAttackStop = 0x11, | ||
ActionFailed = 0x12 | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using UnityEngine; | ||
|
||
public abstract class ClientPacketHandler | ||
{ | ||
protected AsynchronousClient _client; | ||
|
||
public void SetClient(AsynchronousClient client) { | ||
_client = client; | ||
} | ||
|
||
public abstract void SendPacket(ClientPacket packet); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.