Пример #1
0
 public ServerInfo(SettingsStore settings)
 {
     server_name      = settings.serverName;
     version          = Common.PROGRAM_VERSION;
     protocol_version = Common.PROTOCOL_VERSION;
     player_count     = Server.playerCount;
     players          = Server.players;
     max_players      = settings.maxPlayers;
     game_mode        = settings.gameMode.ToString();
     warp_mode        = settings.warpMode.ToString();
     port             = settings.port;
     mod_control      = settings.modControl;
     cheats           = settings.cheats;
 }
Пример #2
0
 public ServerInfo(SettingsStore settings)
 {
     server_name = settings.serverName;
     version = Common.PROGRAM_VERSION;
     protocol_version = Common.PROTOCOL_VERSION;
     player_count = Server.playerCount;
     players = Server.players;
     max_players = settings.maxPlayers;
     game_mode = settings.gameMode.ToString();
     warp_mode = settings.warpMode.ToString();
     port = settings.port;
     mod_control = settings.modControl;
     cheats = settings.cheats;
 }
Пример #3
0
 public ServerInfo(SettingsStore settings)
 {
     server_name        = settings.serverName;
     version            = Common.PROGRAM_VERSION;
     protocol_version   = Common.PROTOCOL_VERSION;
     player_count       = Server.playerCount;
     players            = Server.players;
     max_players        = settings.maxPlayers;
     game_mode          = settings.gameMode.ToString();
     warp_mode          = settings.warpMode.ToString();
     port               = settings.port;
     mod_control        = settings.modControl;
     cheats             = settings.cheats;
     universeSize       = Server.GetUniverseSize();
     lastPlayerActivity = (Server.lastPlayerActivity - new DateTime(1970, 1, 1).ToLocalTime()).TotalSeconds;
 }
Пример #4
0
 public ServerInfo(SettingsStore settings)
 {
     server_name = settings.serverName;
     version = Common.PROGRAM_VERSION;
     protocol_version = Common.PROTOCOL_VERSION;
     player_count = Server.playerCount;
     players = Server.players;
     max_players = settings.maxPlayers;
     game_mode = settings.gameMode.ToString();
     warp_mode = settings.warpMode.ToString();
     port = settings.port;
     mod_control = (int)settings.modControl;
     cheats = settings.cheats;
     universeSize = Server.GetUniverseSize();
     lastPlayerActivity = Server.GetLastPlayerActivity();
     modControlSha = Server.GetModControlSHA();
 }
Пример #5
0
 public ServerInfo(SettingsStore settings)
 {
     server_name        = settings.serverName;
     version            = Common.PROGRAM_VERSION;
     protocol_version   = Common.PROTOCOL_VERSION;
     player_count       = Server.playerCount;
     players            = Server.players;
     max_players        = settings.maxPlayers;
     game_mode          = settings.gameMode.ToString();
     warp_mode          = settings.warpMode.ToString();
     port               = settings.port;
     mod_control        = (int)settings.modControl;
     cheats             = settings.cheats;
     universeSize       = Server.GetUniverseSize();
     lastPlayerActivity = Server.GetLastPlayerActivity();
     modControlSha      = Server.GetModControlSHA();
 }
Пример #6
0
 public static void Reset()
 {
     _settingsStore = null;
 }