SetSpriteEffects() public method

public SetSpriteEffects ( int i, int j, SpriteEffects &spriteEffects ) : void
i int
j int
spriteEffects SpriteEffects
return void
示例#1
0
        //in Terraria.Main.DrawTiles after if statement setting effects call
        //  TileLoader.SetSpriteEffects(j, i, type, ref effects);
        public static void SetSpriteEffects(int i, int j, int type, ref SpriteEffects spriteEffects)
        {
            ModTile modTile = GetTile(type);

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