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); }
public override void DoPostConfigureUnderConstruction(GameObject go) { GeneratedBuildings.RegisterLogicPorts(go, LaserMinerConfig.INPUT_PORTS); LaserMinerConfig.AddVisualizer(go, false); }
public override void DoPostConfigurePreview(BuildingDef def, GameObject go) { GeneratedBuildings.RegisterLogicPorts(go, LaserMinerConfig.INPUT_PORTS); LaserMinerConfig.AddVisualizer(go, true); }