Пример #1
0
 public static void ChangeCharaPostfix(OCIChar __instance)
 {
     if (KK_FBIOpenUp._isenabled)
     {
         Patches.ChangeChara(__instance.charInfo);
     }
 }
Пример #2
0
 public static void AddPostfix(ChaControl _female, OICharInfo _info)
 {
     if (KK_FBIOpenUp._isenabled)
     {
         Patches.ChangeChara(_female);
     }
 }
Пример #3
0
        public static void LoadFileLimitedPostfix(ChaFileControl __instance)
        {
            if (KK_FBIOpenUp._isenabled)
            {
                if (KK_FBIOpenUp.nowGameMode == KK_FBIOpenUp.GameMode.Studio)
                {
                    ChaControl chaCtrl = Singleton <Manager.Character> .Instance.dictEntryChara.Where((x) => x.Value.chaFile == __instance).Single().Value;

                    if (null != chaCtrl)
                    {
                        Patches.ChangeChara(chaCtrl);
                    }
                }
                else
                {
                    Patches.ChangeChara(Singleton <CustomBase> .Instance.chaCtrl);
                }
            }
        }