private static void Postfix(GameObject go) { BatterySmart batterySmart = go.AddOrGet <BatterySmart>(); batterySmart.capacity = (float)CustomizeBuildingsState.StateManager.State.BatterySmartKJ; if (CustomizeBuildingsState.StateManager.State.BatterySmartNoRunOff) { batterySmart.joulesLostPerSecond = 0f; } }
public override void DoPostConfigureComplete(GameObject go) { BatterySmart batterySmart = go.AddOrGet <BatterySmart>(); batterySmart.capacity = 20000f; batterySmart.joulesLostPerSecond = 0.6666667f; batterySmart.powerSortOrder = 1000; GeneratedBuildings.RegisterLogicPorts(go, null, OUTPUT_PORTS); base.DoPostConfigureComplete(go); }
//// Token: 0x06000038 RID: 56 RVA: 0x00002AE5 File Offset: 0x00000CE5 //public override void DoPostConfigurePreview(BuildingDef def, GameObject go) //{ // //GeneratedBuildings.RegisterLogicPorts(go, null, HeavySmartBatteryConfig.OUTPUT_PORTS); // GeneratedBuildings.RegisterSingleLogicInputPort(go); //} //// Token: 0x06000039 RID: 57 RVA: 0x00002AF5 File Offset: 0x00000CF5 //public override void DoPostConfigureUnderConstruction(GameObject go) //{ // //GeneratedBuildings.RegisterLogicPorts(go, null, HeavySmartBatteryConfig.OUTPUT_PORTS); // GeneratedBuildings.RegisterSingleLogicInputPort(go); //} // Token: 0x0600003A RID: 58 RVA: 0x00002B08 File Offset: 0x00000D08 public override void DoPostConfigureComplete(GameObject go) { BatterySmart batterySmart = go.AddOrGet <BatterySmart>(); batterySmart.capacity = (float)ConfigFile.config.heavySmartBatteryCapacity; batterySmart.joulesLostPerSecond = batterySmart.capacity * 0.005f / 600f; batterySmart.powerSortOrder = 1000; //GeneratedBuildings.RegisterSingleLogicInputPort(go); base.DoPostConfigureComplete(go); }
private void OnCopySettings(object data) { GameObject gameObject = (GameObject)data; BatterySmart component = gameObject.GetComponent <BatterySmart>(); if ((Object)component != (Object)null) { ActivateValue = component.ActivateValue; DeactivateValue = component.DeactivateValue; } }
//// Token: 0x06000025 RID: 37 RVA: 0x000023D7 File Offset: 0x000005D7 //public override void DoPostConfigurePreview(BuildingDef def, GameObject go) //{ // //GeneratedBuildings.RegisterLogicPorts(go, null, EmergencyBatteryConfig.OUTPUT_PORTS); // GeneratedBuildings.RegisterSingleLogicInputPort(go); //} //// Token: 0x06000026 RID: 38 RVA: 0x000023E7 File Offset: 0x000005E7 //public override void DoPostConfigureUnderConstruction(GameObject go) //{ // //GeneratedBuildings.RegisterLogicPorts(go, null, EmergencyBatteryConfig.OUTPUT_PORTS); // GeneratedBuildings.RegisterSingleLogicInputPort(go); //} // Token: 0x06000027 RID: 39 RVA: 0x000023F8 File Offset: 0x000005F8 public override void DoPostConfigureComplete(GameObject go) { BatterySmart batterySmart = go.AddOrGet <BatterySmart>(); batterySmart.capacity = (float)ConfigFile.config.emergencyBatteryCapacity; batterySmart.joulesLostPerSecond = 0f; batterySmart.powerSortOrder = 1500; //GeneratedBuildings.RegisterLogicPorts(go, null, EmergencyBatteryConfig.OUTPUT_PORTS); //GeneratedBuildings.RegisterSingleLogicInputPort(go); base.DoPostConfigureComplete(go); }