static EACServer() { EACServer.client2connection = new Dictionary <EasyAntiCheat.Server.Hydra.Client, Connection>(); EACServer.connection2client = new Dictionary <Connection, EasyAntiCheat.Server.Hydra.Client>(); EACServer.connection2status = new Dictionary <Connection, ClientStatus>(); EACServer.easyAntiCheat = null; }
static EACServer() { client2connection = new Dictionary <Client, Connection>(); connection2client = new Dictionary <Connection, Client>(); connection2status = new Dictionary <Connection, ClientStatus>(); easyAntiCheat = null; }
public static void DoShutdown() { client2connection.Clear(); connection2client.Clear(); connection2status.Clear(); if (easyAntiCheat != null) { ConsoleSystem.Log("EasyAntiCheat Server Shutting Down"); easyAntiCheat.Dispose(); easyAntiCheat = null; } }
public static void DoStartup() { client2connection.Clear(); connection2client.Clear(); connection2status.Clear(); StreamWriter streamWriter = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory + "/Logs/Log.EAC.txt", true) { AutoFlush = true }; Log.SetOut(streamWriter); Log.Prefix = string.Empty; Log.Level = LogLevel.Info; easyAntiCheat = new EasyAntiCheatServer <Client>(HandleClientUpdate, 20, "My Server Name"); UServer3.CSharp.ExtensionMethods.ConsoleEx.ClearCurrentConsoleLine(); }
public static void DoStartup() { EACServer.client2connection.Clear(); EACServer.connection2client.Clear(); EACServer.connection2status.Clear(); Log.SetOut(new StreamWriter(string.Concat(ConVar.Server.rootFolder, "/Log.EAC.txt"), false) { AutoFlush = true }); Log.Prefix = ""; Log.Level = EasyAntiCheat.Server.LogLevel.Info; EACServer.easyAntiCheat = new EasyAntiCheatServer <EasyAntiCheat.Server.Hydra.Client>(new EasyAntiCheatServer <EasyAntiCheat.Server.Hydra.Client> .ClientStatusHandler(EACServer.HandleClientUpdate), 20, ConVar.Server.hostname); EACServer.playerTracker = EACServer.easyAntiCheat.Cerberus; EACServer.playerTracker.LogGameRoundStart(World.Name, string.Empty, 0); EACServer.eacScout = new Scout(); }
public static void DoStartup() { EACServer.client2connection.Clear(); EACServer.connection2client.Clear(); EACServer.connection2status.Clear(); Log.SetOut((TextWriter) new StreamWriter(ConVar.Server.rootFolder + "/Log.EAC.txt", false) { AutoFlush = true }); Log.set_Prefix(""); Log.set_Level((LogLevel)3); // ISSUE: method pointer EACServer.easyAntiCheat = new EasyAntiCheatServer <EasyAntiCheat.Server.Hydra.Client>(new EasyAntiCheatServer <EasyAntiCheat.Server.Hydra.Client> .ClientStatusHandler((object)null, __methodptr(HandleClientUpdate)), 20, ConVar.Server.hostname); EACServer.playerTracker = EACServer.easyAntiCheat.get_Cerberus(); EACServer.playerTracker.LogGameRoundStart(World.Name, string.Empty, 0); EACServer.eacScout = new EasyAntiCheat.Server.Scout.Scout(); }
public static void DoShutdown() { client2connection.Clear(); connection2client.Clear(); connection2status.Clear(); if (eacScout != null) { Debug.Log("EasyAntiCheat Scout Shutting Down"); eacScout.Dispose(); eacScout = null; } if (easyAntiCheat != null) { Debug.Log("EasyAntiCheat Server Shutting Down"); easyAntiCheat.Dispose(); easyAntiCheat = null; } }
public static void DoShutdown() { EACServer.client2connection.Clear(); EACServer.connection2client.Clear(); EACServer.connection2status.Clear(); if (EACServer.eacScout != null) { Debug.Log((object)"EasyAntiCheat Scout Shutting Down"); EACServer.eacScout.Dispose(); EACServer.eacScout = (EasyAntiCheat.Server.Scout.Scout)null; } if (EACServer.easyAntiCheat == null) { return; } Debug.Log((object)"EasyAntiCheat Server Shutting Down"); EACServer.easyAntiCheat.Dispose(); EACServer.easyAntiCheat = (EasyAntiCheatServer <EasyAntiCheat.Server.Hydra.Client>)null; }
public static void DoStartup() { if (ConVar.Server.secure) { client2connection.Clear(); connection2client.Clear(); connection2status.Clear(); Log.SetOut(new StreamWriter(ConVar.Server.rootFolder + "/Log.EAC.txt", false) { AutoFlush = true }); Log.Prefix = ""; Log.Level = LogLevel.Info; easyAntiCheat = new EasyAntiCheatServer <EasyAntiCheat.Server.Hydra.Client>(HandleClientUpdate, 20, ConVar.Server.hostname); playerTracker = easyAntiCheat.Cerberus; playerTracker.LogGameRoundStart(World.Name, string.Empty, 0); eacScout = new Scout(); } }