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 {}

Constructors

this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

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.

getComponentEvents
ComponentEvents getComponentEvents(Instance instance, T component)
Undocumented in source. Be warned that the author may not have intended to support it.
getInstanceEvents
InstanceEvents getInstanceEvents(T instance)

A function to receive events that were described inside the object's implementation.

getSceneEvents
SceneEvents getSceneEvents(T scene)
Undocumented in source. Be warned that the author may not have intended to support it.
globalTrigger
void globalTrigger(string name)

Challenge the trigger in all scenes and copies that will be there. It is the call that goes from everyone, and not the current scene

gotoin
void gotoin(string name, T args)

Goes to the scene by its string name.

gotoin
void gotoin(T args)

Goes to the scene by its class.

gotoin
void gotoin(Scene scene, T args)

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.
lazyAdd
void lazyAdd()

Function for lazy loading scenes. In the chalon only specifies the scene. At the same time, it will be listed in the scene list, however, its resources will not be loaded until the control goes to it. After the context change, it does not need to be re-shipped.

lazyGroupAdd
void lazyGroupAdd()
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

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.

isThereGoto
bool isThereGoto [@property getter]

A state indicating whether an instance transition is in progress. Needed to synchronize the stream.

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

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

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.

countStartThreads
size_t countStartThreads;
Undocumented in source.
functionPerThread
size_t functionPerThread;
Undocumented in source.
maxThreads
size_t maxThreads;
Undocumented in source.
threadAPI
APIResponse[][size_t] threadAPI;

An array of pre-known commands to execute without chasing data for each thread.

Meta