Terraria.ModLoader.ModTile.NearbyEffects C# (CSharp) Method

NearbyEffects() public method

public NearbyEffects ( int i, int j, bool closer ) : void
i int
j int
closer bool
return void
		public virtual void NearbyEffects(int i, int j, bool closer)
		{
		}

Usage Example

Ejemplo n.º 1
0
        //in Terraria.Lighting.PreRenderPhase add local closer variable and after setting music box
        //  call TileLoader.NearbyEffects(n, num17, type, closer);
        public static void NearbyEffects(int i, int j, int type, bool closer)
        {
            ModTile modTile = GetTile(type);

            if (modTile != null)
            {
                modTile.NearbyEffects(i, j, closer);
            }
            foreach (GlobalTile globalTile in globalTiles)
            {
                globalTile.NearbyEffects(i, j, type, closer);
            }
        }