public MatchRunner(IMatch match, string playerOneFolder, string playerTwoFolder, IRenderer renderer) { Match = match; Renderer = renderer; _logger = new MatchLogger(); _consoleLogger = new ConsoleLogger(); _replayLogger = new ReplayLogger(); string runFilename = Environment.OSVersion.Platform == PlatformID.Unix ? Settings.Default.BotRunFilenameLinux : Settings.Default.BotRunFilename; _players = new BotRunner[2]; _players[0] = new BotRunner( 1, playerOneFolder, runFilename ); _players[1] = new BotRunner( 2, playerTwoFolder, runFilename ); match.SetPlayerName(1, _players[0].PlayerName); match.SetPlayerName(2, _players[1].PlayerName); }
public void Initialize(ISceneSettings settings) { Root = Rules.CreateWorld(this, settings); DrawerFactory = new DrawerFactory(Root); PhysicalManager.InitializeEngine(PhysicalEngines.Farseer, Root); Logger = new ReplayLogger(Root, 0.1); }
public MatchRunner(IMatch match, string playerOneFolder, string playerTwoFolder, IRenderer renderer, bool consoleLoggingDisabled, bool consoleLoggingMustScroll, string replayFolder) { Match = match; Renderer = renderer; string runFilename = Environment.OSVersion.Platform == PlatformID.Unix ? Settings.Default.BotRunFilenameLinux : Settings.Default.BotRunFilename; _players = new BotRunner[2]; _players[0] = new BotRunner( 1, playerOneFolder, runFilename ); _players[1] = new BotRunner( 2, playerTwoFolder, runFilename ); match.SetPlayerName(1, _players[0].PlayerName); match.SetPlayerName(2, _players[1].PlayerName); _replayLogger = new ReplayLogger(replayFolder); SetupLogging(consoleLoggingDisabled, consoleLoggingMustScroll); }
public void StartReplayLogger(string outputPath, string mode, string productVersion, string compileDate) { replayLogger = new ReplayLogger(outputPath, simModelFile, ref simCore.distributor, mode, productVersion, compileDate); replayLogThread = new Thread(new ThreadStart(replayLogger.WriteToLog)); replayLogThread.Start(); }
public void StopReplayLogger() { ReplayLogger.SetIsRunning(false); Thread.Sleep(100); if (replayLogThread != null) { replayLogThread.Abort(); } }
// Token: 0x060001D9 RID: 473 RVA: 0x0000B26C File Offset: 0x0000946C public void StartRecording() { Console.WriteLine("Started recording"); this.RecordingStarted = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds(); this.RecordingName = this.RecordingStarted.ToString() + "-" + base.GetType().Name; Program.GameConsole.SendCommand("stop; voice_scale 0; record " + this.RecordingName); Program.GameConsole.SendCommand("host_writeconfig reset.cfg"); Thread.Sleep(1000); Program.GameConsole.SendCommand("clear"); ReplayLogger.Log(Program.version, false, this.RecordingName); }
// Token: 0x0600007F RID: 127 RVA: 0x00006AE0 File Offset: 0x00004CE0 public virtual void AfterActivate(bool logging = true) { if (logging) { ReplayLogger.Log(base.GetType().Name, true, ""); Analytics.TrackEvent("Punishments", base.GetType().Name, "", 0); if (Program.Debug.ShowDebugMessages) { Program.GameConsole.SendCommand("Say \"Punishment activated (" + base.GetType().Name + ")\""); } } }
public SimEngine() { simCore = new SimCore(); logPlayer = null; coordinator = null; simModelFile = null; serverPortNumber = null; replayLogger = null; textChatServer = null; whiteboardServer = null; voiceServer = null; //handshakeManager = null; viewManager = null; }
// Token: 0x060000BF RID: 191 RVA: 0x00007705 File Offset: 0x00005905 public ReverseSpeedhack() : base(10000, true, 500) { ReplayLogger.Log(base.GetType().Name, true, ""); }