Ejemplo n.º 1
0
        public static void ScheduleCtrlPatchC(
            ScheduleCtrl __instance
            , ref Dictionary <string, ScheduleCtrl.MaidStatusAndTaskUnit> ___m_dicMaidStatusAndTask
            , ref string ___m_deleteSlotNo
            , ref ScheduleMgr ___m_scheduleMgr
            , ref ScheduleScene ___m_scheduleApi
            , ref CharacterSelectManager ___m_charSelMgr
            , ref ScheduleCtrl.ExclusiveViewer ___m_currentActiveViewer
            )
        {
            MyLog.LogMessage(
                "ScheduleCtrlPatchC"
                );

            instance     = __instance;
            hGetMaidName = AccessTools.Method(typeof(ScheduleCtrl), "GetMaidName"); // 이건 잘됨
            //hGetMaidBySlotNo = AccessTools.Method(typeof(ScheduleCtrl), "GetMaidBySlotNo"); // 이건 잘됨
            //hSetViewerActive = AccessTools.Method(typeof(ScheduleCtrl), "SetViewerActive"); // 이건 잘됨
            //hSetSelectedRowActive = AccessTools.Method(typeof(ScheduleCtrl), "SetSelectedRowActive"); // 이건 잘됨
            m_dicMaidStatusAndTask = ___m_dicMaidStatusAndTask;
            m_deleteSlotNo         = ___m_deleteSlotNo;
            m_scheduleMgr          = ___m_scheduleMgr;
            m_scheduleApi          = ___m_scheduleApi;
            m_charSelMgr           = ___m_charSelMgr;
            m_currentActiveViewer  = ___m_currentActiveViewer;
        }
 // private Dictionary<string, ScheduleCtrl.MaidStatusAndTaskUnit> LoadData()
 private static void LoadData(
     ScheduleMgr __instance
     , ScheduleScene ___m_scheduleApi
     ) // string __m_BGMName 못가져옴
 {
     MyLog.LogMessage("LoadData"
                      );
     m_scheduleApi = ___m_scheduleApi;
 }
        public static void ReloadNoonWorkData(ref ScheduleScene scheduleScene, int slotNo)
        {
            PostProcessNoonEventArgs args = new PostProcessNoonEventArgs
            {
                ScheduleScene = scheduleScene,
                SlotID        = slotNo
            };

            ProcessNoonWorkData?.Invoke(null, args);
        }
 // public void SetNightWorkSlot_Safe(ScheduleMgr.ScheduleTime workTime, int slotId, int workId)
 public static void SetNightWorkSlot_Safe(
     ScheduleScene __instance
     , ScheduleMgr.ScheduleTime workTime, int slotId, int workId)
 {
     if (configEntryUtill["SetNightWorkSlot_Safe", false])
     {
         MyLog.LogMessage(
             "SetNightWorkSlot_Safe"
             , workTime
             , slotId
             , workId
             );
     }
 }
 // private void SetNightWorkId(Maid maid, int setId)
 public static void SetCommuSlot_Safe(
     ScheduleScene __instance
     , Maid maid, int setId
     )
 {
     if (configEntryUtill["SetNightWorkId", false])
     {
         MyLog.LogMessage(
             "SetCommuSlot_Safe"
             , MyUtill.GetMaidFullName(maid)
             , setId
             );
     }
 }
 // public void SetSlot_Safe(int slotId, Maid maid, bool slotUpdate = true, bool updateAll = true)
 public static void SetSlot_Safe(
     ScheduleScene __instance
     , int slotId, Maid maid, bool slotUpdate = true, bool updateAll = true)
 {
     if (configEntryUtill["SetSlot_Safe", false])
     {
         MyLog.LogMessage(
             "SetSlot_Safe"
             , slotId
             , MyUtill.GetMaidFullName(maid)
             , slotUpdate
             , updateAll
             );
     }
 }
 // public void SetCommuSlot_Safe(ScheduleMgr.ScheduleTime workTime, int slotId, bool value)
 public static void SetCommuSlot_Safe(
     ScheduleScene __instance
     , ScheduleMgr.ScheduleTime workTime, int slotId, bool value
     )
 {
     if (configEntryUtill["SetCommuSlot_Safe", false])
     {
         MyLog.LogMessage(
             "SetCommuSlot_Safe"
             , workTime
             , slotId
             , value
             );
     }
 }
 public static void ReloadNoonWorkData(ref ScheduleScene scheduleScene, int slotNo)
 {
     PostProcessNoonEventArgs args = new PostProcessNoonEventArgs
     {
         ScheduleScene = scheduleScene,
         SlotID = slotNo
     };
     ProcessNoonWorkData?.Invoke(args);
 }