예제 #1
0
		public void handleMessage(Message msg)
		{
			try {
				if (msg is BattleRedirectMessage)
				{
                    this.spectating = false;
					recorder = new Recorder(recordFolder, this, this.sttngs);
					Console.WriteLine("Recorder started: " + recorder);
				}
			} catch {}
            //try
            //{
                if (msg is SpectateRedirectMessage)
                {
                    this.spectating = true;
                    recorder = new Recorder(recordFolder, this, this.sttngs);
                    Console.WriteLine("Recorder started: " + recorder + " (Spectator)");
                    
                }
            //}
            //catch { }
		}
예제 #2
0
 public void handleMessage(Message msg)
 {
     if (msg is BattleRedirectMessage) {
         recorder = new Recorder (this.OwnFolder()+Path.DirectorySeparatorChar+"Records");
         Console.WriteLine ("Recorder started: "+recorder);
     }
 }