SceneManager

Class describing scene manager.

Performs the functions of switching the context of the scenes, memorize the list for subsequent circulation, the ability to execute elementary events, give an instance access to the current scene or scene, which is involved in the event.

To transfer the context, use the gotoin. Learn the current scene - current. previous - previous Contact precisely to the global object - scenemanager.

final
class SceneManager {}

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

FEATrigger
alias FEATrigger = void delegate(string) @(safe)
Undocumented in source.
FECInit
alias FECInit = void delegate(Instance) @(safe)
Undocumented in source.
FECollision
alias FECollision = void delegate(Instance) @(safe)
Undocumented in source.
FEDestroy
alias FEDestroy = void delegate(Instance) @(safe)
Undocumented in source.
FEDraw
alias FEDraw = void delegate(IRenderer) @(safe)
Undocumented in source.
FEEntry
alias FEEntry = void delegate() @(safe)
Undocumented in source.
FEEventHandle
alias FEEventHandle = void delegate(EventHandler) @(safe)
Undocumented in source.
FEGameExit
alias FEGameExit = void delegate() @(safe)
Undocumented in source.
FEGameRestart
alias FEGameRestart = void delegate() @(safe)
Undocumented in source.
FEGameStart
alias FEGameStart = void delegate() @(safe)
Undocumented in source.
FEInit
alias FEInit = void delegate() @(safe)
Undocumented in source.
FELeave
alias FELeave = void delegate() @(safe)
Undocumented in source.
FEOnError
alias FEOnError = void delegate() @(safe)
Undocumented in source.
FERestart
alias FERestart = void delegate() @(safe)
Undocumented in source.
FEStep
alias FEStep = void delegate() @(safe)
Undocumented in source.
FETrigger
alias FETrigger = void delegate() @(safe)
Undocumented in source.

Functions

add
void add(T scene)

Adds a scene to the list.

add
void add()

Creates and adds a scene to the list.

callDraw
void callDraw(IRenderer render)

Calling an event to render scenes and instances of the current context.

callEvent
void callEvent(EventHandler event)

System event event for scenes and instances of the current context.

callGameExit
void callGameExit()

Game completion call events (successful). The unsuccessful event should raise the onError event.

callGameStart
void callGameStart()

Calling the game launch event.

callOnError
void callOnError()

Triggering an emergency event.

callStep
void callStep(size_t thread, IRenderer rend)

Calling a game step. Should always be called during a loop step in an exception when the thread is suspended.

close
void close(int code)

Exits the game with a successful error code.

componentExplore
void componentExplore(Instance instance, T component)
Undocumented in source. Be warned that the author may not have intended to support it.
destroyEventCall
void destroyEventCall(T instance)

Raise the event of destruction of the instance. (@FunEvent!Destroy)

destroyEventSceneCall
void destroyEventSceneCall(T scene, R instance)

Reise the event of destruction in current scene. (@FunEvent!Destroy)

free
void free()

Free memory.

gameRestart
void gameRestart()

Restarting the game.

gotoin
void gotoin(string name)

Goes to the scene by its string name.

gotoin
void gotoin()

Goes to the scene by its class.

gotoin
void gotoin(Scene scene)

Moves to the scene at the pointer.

hasScene
bool hasScene(Scene scene)

Checks if the scene is in the scene list.

hasScene
bool hasScene()

Checks for the existence of a scene by its original class.

hasScene
bool hasScene(string name)

Checks if there is a scene with the specified name.

inbegin
void inbegin()

Goes to the first scene added.

initThread
void initThread(uint count)

Creates the specified count of anonymous threads.

instanceExplore
void instanceExplore(Scene scene, T instance)
Undocumented in source. Be warned that the author may not have intended to support it.
pauseThread
void pauseThread(uint value)

Pauses said thread.

remove
void remove(T scene)
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove()
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
removeHandle
void removeHandle(Scene scene, Instance instance)
Undocumented in source. Be warned that the author may not have intended to support it.
resumeThread
void resumeThread(uint value)

Resumes said thread.

stopThread
void stopThread(uint value)
Undocumented in source. Be warned that the author may not have intended to support it.
trigger
void trigger(string name)

Calls a trigger for the current scene, as well as its instances.

Properties

colliders
SRCollider[][Instance] colliders [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
collisionFunctions
FECollision[][Instance] collisionFunctions [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
context
Scene context [@property getter]

The reference to the current stage, as if it is under initialization, whether it is during a restart or without them.

current
Scene current [@property getter]

Link to the current scene.

initable
Scene initable [@property getter]

The reference to the scene, which is undergoing context change processing.

leaveComponents
FELeave[][Component] leaveComponents [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
ofbegin
Scene ofbegin [@property getter]

The first added scene.

ofend
Scene ofend [@property getter]

The last added scene.

previous
Scene previous [@property getter]

The previous scene that was active.

restarted
Scene restarted [@property getter]

A scene that restarts at the moment.

scenes
Scene[string] scenes [@property getter]

List scenes

threadSteps
FEStep[][size_t][Instance] threadSteps [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

SRCollider
struct SRCollider
Undocumented in source.
SRTrigger
struct SRTrigger
Undocumented in source.

Templates

attributeIn
template attributeIn(T, AttribType, string member)
Undocumented in source.
hasAttrib
template hasAttrib(T, AttribType, string member)
Undocumented in source.
hasMatch
template hasMatch(alias attrib, alias AttribType)
Undocumented in source.

Variables

CDrawFunctions
FEDraw[][Component] CDrawFunctions;
Undocumented in source.
CEventHandleFunctions
FEEventHandle[][Component] CEventHandleFunctions;
Undocumented in source.
CLeaveFunctions
FELeave[][Component] CLeaveFunctions;
Undocumented in source.
COnErrorFunctions
FEOnError[][Component] COnErrorFunctions;
Undocumented in source.
COnTriggerFunctions
SRTrigger[][Component] COnTriggerFunctions;
Undocumented in source.
CStepFunctions
FEStep[][Component] CStepFunctions;
Undocumented in source.
CStepThreadFunctions
FEStep[][size_t][Component] CStepThreadFunctions;
Undocumented in source.
DrawFunctions
FEDraw[][Scene] DrawFunctions;
Undocumented in source.
EntryFunctions
FEEntry[][Scene] EntryFunctions;
Undocumented in source.
EventHandleFunctions
FEEventHandle[][Scene] EventHandleFunctions;
Undocumented in source.
GameExitFunctions
FEGameExit[][Scene] GameExitFunctions;
Undocumented in source.
GameRestartFunctions
FEGameRestart[][Scene] GameRestartFunctions;
Undocumented in source.
GameStartFunctions
FEGameStart[][Scene] GameStartFunctions;
Undocumented in source.
IColliderStructs
SRCollider[][Instance] IColliderStructs;
Undocumented in source.
ICollisionFunctions
FECollision[][Instance] ICollisionFunctions;
Undocumented in source.
IDrawFunctions
FEDraw[][Instance] IDrawFunctions;
Undocumented in source.
IEntryFunctions
FEEntry[][Instance] IEntryFunctions;
Undocumented in source.
IEventHandleFunctions
FEEventHandle[][Instance] IEventHandleFunctions;
Undocumented in source.
IGameExitFunctions
FEGameExit[][Instance] IGameExitFunctions;
Undocumented in source.
IGameRestartFunctions
FEGameRestart[][Instance] IGameRestartFunctions;
Undocumented in source.
IGameStartFunctions
FEGameStart[][Instance] IGameStartFunctions;
Undocumented in source.
IInitFunctions
FEInit[][Instance] IInitFunctions;
Undocumented in source.
ILeaveFunctions
FELeave[][Instance] ILeaveFunctions;
Undocumented in source.
IOnAnyTriggerFunctions
FEATrigger[][Instance] IOnAnyTriggerFunctions;
Undocumented in source.
IOnDestroyFunctions
FEDestroy[][Instance] IOnDestroyFunctions;
Undocumented in source.
IOnErrorFunctions
FEOnError[][Instance] IOnErrorFunctions;
Undocumented in source.
IOnTriggerFunctions
SRTrigger[][Instance] IOnTriggerFunctions;
Undocumented in source.
IRestartFunctions
FERestart[][Instance] IRestartFunctions;
Undocumented in source.
IStepFunctions
FEStep[][Instance] IStepFunctions;
Undocumented in source.
IStepThreadFunctions
FEStep[][size_t][Instance] IStepThreadFunctions;
Undocumented in source.
InitFunctions
FEInit[][Scene] InitFunctions;
Undocumented in source.
LeaveFunctions
FELeave[][Scene] LeaveFunctions;
Undocumented in source.
OnAnyCollisionFunctions
FECollision[][Scene] OnAnyCollisionFunctions;
Undocumented in source.
OnAnyTriggerFunctions
FEATrigger[][Scene] OnAnyTriggerFunctions;
Undocumented in source.
OnDestroyFunctions
FEDestroy[][Scene] OnDestroyFunctions;
Undocumented in source.
OnErrorFunctions
FEOnError[][Scene] OnErrorFunctions;
Undocumented in source.
OnTriggerFunctions
SRTrigger[][Scene] OnTriggerFunctions;
Undocumented in source.
RestartFunctions
FERestart[][Scene] RestartFunctions;
Undocumented in source.
StepFunctions
FEStep[][Scene] StepFunctions;
Undocumented in source.
StepThreadFunctions
FEStep[][size_t][Scene] StepThreadFunctions;
Undocumented in source.
api
APIResponse[] api;

Array of requests. At each stroke of the cycle, it is checked, processed and cleaned. If an error occurs during the request, they are added to apiError.

apiError
uint[uint] apiError;

An array of request errors associated with the request type.

Meta