private void OnCopySettings(object data)
        {
            GameObject gameObject = (GameObject)data;
            SolidConduitThresholdSensor component = gameObject.GetComponent <SolidConduitThresholdSensor>();

            if (component != null)
            {
                this.Threshold = component.Threshold;
                this.ActivateAboveThreshold = component.ActivateAboveThreshold;
            }
        }
Exemplo n.º 2
0
        public static void Setup()
        {
            LocString NAME   = "Conveyor Rail Germs Sensor";
            LocString DESC   = "";
            LocString EFFECT = SolidConduitThresholdSensor.MakeEffect("germs");

            AddBuilding.AddStrings(ID, NAME, DESC, EFFECT);

            AddBuilding.AddBuildingToPlanScreen("Conveyance", ID);
            AddBuilding.IntoTechTree("MedicineIII", ID);
        }
Exemplo n.º 3
0
        public static void Setup()
        {
            LocString NAME   = "Conveyor Rail Temperature Sensor";
            LocString DESC   = "";
            LocString EFFECT = SolidConduitThresholdSensor.MakeEffect("temperature");

            AddBuilding.AddStrings(ID, NAME, DESC, EFFECT);

            AddBuilding.AddBuildingToPlanScreen("Conveyance", ID);
            AddBuilding.IntoTechTree("SolidTransport", ID);
        }
        public static void Setup()
        {
            LocString NAME   = "Conveyor Rail Mass Sensor";
            LocString DESC   = "Usage tips:\nAbove 0: detects if rail contains anything.\nAbove 20000: detects full rails.";
            LocString EFFECT = SolidConduitThresholdSensor.MakeEffect("mass");

            AddBuilding.AddStrings(ID, NAME, DESC, EFFECT);

            AddBuilding.AddBuildingToPlanScreen("Conveyance", ID);
            AddBuilding.IntoTechTree("SolidTransport", ID);
        }
Exemplo n.º 5
0
        public static void Setup()
        {
            LocString NAME   = "Conveyor Rail Flow Sensor";
            LocString DESC   = "Usage tips:\nAt 0: detects if rail is stalled.\nAbove 0: detects active flow in rails.";
            LocString EFFECT = SolidConduitThresholdSensor.MakeEffect("flow");

            AddBuilding.AddStrings(ID, NAME, DESC, EFFECT);

            AddBuilding.AddBuildingToPlanScreen("Conveyance", ID);
            AddBuilding.IntoTechTree("SolidTransport", ID);
        }