public static Graphic GetLayeredOverlayGraphic( CompAir compAir ) { if ( compAir.IsLayerOf( NetLayer.Lower ) ) return LinkedOverlayGraphic[(int) NetLayer.Lower]; if ( compAir.IsLayerOf( NetLayer.Upper ) ) return LinkedOverlayGraphic[(int) NetLayer.Upper]; throw new ArgumentOutOfRangeException(nameof( compAir ), "LT-RH: compAir has no valid net layer!"); }
public static Graphic GetLayeredOverlayGraphic(CompAir compAir) { if (compAir.IsLayerOf(NetLayer.Lower)) { return(LinkedOverlayGraphic[(int)NetLayer.Lower]); } if (compAir.IsLayerOf(NetLayer.Upper)) { return(LinkedOverlayGraphic[(int)NetLayer.Upper]); } throw new ArgumentOutOfRangeException(nameof(compAir), "LT-RH: compAir has no valid net layer!"); }
public static void NotifyCompDespawn(CompAir compAir) { if (!isReady) { return; } if (compAir.IsLayerOf(NetLayer.Lower)) { oldComps[(int)NetLayer.Lower].Add(compAir); } if (compAir.IsLayerOf(NetLayer.Upper)) { oldComps[(int)NetLayer.Upper].Add(compAir); } #if DEBUG Log.Message("RedistHeat: Despawning " + compAir.parent); #endif AddToGraphicUpdateList(compAir); }
public static void NotifyCompSpawn(CompAir compAir) { if (!isReady) { return; } if (compAir.IsLayerOf(NetLayer.Lower)) { newComps[(int)NetLayer.Lower].Add(compAir); } else if (compAir.IsLayerOf(NetLayer.Upper)) { newComps[(int)NetLayer.Upper].Add(compAir); } #if DEBUG Log.Message("LT-RH: Spawning " + compAir.parent); #endif AddToGraphicUpdateList(compAir); }
public static void NotifyCompSpawn( CompAir compAir ) { if (!isReady) { return; } if (compAir.IsLayerOf( NetLayer.Lower )) { newComps[(int) NetLayer.Lower].Add( compAir ); } else if (compAir.IsLayerOf( NetLayer.Upper )) { newComps[(int) NetLayer.Upper].Add( compAir ); } #if DEBUG Log.Message("RedistHeat: Spawning " + compAir.parent ); #endif AddToGraphicUpdateList( compAir ); }
public static void NotifyCompDespawn( CompAir compAir ) { if ( !isReady ) return; if ( compAir.IsLayerOf( NetLayer.Lower ) ) { oldComps[(int) NetLayer.Lower].Add( compAir ); } if ( compAir.IsLayerOf( NetLayer.Upper ) ) { oldComps[(int) NetLayer.Upper].Add( compAir ); } #if DEBUG Log.Message("LT-RH: Despawning " + compAir.parent); #endif AddToGraphicUpdateList( compAir ); }