internal static void RandPreset(Maid m_maid = null, ListType listType = ListType.All) { if (configEntryUtill["RandPreset", false]) { MyLog.LogDebug("RandPreset"); } if (m_maid == null) { m_maid = GameMain.Instance.CharacterMgr.GetMaid(0); if (m_maid == null) { //MyLog.LogWarning("RandPreset maid null"); return; } } MyLog.LogMessage("RandPreset", MyUtill.GetMaidFullName(m_maid)); List <string> list = lists; list = GetList(listType, list); if (list.Count == 0) { MyLog.LogWarning("RandPreset No list"); return; } string file = list[rand.Next(list.Count)]; SetMaidPreset(m_maid, file); }
public static Personal.Data SetPersonal(Maid maid, int index) { Personal.Data data = GetPersonalData(index); maid.status.SetPersonal(data); maid.status.firstName = data.uniqueName; MyLog.LogMessage( "PersonalUtill.SetPersonal" , MyUtill.GetMaidFullName(maid) ); return(data); }
public static int SetPersonalRandom(Maid maid) { int a = UnityEngine.Random.Range(0, GetPersonalData().Count); Personal.Data data = GetPersonalData(a); maid.status.SetPersonal(data); maid.status.firstName = data.uniqueName; MyLog.LogMessage( "PersonalUtill.SetPersonalRandom" , MyUtill.GetMaidFullName(maid) ); return(a); }
public static void SetPersonalCare(Maid maid) { MyLog.LogMessage( "PersonalUtill.SetPersonalCare" , MyUtill.GetMaidFullName(maid) , (maid.status.OldStatus != null) ); maid.status.SetPersonal(maid.status.personal); MyLog.LogMessage( "PersonalUtill.SetPersonalCare" , MyUtill.GetMaidFullName(maid) , (maid.status.OldStatus != null) ); }
public static void LoadBody_R(string f_strModelFileName, Maid f_maid) { MyLog.LogMessage("TBody.LoadBody_R" , MyUtill.GetMaidFullName(f_maid) , f_strModelFileName ); MyLog.LogMessage("LoadBody_R", f_maid.body0 == null, (f_maid.body0).m_Bones == null, (f_maid.body0).Face == null, !f_maid.body0.isLoadedBody); MyLog.LogMessage("LoadBody_R", f_maid.IsCrcBody, f_maid.boMAN, MaidControlleUtill.Count); try { if (!f_maid.boMAN) { MaidControlleUtill.GetVMDAC(f_maid); } } catch (Exception e) { MyLog.LogError(e); } }
public static void OnEndScene(string ___m_strScriptArg, Maid ___m_maid) { if (configEntryUtill["OnEndScene", false]) { MyLog.LogMessage("SceneEdit.OnEndScene" , ___m_strScriptArg , MyUtill.GetMaidFullName(___m_maid) ); } // MaidManagementMain.OnSelectChara: , A1 , 구 메이드 비서 , Sub , Exclusive if (___m_maid.status.heroineType == MaidStatus.HeroineType.Sub) { return; } if (GUIMaidEdit.newMaid.Value) { GameMain.Instance.CMSystem.SetTmpGenericFlag("新規雇用メイド", 1); } else if (GUIMaidEdit.movMaid.Value) { GameMain.Instance.CMSystem.SetTmpGenericFlag("移籍メイド", 1); } }
public static void PresetSet(Maid f_maid, CharacterMgr.Preset f_prest) { MyLog.Log("PresetSet.Prefix" , MyUtill.GetMaidFullName(f_maid) , f_prest.strFileName ); switch (presetType) { case PresetType.Wear: f_prest.ePreType = CharacterMgr.PresetType.Wear; break; case PresetType.Body: f_prest.ePreType = CharacterMgr.PresetType.Body; break; case PresetType.All: f_prest.ePreType = CharacterMgr.PresetType.All; break; default: break; } }