Ejemplo n.º 1
0
 public void recordSpectator() 
 {
     this.comm.removeListener(this);
     IpPort address = App.SceneValues.battleMode.address;
     if (!address.Equals(App.Communicator.getAddress()))
     {
         this.comm = App.SceneValues.battleMode.specCommGameObject.GetComponent<MiniCommunicator>();
         this.comm.addListener(this);
         this.comm.setEnabled(true, true);
     }
     messages.Add("{\"version\":\"0.112.1\",\"assetURL\":\"http://download.scrolls.com/assets/\",\"roles\":\"GAME,RESOURCE\",\"msg\":\"ServerInfo\"}");
 }
Ejemplo n.º 2
0
		public Recorder(String saveFolder, Mod uiClass, Settings stngs)
		{
            this.settings = stngs;
			this.saveFolder = saveFolder;
			//App.Communicator.addListener(this);
			this.comm = App.Communicator;
            this.comm.addListener(this);
                /*IpPort address = App.SceneValues.battleMode.address;
                if (!address.Equals(App.Communicator.getAddress()))
                {
                    this.comm = App.SceneValues.battleMode.specCommGameObject.GetComponent<MiniCommunicator>();
                    this.comm.addListener(this);
                    this.comm.setEnabled(true, true);
                }
                */
            this.uiClass = uiClass;
            this.recording = true;
			//timestamp = DateTime.Now;
            

            gsc = new GameStateCreator();

		}