Exemplo n.º 1
0
        public override void DoPostConfigureComplete(GameObject go)
        {
            GeneratedBuildings.RegisterLogicPorts(go, AutoMopper.INPUT_PORTS);
            go.AddOrGet <LogicOperationalController>();
            go.GetComponent <KPrefabID>().AddTag(RoomConstraints.ConstraintTags.IndustrialMachinery);
            go.AddOrGet <LoopingSounds>();
            go.AddOrGet <EnergyConsumer>();
            go.AddOrGet <Pump>();
            go.AddOrGet <Storage>().capacityKg = 5f;
            ElementConsumer elementConsumer = go.AddOrGet <ElementConsumer>();

            elementConsumer.configuration     = ElementConsumer.Configuration.AllLiquid;
            elementConsumer.consumptionRate   = 2.5f;
            elementConsumer.storeOnConsume    = true;
            elementConsumer.showInStatusPanel = false;
            elementConsumer.consumptionRadius = (byte)23;
            ConduitDispenser conduitDispenser = go.AddOrGet <ConduitDispenser>();

            conduitDispenser.conduitType    = ConduitType.Liquid;
            conduitDispenser.alwaysDispense = true;
            conduitDispenser.elementFilter  = (SimHashes[])null;
            go.AddOrGetDef <OperationalController.Def>();
            AutoMopper.AddVisualizer(go, false);
        }
Exemplo n.º 2
0
 public override void DoPostConfigureUnderConstruction(GameObject go)
 {
     GeneratedBuildings.RegisterLogicPorts(go, AutoMopper.INPUT_PORTS);
     AutoMopper.AddVisualizer(go, false);
 }
Exemplo n.º 3
0
 public override void DoPostConfigurePreview(BuildingDef def, GameObject go)
 {
     GeneratedBuildings.RegisterLogicPorts(go, AutoMopper.INPUT_PORTS);
     AutoMopper.AddVisualizer(go, true);
 }