Delegate MapObject.DrawDelegate
A delegate used by events that are invoked when something is drawn. This event has no EventPhase attached to it, since drawing is done in a sorted fashion anyway.
public delegate void MapObject.DrawDelegate(GameTime time, object batch, Vector2 drawPos, Color? overrideColor)
Parameters
timeGameTimeThe game's current time
batchobjectThe sprite batch to use for drawing, which is either a Microsoft.Xna.Framework.Graphics.SpriteBatch or MLEM.Graphics.StaticSpriteBatch.
drawPosVector2The position that the object is drawn at
overrideColorColor?An override color to draw the object with, or null to draw it with the default color
- Extension Methods