Beispiel #1
0
        /// <summary>
        /// Register a Climate Control Device
        /// </summary>
        /// <param name="device">Climate Control Component</param>
        public void RegisterTempControl(CompAirFlowTempControl device)
        {
            if (!CachedTempControls.Contains(device))
            {
                CachedTempControls.Add(device);
                CachedTempControls.Shuffle();
            }

            DirtyPipeGrid();
        }
Beispiel #2
0
        /// <summary>
        /// Deregister a Climate Control Object from the Manager
        /// </summary>
        /// <param name="device">Climate Control Component</param>
        public void DeregisterTempControl(CompAirFlowTempControl device)
        {
            if (CachedTempControls.Contains(device))
            {
                CachedTempControls.Remove(device);
                CachedTempControls.Shuffle();
            }

            DirtyPipeGrid();
        }
        /// <summary>
        /// Register a Climate Control Device
        /// </summary>
        /// <param name="device">Climate Control Component</param>
        public void RegisterTempControl(CompAirFlowTempControl device)
        {
            if (!CachedTempControls.Contains(device))
            {
                CachedTempControls.Add(device);
                CachedTempControls.Shuffle();  // ! Why Shuffle?  --Brain
            }

            // Useless function call --Brain
            // DirtyPipeGrid();
            IsDirty = true;
        }
 /// <summary>
 /// Building spawned on the map
 /// </summary>
 /// <param name="map">RimWorld Map</param>
 /// <param name="respawningAfterLoad">Unused flag</param>
 public override void SpawnSetup(Map map, bool respawningAfterLoad)
 {
     CompTempControl        = GetComp <CompTempControl>();
     CompAirFlowTempControl = GetComp <CompAirFlowTempControl>();
     base.SpawnSetup(map, respawningAfterLoad);
 }