Table of Contents

Delegate DrawDelegate

Namespace
TinyLife.World
Assembly
Tiny Life.dll

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 DrawDelegate(GameTime time, object batch, Vector2 drawPos, Color? overrideColor)

Parameters

time GameTime

The game's current time

batch object

The sprite batch to use for drawing, which is either a Microsoft.Xna.Framework.Graphics.SpriteBatch or MLEM.Graphics.StaticSpriteBatch.

drawPos Vector2

The position that the object is drawn at

overrideColor Color?

An override color to draw the object with, or null to draw it with the default color

Extension Methods