예제 #1
0
 public PlayerInfo(MaidFiddlerGUI gui)
 {
     this.gui   = gui;
     valueLocks = new Dictionary <PlayerChangeType, bool>();
     ((PlayerChangeType[])Enum.GetValues(typeof(PlayerChangeType))).ForEach(t => valueLocks.Add(t, false));
     InitFunctions();
 }
예제 #2
0
 public PlayerInfo(MaidFiddlerGUI gui)
 {
     this.gui = gui;
     valueLocks = new Dictionary<PlayerChangeType, bool>();
     ((PlayerChangeType[]) Enum.GetValues(typeof (PlayerChangeType))).ForEach(t => valueLocks.Add(t, false));
     InitFunctions();
 }
예제 #3
0
            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
            }
예제 #4
0
            public PlayerInfo(MaidFiddlerGUI gui)
            {
                this.gui = gui;

                InitFunctions();
            }
예제 #5
0
 public void LoadGUI()
 {
     try
     {
         if (Gui == null)
             Gui = new MaidFiddlerGUI();
         Application.SetCompatibleTextRenderingDefault(false);
         Application.Run(Gui);
     }
     catch (Exception e)
     {
         ErrorLog.ThrowErrorMessage(e, "Generic error");
     }
 }