SceneLoader
Namespace: Murder.Core
Assembly: Murder.dll
public class SceneLoader
⭐ Constructors
public SceneLoader(GraphicsDeviceManager graphics, GameProfile settings, Scene scene, bool isDiagnosticEnabled)
Parameters
graphics GraphicsDeviceManager
settings GameProfile
scene Scene
isDiagnosticEnabled bool
⭐ Properties
_graphics
protected readonly GraphicsDeviceManager _graphics;
Returns
GraphicsDeviceManager
_settings
protected readonly GameProfile _settings;
Returns
GameProfile
ActiveScene
public Scene ActiveScene { get; }
Returns
Scene
IsDiagnosticEnabled
protected readonly bool IsDiagnosticEnabled;
Whether it will load a scene and a load context that has advanced diagnostic features enabled (which also implies in more processing overhead).
Returns
bool
⭐ Methods
ReplaceWorldOnCurrentScene(MonoWorld, bool)
public bool ReplaceWorldOnCurrentScene(MonoWorld world, bool disposeWorld)
Parameters
world MonoWorld
disposeWorld bool
Returns
bool
Initialize()
public void Initialize()
Initialize current active scene.
LoadContent()
public void LoadContent()
Load the content of the current active scene.
SwitchScene()
public void SwitchScene()
Switch to a scene of type
SwitchScene(Scene)
public void SwitchScene(Scene scene)
Switch to
Parameters
scene Scene
SwitchScene(Guid)
public void SwitchScene(Guid worldGuid)
Parameters
worldGuid Guid
⚡