Beispiel #1
0
 private Command(string name, Server server, Client client, string details, bool isFromServer, string type, Game game = null)
 {
     Name = name;
     Server = server;
     Client = client;
     Details = details;
     IsFromServer = isFromServer;
     Type = type;
     Game = game;
     ExecutionTime = DateTime.Now;
 }
Beispiel #2
0
 private static void RegisterCommand(string name, Server srv, Client cli, string detail, bool isFromServer, string type, Game g = null)
 {
     Database.CommandsToLog.Add(new Command(name, srv, cli, detail, isFromServer, type, g));
 }
Beispiel #3
0
 public static void RegisterGeneralCommandFromServer(string name, Server srv, Client cli, string detail)
 {
     RegisterCommand(name, srv, cli, detail, true, GENERAL);
 }
Beispiel #4
0
 public static void RegisterLobbyCommandFromServer(string name, Server srv, Client cli, string detail)
 {
     RegisterCommand(name, srv, cli, detail, true, LOBBY);
 }
Beispiel #5
0
 public static void RegisterGameCommandFromServer(string name, Game game, Client cli, string detail)
 {
     RegisterCommand(name, game.Table.Server, cli, detail, true, GAME, game);
 }