Class ComposedScene
An inline-composable Scene
Inherited Members
Namespace: Ladybug
Assembly: ladybug.dll
Syntax
public sealed class ComposedScene : Scene
Methods
| Improve this Doc View SourceDraw(GameTime)
Declaration
protected override void Draw(GameTime gameTime)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Xna.Framework.GameTime | gameTime |
Overrides
| Improve this Doc View SourceInitialize()
Declaration
protected override void Initialize()
Overrides
| Improve this Doc View SourceInitializeAsync()
Declaration
protected override void InitializeAsync()
Overrides
| Improve this Doc View SourceLoadContent()
Declaration
protected override void LoadContent()
Overrides
| Improve this Doc View SourceLoadContentAsync()
Declaration
protected override void LoadContentAsync()
Overrides
| Improve this Doc View SourceOnDraw(Action<GameTime>)
Sets the action that is run every frame when the Scene Draws to the screen
Declaration
public ComposedScene OnDraw(Action<GameTime> action)
Parameters
Type | Name | Description |
---|---|---|
System.Action<Microsoft.Xna.Framework.GameTime> | action | Action run upon drawing the Scene |
Returns
Type | Description |
---|---|
ComposedScene | Scene |
OnInitialize(Action)
Sets the action that is run when the Scene is initialized
Declaration
public ComposedScene OnInitialize(Action action)
Parameters
Type | Name | Description |
---|---|---|
System.Action | action | Action run upon initializing the Scene |
Returns
Type | Description |
---|---|
ComposedScene | Scene |
OnInitializeAsync(Action)
Sets the task that is run when the Scene is initialized asynchronously
Declaration
public ComposedScene OnInitializeAsync(Action action)
Parameters
Type | Name | Description |
---|---|---|
System.Action | action | Asycronous action run upon initializing the Scene |
Returns
Type | Description |
---|---|
ComposedScene | Scene |
OnInputAction(String, Action<InputActionEventArgs>)
Sets the action that is run upon the given input action
Declaration
public ComposedScene OnInputAction(string name, Action<InputActionEventArgs> action)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.Action<InputActionEventArgs> | action |
Returns
Type | Description |
---|---|
ComposedScene |
OnLoadContent(Action)
Sets the action that is run when the Scene's content is loaded.
Declaration
public ComposedScene OnLoadContent(Action action)
Parameters
Type | Name | Description |
---|---|---|
System.Action | action | Action run upon loading the Scene's content |
Returns
Type | Description |
---|---|
ComposedScene | Scene |
OnLoadContentAsync(Action)
Sets the task that is run asynchronously when the Scene's content is loaded
Declaration
public ComposedScene OnLoadContentAsync(Action action)
Parameters
Type | Name | Description |
---|---|---|
System.Action | action | Asynchronous action run upon loading the Scene's content |
Returns
Type | Description |
---|---|
ComposedScene | Scene |
OnPause(Action)
Sets the action that is run when the Scene is paused
Declaration
public ComposedScene OnPause(Action action)
Parameters
Type | Name | Description |
---|---|---|
System.Action | action | Action run upon pausing the Scene |
Returns
Type | Description |
---|---|
ComposedScene | Scene |
OnResume(Action)
Sets the action that is run when the Scene is unpaused or unsuspended
Declaration
public ComposedScene OnResume(Action action)
Parameters
Type | Name | Description |
---|---|---|
System.Action | action |
Returns
Type | Description |
---|---|
ComposedScene | Scene |
OnStop(Action)
Sets the action that run when the Scene is paused or suspended
Declaration
public ComposedScene OnStop(Action action)
Parameters
Type | Name | Description |
---|---|---|
System.Action | action | Action run upon pausing or suspending the Scene |
Returns
Type | Description |
---|---|
ComposedScene | Scene |
OnSuspend(Action)
Sets the action that is run when the scene is suspended
Declaration
public ComposedScene OnSuspend(Action action)
Parameters
Type | Name | Description |
---|---|---|
System.Action | action | Action run upon suspending the Scene |
Returns
Type | Description |
---|---|
ComposedScene | Scene |
OnUnload(Action)
Sets the action that is run when the Scene is unloaded
Declaration
public ComposedScene OnUnload(Action action)
Parameters
Type | Name | Description |
---|---|---|
System.Action | action | Action run upon unloading the Scene |
Returns
Type | Description |
---|---|
ComposedScene | Scene |
OnUnpause(Action)
Sets the action that is run when the Scene is unpaused
Declaration
public ComposedScene OnUnpause(Action action)
Parameters
Type | Name | Description |
---|---|---|
System.Action | action | Action run upon unpausing the Scene |
Returns
Type | Description |
---|---|
ComposedScene | Scene |
OnUnsuspend(Action)
Sets the action that is run when the Scene is unsuspended
Declaration
public ComposedScene OnUnsuspend(Action action)
Parameters
Type | Name | Description |
---|---|---|
System.Action | action | Action run upon unsuspending the Scene |
Returns
Type | Description |
---|---|
ComposedScene | Scene |
OnUpdate(Action<GameTime>)
Sets the action that is run every frame when the Scene is updated
Declaration
public ComposedScene OnUpdate(Action<GameTime> action)
Parameters
Type | Name | Description |
---|---|---|
System.Action<Microsoft.Xna.Framework.GameTime> | action | Action run upon updating the Scene |
Returns
Type | Description |
---|---|
ComposedScene | Scene |
Pause()
Declaration
protected override void Pause()
Overrides
| Improve this Doc View SourceResume()
Declaration
protected override void Resume()
Overrides
| Improve this Doc View SourceStop()
Declaration
protected override void Stop()
Overrides
| Improve this Doc View SourceSuspend()
Declaration
protected override void Suspend()
Overrides
| Improve this Doc View SourceUnload()
Declaration
protected override void Unload()
Overrides
| Improve this Doc View SourceUnpause()
Declaration
protected override void Unpause()
Overrides
| Improve this Doc View SourceUnsuspend()
Declaration
protected override void Unsuspend()
Overrides
| Improve this Doc View SourceUpdate(GameTime)
Declaration
protected override void Update(GameTime gameTime)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Xna.Framework.GameTime | gameTime |