internal static void InitCostumeListPostfix(MPCharCtrl.CostumeInfo __instance, ref int ___sex, ref int __state) { ___sex = __state; if (_costumeInfoEntry != null) { _costumeInfoEntry.RefilterInProgress = false; } _refilterOnly = false; }
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; }
public CostumeInfoEntry(MPCharCtrl.CostumeInfo costumeInfo) { _costumeInfo = costumeInfo; _clothesRoot = (GameObject)costumeInfo.GetType().GetField("objRoot", AccessTools.all).GetValue(costumeInfo); }