public static void ChaControl_SetClothesState_Post(ChaControl __instance, int clothesKind, byte state, bool next = true) { #if DEBUG BreastPhysicsController.Logger.LogDebug("clothesKind:" + clothesKind.ToString() + " state:" + state.ToString()); #endif DBControllerManager.GetControllerByChaControl(__instance)?.OnClothesStateChanged(); }
public static bool BustGravity_ReCalc_Pre(BustGravity __instance) { ParamCharaController controller = DBControllerManager.GetControllerByBustGravity(__instance); if (controller != null && controller.Enabled && controller.isEnabledNowBust()) { return(false); } return(true); }
private void Init() { controllerID = this.GetInstanceID(); DBControllerManager.AddController(this); paramCustom = new ParamChara(); paramBackup = new ParamBackup(); Enabled = false; changedControllerEnabled = false; changedInfo = new ParamChangedInfo(); endInitLoad = false; }
protected override void OnDestroy() { DBControllerManager.RemoveController(controllerID); //BreastPhysicsController.w_NeedUpdateCharaList = true; base.OnDestroy(); }