Пример #1
0
        public override void DoPostConfigureComplete(GameObject go)
        {
            GeneratedBuildings.RegisterLogicPorts(go, LaserMinerConfig.INPUT_PORTS);
            go.AddOrGet <LogicOperationalController>();
            AutoMiner autoMiner = go.AddOrGet <AutoMiner>();

            autoMiner.x             = X;
            autoMiner.y             = Y;
            autoMiner.width         = WIDTH;
            autoMiner.height        = HEIGHT;
            autoMiner.vision_offset = new CellOffset(0, 1);
            LaserMinerConfig.AddVisualizer(go, false);
        }
Пример #2
0
 public override void DoPostConfigureUnderConstruction(GameObject go)
 {
     GeneratedBuildings.RegisterLogicPorts(go, LaserMinerConfig.INPUT_PORTS);
     LaserMinerConfig.AddVisualizer(go, false);
 }
Пример #3
0
 public override void DoPostConfigurePreview(BuildingDef def, GameObject go)
 {
     GeneratedBuildings.RegisterLogicPorts(go, LaserMinerConfig.INPUT_PORTS);
     LaserMinerConfig.AddVisualizer(go, true);
 }