public void SaveReplay() { if (IsDisposed) { throw new ObjectDisposedException(null); } // "12-30-2020 11-59-59 PM - Team 1 vs Team 2.pbereplay" SaveReplay(PBEUtils.ToSafeFileName(new string(string.Format("{0} - {1} vs {2}", DateTime.Now.ToLocalTime(), Teams[0].TrainerName, Teams[1].TrainerName).Take(200).ToArray())) + ".pbereplay"); }
public string GetDefaultReplayFileName() { // "2020-12-30 23-59-59 - Team 1 vs Team 2.pbereplay" return(PBEUtils.ToSafeFileName(new string(string.Format("{0:yyyy-MM-dd HH-mm-ss} - {1} vs {2}", DateTime.Now, Teams[0].CombinedName, Teams[1].CombinedName).Take(200).ToArray())) + ".pbereplay"); }
public void SaveReplay() { // "12-30-2020 11-59-59 PM - Team 1 vs Team 2.pbereplay" SaveReplay(PBEUtils.ToSafeFileName(new string(string.Format("{0} - {1} vs {2}", DateTime.Now.ToLocalTime(), Teams[0].TrainerName, Teams[1].TrainerName).Take(200).ToArray())) + ".pbereplay"); }