Exemplo n.º 1
0
 internal static void InitCostumeListPostfix(MPCharCtrl.CostumeInfo __instance, ref int ___sex, ref int __state)
 {
     ___sex = __state;
     if (_costumeInfoEntry != null)
     {
         _costumeInfoEntry.RefilterInProgress = false;
     }
     _refilterOnly = false;
 }
Exemplo n.º 2
0
 internal static void InitCostumeListPrefix(MPCharCtrl.CostumeInfo __instance, int _sex, ref int ___sex, ref int __state)
 {
     //If the CostumeInfo.sex field is equal to the parameter _sex, the method doesn't do anything
     __state = _sex;
     ___sex  = 99;
     if (_costumeInfoEntry == null)
     {
         _costumeInfoEntry = new CostumeInfoEntry(__instance);
     }
     _refilterOnly = _costumeInfoEntry.RefilterInProgress;
 }
Exemplo n.º 3
0
 public CostumeInfoEntry(MPCharCtrl.CostumeInfo costumeInfo)
 {
     _costumeInfo = costumeInfo;
     _clothesRoot = (GameObject)costumeInfo.GetType().GetField("objRoot", AccessTools.all).GetValue(costumeInfo);
 }