IUpdateable Interface
Namespace: Stride.GamesAssembly: Stride.Games.dll
An interface that is called by Update(GameTime).
public interface IUpdateable
Name | Description | |
---|---|---|
Properties | ||
Enabled | Gets a value indicating whether the game component's Update method should be called by Update(GameTime). |
|
UpdateOrder | Gets the update order relative to other game components. Lower values are updated first. |
|
Methods | ||
Update(GameTime) | This method is called when this game component is updated. |
|
Events | ||
EnabledChanged | Occurs when the Enabled property changes. |
|
UpdateOrderChanged | Occurs when the UpdateOrder property changes. |
Properties
Enabled
Gets a value indicating whether the game component's Update method should be called by Update(GameTime).
bool Enabled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
UpdateOrder
Gets the update order relative to other game components. Lower values are updated first.
int UpdateOrder { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The update order. |
Methods
Update(GameTime)
This method is called when this game component is updated.
void Update(GameTime gameTime)
Parameters
Type | Name | Description |
---|---|---|
GameTime | gameTime | The current timing. |
Events
EnabledChanged
Occurs when the Enabled property changes.
event EventHandler<EventArgs> EnabledChanged
Event Type
Type | Description |
---|---|
System.EventHandler<System.EventArgs> |
UpdateOrderChanged
Occurs when the UpdateOrder property changes.
event EventHandler<EventArgs> UpdateOrderChanged
Event Type
Type | Description |
---|---|
System.EventHandler<System.EventArgs> |