Table of Contents

Interface IUpdateable

Namespace
Microsoft.Xna.Framework
Assembly
MonoGame.Framework.dll

Interface for updateable entities.

public interface IUpdateable

Properties

Enabled

Indicates if Update(GameTime) will be called.

bool Enabled { get; }

Property Value

bool

UpdateOrder

The update order of this GameComponent relative to other GameComponent instances.

int UpdateOrder { get; }

Property Value

int

Methods

Update(GameTime)

Called when this IUpdateable should update itself.

void Update(GameTime gameTime)

Parameters

gameTime GameTime

The elapsed time since the last call to Update(GameTime).

Events

EnabledChanged

Raised when Enabled changed.

event EventHandler<EventArgs> EnabledChanged

Event Type

EventHandler<EventArgs>

UpdateOrderChanged

Raised when UpdateOrder changed.

event EventHandler<EventArgs> UpdateOrderChanged

Event Type

EventHandler<EventArgs>