Generated by DocFX

Class ComposedScene

An inline-composable Scene

Inheritance
System.Object
Scene
ComposedScene
Inherited Members
Scene.LoadContentAsyncStart
Scene.LoadContentAsyncComplete
Scene.InitializeAsyncStart
Scene.InitializeAsyncComplete
Scene.LoadContentComplete
Scene.InitializeComplete
Scene.Paused
Scene.Unpaused
Scene.Suspended
Scene.Unsuspended
Scene.Unloaded
Scene.Stopped
Scene.Resumed
Scene.Compose()
Scene.Compose(Game)
Scene.Services
Scene.SpriteBatch
Scene.InitializedAsync
Scene.ContentLoadedAsync
Scene.Initialized
Scene.ContentLoaded
Scene.ResourceCatalog
Scene.Content
Scene.Game
Scene.State
Scene.SetGame(Game)
Scene.SetInputAction(String, Action<InputActionEventArgs>)
Scene.UnloadScene()
Scene.PauseScene()
Scene.UnpauseScene()
Scene.SuspendScene()
Scene.UnsuspendScene()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Ladybug
Assembly: ladybug.dll
Syntax
public sealed class ComposedScene : Scene

Methods

| Improve this Doc View Source

Draw(GameTime)

Declaration
protected override void Draw(GameTime gameTime)
Parameters
Type Name Description
Microsoft.Xna.Framework.GameTime gameTime
Overrides
Scene.Draw(GameTime)
| Improve this Doc View Source

Initialize()

Declaration
protected override void Initialize()
Overrides
Scene.Initialize()
| Improve this Doc View Source

InitializeAsync()

Declaration
protected override void InitializeAsync()
Overrides
Scene.InitializeAsync()
| Improve this Doc View Source

LoadContent()

Declaration
protected override void LoadContent()
Overrides
Scene.LoadContent()
| Improve this Doc View Source

LoadContentAsync()

Declaration
protected override void LoadContentAsync()
Overrides
Scene.LoadContentAsync()
| Improve this Doc View Source

OnDraw(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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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
| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

Pause()

Declaration
protected override void Pause()
Overrides
Scene.Pause()
| Improve this Doc View Source

Resume()

Declaration
protected override void Resume()
Overrides
Scene.Resume()
| Improve this Doc View Source

Stop()

Declaration
protected override void Stop()
Overrides
Scene.Stop()
| Improve this Doc View Source

Suspend()

Declaration
protected override void Suspend()
Overrides
Scene.Suspend()
| Improve this Doc View Source

Unload()

Declaration
protected override void Unload()
Overrides
Scene.Unload()
| Improve this Doc View Source

Unpause()

Declaration
protected override void Unpause()
Overrides
Scene.Unpause()
| Improve this Doc View Source

Unsuspend()

Declaration
protected override void Unsuspend()
Overrides
Scene.Unsuspend()
| Improve this Doc View Source

Update(GameTime)

Declaration
protected override void Update(GameTime gameTime)
Parameters
Type Name Description
Microsoft.Xna.Framework.GameTime gameTime
Overrides
Scene.Update(GameTime)