Implement LobbyServer
This commit is contained in:
19
LobbyServer/CommandPacket.cs
Normal file
19
LobbyServer/CommandPacket.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace LobbyServer
|
||||
{
|
||||
class CommandPacket
|
||||
{
|
||||
public Command Command { get; }
|
||||
public string Content { get; }
|
||||
|
||||
public CommandPacket(Command command, string content)
|
||||
{
|
||||
Command = command;
|
||||
Content = content;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{Command.ToString()}\n{Content}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user