示例#1
0
        /*
         * void MySetCompHeatPusher()
         * {
         *  ToolsBuilding.SetCompHeatPusher(parent, myMap, myDef);
         * }
         */

        void ChangeComps()
        {
            //Tools.Warn("Trying to change comp: "+Tools.OkStr(SwitchIsOn), true);

            if (SwitchIsOn)
            {
                //Glower
                MySetCompGlower();
            }
            else
            {
                //Glower
                MyUnsetCompGlower();
            }

            //heat
            //MySetCompHeatPusher();
            // gather
            ToolsBuilding.ToggleCompGatherSpot(parent, true, SwitchIsOn);
            //fire overlay
            SetFireOverlay(SwitchIsOn);
            //ToggleFireOverlay();
        }
示例#2
0
 void MyUnsetCompHeatPusher()
 {
     ToolsBuilding.UnsetCompHeatPusher(parent, myMap);
 }
示例#3
0
 void SetFireOverlay(bool value = true)
 {
     ToolsBuilding.SetFireOverlay(parent, myMap, value);
 }
示例#4
0
 void ToggleFireOverlay()
 {
     ToolsBuilding.ToggleFireOverlay(parent, myMap);
 }
示例#5
0
 void MyUnsetCompGlower()
 {
     ToolsBuilding.SetCompGlower(parent, myMap, false);
     //ToolsBuilding.SetFlickableGlower(parent, myMap, false);
 }
示例#6
0
 void MySetCompGlower()
 {
     ToolsBuilding.SetCompGlower(parent, myMap, true);
     //ToolsBuilding.SetFlickableGlower(parent, myMap, true);
 }
 void UpdateComps()
 {
     ToolsBuilding.ToggleCompGatherSpot(parent, true, SwitchIsOn);
     SetFireOverlay(SwitchIsOn);
 }