GameScene
Namespace: Murder.Core
Assembly: Murder.dll
public class GameScene : Scene, IDisposable
Implements: Scene, IDisposable
⭐ Constructors
public GameScene(Guid guid)
Parameters
guid
Guid
⭐ Properties
_calledStart
protected bool _calledStart;
Returns
bool
Loaded
public bool Loaded { get; }
Returns
bool
RenderContext
public RenderContext RenderContext { get; }
Returns
RenderContext
World
public virtual MonoWorld World { get; }
Returns
MonoWorld
WorldGuid
public Guid WorldGuid { get; }
Returns
Guid
⭐ Methods
ReplaceWorld(MonoWorld, bool)
public bool ReplaceWorld(MonoWorld world, bool disposeWorld)
Replace world and return the previous one, which should be disposed.
Parameters
world
MonoWorld
disposeWorld
bool
Returns
bool
UnloadAsyncImpl()
public virtual Task UnloadAsyncImpl()
Returns
Task
Dispose()
public virtual void Dispose()
Draw()
public virtual void Draw()
DrawGui()
public virtual void DrawGui()
FixedUpdate()
public virtual void FixedUpdate()
Initialize(GraphicsDevice, GameProfile, RenderContextFlags)
public virtual void Initialize(GraphicsDevice graphics, GameProfile settings, RenderContextFlags flags)
Parameters
graphics
GraphicsDevice
settings
GameProfile
flags
RenderContextFlags
LoadContentImpl()
public virtual void LoadContentImpl()
OnBeforeDraw()
public virtual void OnBeforeDraw()
RefreshWindow(Point, GraphicsDevice, GameProfile)
public virtual void RefreshWindow(Point viewportSize, GraphicsDevice graphics, GameProfile settings)
Parameters
viewportSize
Point
graphics
GraphicsDevice
settings
GameProfile
ReloadImpl()
public virtual void ReloadImpl()
ResumeImpl()
public virtual void ResumeImpl()
Start()
public virtual void Start()
SuspendImpl()
public virtual void SuspendImpl()
Update()
public virtual void Update()
AddOnWindowRefresh(Action)
public void AddOnWindowRefresh(Action notification)
Parameters
notification
Action
LoadContent()
public void LoadContent()
Reload()
public void Reload()
ResetWindowRefreshEvents()
public void ResetWindowRefreshEvents()
Resume()
public void Resume()
Suspend()
public void Suspend()
Unload()
public void Unload()
⚡