Interface IUpdateable
Interface for updateable entities.
Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework.dll
Syntax
public interface IUpdateable
Properties
Enabled
Indicates if Update(GameTime) will be called.
Declaration
bool Enabled { get; }
Property Value
Type | Description |
---|---|
Boolean |
UpdateOrder
The update order of this GameComponent relative to other GameComponent instances.
Declaration
int UpdateOrder { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
Update(GameTime)
Called when this IUpdateable should update itself.
Declaration
void Update(GameTime gameTime)
Parameters
Type | Name | Description |
---|---|---|
GameTime | gameTime | The elapsed time since the last call to Update(GameTime). |
Events
EnabledChanged
Raised when Enabled changed.
Declaration
event EventHandler<EventArgs> EnabledChanged
Event Type
Type | Description |
---|---|
EventHandler<EventArgs> |
UpdateOrderChanged
Raised when UpdateOrder changed.
Declaration
event EventHandler<EventArgs> UpdateOrderChanged
Event Type
Type | Description |
---|---|
EventHandler<EventArgs> |