コード例 #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
ファイル: MaidInfo.cs プロジェクト: MrSwiss/CM3D2.MaidFiddler
            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");
     }
 }