[ADD] added lobby identifier enum

This commit is contained in:
Sem van der Hoeven
2020-10-20 19:40:10 +02:00
parent b1237e53a2
commit 3255ae885b

View File

@@ -13,6 +13,14 @@ namespace SharedClientServer
public const byte MESSAGE = 0x02;
public const byte LOBBY = 0x03;
public const byte CANVAS = 0x04;
enum LobbyIdentifier
{
HOST,
ADD,
LEAVE,
REQUEST
}
public static (string,string) GetUsernameAndMessage(byte[] json)
{
string msg = Encoding.ASCII.GetString(json);