// // copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c // public static void GameEnd2(ExceptionDam eDam) { while (1 <= Finalizers.Count) { eDam.Invoke(ExtraTools.UnaddElement(Finalizers)); } }
public void Dispose() { if (this.DisposeOnce.Issue()) { ExceptionDam.Section(eDam => { eDam.Dispose(ref this.EvStopConv); eDam.Dispose(ref this.EvCancellable_Y); eDam.Dispose(ref this.EvCancellable_N); eDam.Dispose(ref this.EvMessage_Normal); eDam.Dispose(ref this.EvMessage_StartGenVideo); eDam.Dispose(ref this.EvMessage_GenVideoRunning); eDam.Dispose(ref this.EvMessage_UserCancelled); eDam.Dispose(ref this.CmProgressRate); eDam.Dispose(ref this.CmReport); }); } }
public static void Perform(Action routine) { ExceptionDam.Section(eDam => { eDam.Invoke(() => { DDMain.GameStart(); try { routine(); } catch (DDCoffeeBreak) { } }); DDMain.GameEnd(eDam); }); }