FuncWorks.XNA.XTiled.Map.DrawTileObject C# (CSharp) Method

DrawTileObject() public method

Method to draw a MapObject that represents a tile object
public DrawTileObject ( SpriteBatch spriteBatch, Int32 objectLayerID, Int32 objectID, Rectangle region, System.Single layerDepth, Color color ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch XNA SpriteBatch instance; SpriteBatch.Begin() must be called before using this method
objectLayerID System.Int32 Index of the layer to draw in the Map.ObjectLayers collection
objectID System.Int32 Index of the object to draw in the Map.ObjectLayers.MapObjects collection
region Microsoft.Xna.Framework.Rectangle Region of the map in pixels to draw
layerDepth System.Single LayerDepth value to pass to SpriteBatch
color Color Color of the object
return void
        public void DrawTileObject(SpriteBatch spriteBatch, Int32 objectLayerID, Int32 objectID, Rectangle region, Single layerDepth, Color color)
        {
            this.DrawTileObject(spriteBatch, objectLayerID, objectID, ref region, layerDepth, ref color);
        }

Same methods

Map::DrawTileObject ( SpriteBatch spriteBatch, int objectLayerID, int objectID, Rectangle &region, float layerDepth, Color &color ) : void