public PlayerInfo(MaidFiddlerGUI gui) { this.gui = gui; valueLocks = new Dictionary <PlayerChangeType, bool>(); ((PlayerChangeType[])Enum.GetValues(typeof(PlayerChangeType))).ForEach(t => valueLocks.Add(t, false)); InitFunctions(); }
public PlayerInfo(MaidFiddlerGUI gui) { this.gui = gui; valueLocks = new Dictionary<PlayerChangeType, bool>(); ((PlayerChangeType[]) Enum.GetValues(typeof (PlayerChangeType))).ForEach(t => valueLocks.Add(t, false)); InitFunctions(); }
public MaidInfo(Maid maid, MaidFiddlerGUI gui) { Debugger.WriteLine("Creating new MaidInfo"); this.gui = gui; forceUpdateNightWorks = new Dictionary<int, bool>(); Maid = maid; ValueLocks = new Dictionary<MaidChangeType, bool>(); EnumHelper.MaidChangeTypes.ForEach(t => ValueLocks.Add(t, false)); TempUnlocks = new Dictionary<MaidChangeType, bool>(); EnumHelper.MaidChangeTypes.ForEach(t => TempUnlocks.Add(t, false)); #if DEBUG Debugger.WriteLine(LogLevel.Info, "Loading functions"); Stopwatch watch = new Stopwatch(); watch.Start(); #endif InitFunctions(); #if DEBUG watch.Stop(); Debugger.WriteLine( LogLevel.Info, $"Functions loaded. Time taken: {watch.Elapsed.TotalMilliseconds} ms."); #endif }
public PlayerInfo(MaidFiddlerGUI gui) { this.gui = gui; InitFunctions(); }
public void LoadGUI() { try { if (Gui == null) Gui = new MaidFiddlerGUI(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(Gui); } catch (Exception e) { ErrorLog.ThrowErrorMessage(e, "Generic error"); } }