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(); }
public ReplayDownloader(Mod p) { this.callback = p; saveDirectory = p.getRecordFolder() + Path.DirectorySeparatorChar + "downloads" + Path.DirectorySeparatorChar; if (!Directory.Exists(saveDirectory)) { Directory.CreateDirectory(saveDirectory); } }
public ReplayUploader(Mod m, Record r) { this.m = m; this.toUpload = r; Thread uploadThread = new Thread(new ThreadStart(Upload)); uploadThread.Start(); }