mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-21 18:55:17 +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) {
|
||||
first = false;
|
||||
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]);
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
public enum PacketType {
|
||||
Unknown,
|
||||
Connect,
|
||||
Player,
|
||||
Game,
|
||||
Connect,
|
||||
Disconnect,
|
||||
Costume,
|
||||
Shine,
|
||||
|
|
Loading…
Reference in a new issue