TileLoader
This serves as the central class from which tile-related functions are supported and carried out.
Methods
- GetTile(System.Int32)()
- Gets the ModTile instance with the given type. If no ModTile with the given type exists, returns null.
- SetAnimationFrame(System.Int32,System.Int32,System.Int32,System.Int32@,System.Int32@)()
- Sets the animation frame. Sets frameYOffset = modTile.animationFrameHeight * Main.tileFrame[type]; and then calls ModTile.AnimateIndividualTile
- SpecialDraw(System.Int32,System.Int32,System.Int32,Microsoft.Xna.Framework.Graphics.SpriteBatch)()
- Special Draw calls ModTile and GlobalTile SpecialDraw methods. Special Draw is called from DrawTiles after the draw loop, allowing for basically another layer above tiles. Main.specX and Main.specY are used to specify tiles to call SpecialDraw on. Use DrawEffects hook to queue for SpecialDraw.