示例#1
0
 internal void CheckGridPowerState(MyCubeGrid grid, GridMap map)
 {
     if ((!map.Powered && Tick - map.PowerCheckTick > 600 || map.Powered && Tick - map.PowerCheckTick > 1800))
     {
         DirtyPowerGrids.TryAdd(grid, map);
     }
 }
示例#2
0
        internal void UpdateGridPowerState()
        {
            foreach (var pair in DirtyPowerGrids)
            {
                GridHasPower(pair.Key, pair.Value);
            }

            DirtyPowerGrids.Clear();
        }