Exemple #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();
        }
 void UpdateComps()
 {
     ToolsBuilding.ToggleCompGatherSpot(parent, true, SwitchIsOn);
     SetFireOverlay(SwitchIsOn);
 }