mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-25 12:45:18 +00:00
Move connect packet type in enum
This commit is contained in:
parent
3f4a3fee9e
commit
6afb232953
2 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ public class Server {
|
||||||
if (first) {
|
if (first) {
|
||||||
first = false;
|
first = false;
|
||||||
if (header.Type != PacketType.Connect) {
|
if (header.Type != PacketType.Connect) {
|
||||||
throw new Exception("First packet was not init");
|
throw new Exception($"First packet was not init, instead it was {header.Type}");
|
||||||
}
|
}
|
||||||
|
|
||||||
ConnectPacket connect = MemoryMarshal.Read<ConnectPacket>(memory.Memory.Span[HeaderSize..size]);
|
ConnectPacket connect = MemoryMarshal.Read<ConnectPacket>(memory.Memory.Span[HeaderSize..size]);
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
public enum PacketType {
|
public enum PacketType {
|
||||||
Unknown,
|
Unknown,
|
||||||
Connect,
|
|
||||||
Player,
|
Player,
|
||||||
Game,
|
Game,
|
||||||
|
Connect,
|
||||||
Disconnect,
|
Disconnect,
|
||||||
Costume,
|
Costume,
|
||||||
Shine,
|
Shine,
|
||||||
|
|
Loading…
Reference in a new issue