Green Rock Engine 0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
GREngine.Core.System.SceneManager Class Referencesealed
Inheritance diagram for GREngine.Core.System.SceneManager:
Inheritance graph
[legend]
Collaboration diagram for GREngine.Core.System.SceneManager:
Collaboration graph
[legend]

Public Member Functions

 SceneManager (Game game)
 
override void Initialize ()
 
override void Update (GameTime gameTime)
 
void QueueSceneAction (Action< GameTime > action)
 
NodeFindNodeWithTag (string tag)
 
HashSet< NodeFindNodesWithTag (string tag)
 
void AddNodeAtPersistent (Node node)
 
void AddNodeAtRoot (Node node)
 
void AddNode (Node parent, Node node)
 If any node behaviours are disabled, they are not initialized.
 
void DestroyNode (Node node)
 
RootNode GetRootNode ()
 
RootNode GetPersistentNode ()
 
void AddBehaviour (Node node, Behaviour behaviour)
 Do not add a behaviour instance that has already been added, it will fuck shit up.
 
Behaviour InitBehaviour (Node node, Behaviour behaviour)
 
void RemoveBehaviour (Behaviour behaviour)
 
void RemoveBehavioursWithTag (Node node, string tag)
 
SceneGetCurrentScene ()
 
void AddScene (Scene scene)
 Registers a scene. Must be used before trying to load said scene.
 
void ChangeScene (string next)
 
void ReloadCurrentScene ()
 
void DebugPrintGraph ()
 Prints a text-version of the scene tree (has indentation for children)
 

Member Function Documentation

◆ AddBehaviour()

void GREngine.Core.System.SceneManager.AddBehaviour ( Node  node,
Behaviour  behaviour 
)
inline

Do not add a behaviour instance that has already been added, it will fuck shit up.

Parameters
node
behaviour
Exceptions
NotImplementedException

Implements GREngine.Core.System.ISceneControllerService.

◆ AddNode()

void GREngine.Core.System.SceneManager.AddNode ( Node  parent,
Node  node 
)
inline

If any node behaviours are disabled, they are not initialized.

Parameters
node
parent

Implements GREngine.Core.System.ISceneControllerService.

◆ AddNodeAtPersistent()

void GREngine.Core.System.SceneManager.AddNodeAtPersistent ( Node  node)
inline

◆ AddNodeAtRoot()

void GREngine.Core.System.SceneManager.AddNodeAtRoot ( Node  node)
inline

◆ AddScene()

void GREngine.Core.System.SceneManager.AddScene ( Scene  scene)
inline

Registers a scene. Must be used before trying to load said scene.

Parameters
scene

Implements GREngine.Core.System.ISceneControllerService.

◆ ChangeScene()

void GREngine.Core.System.SceneManager.ChangeScene ( string  next)
inline

◆ DebugPrintGraph()

void GREngine.Core.System.SceneManager.DebugPrintGraph ( )
inline

Prints a text-version of the scene tree (has indentation for children)

Implements GREngine.Core.System.ISceneControllerService.

◆ DestroyNode()

void GREngine.Core.System.SceneManager.DestroyNode ( Node  node)
inline

◆ FindNodesWithTag()

HashSet< Node > GREngine.Core.System.SceneManager.FindNodesWithTag ( string  tag)
inline

◆ FindNodeWithTag()

Node? GREngine.Core.System.SceneManager.FindNodeWithTag ( string  tag)
inline

◆ GetCurrentScene()

Scene? GREngine.Core.System.SceneManager.GetCurrentScene ( )
inline

◆ GetPersistentNode()

RootNode GREngine.Core.System.SceneManager.GetPersistentNode ( )
inline

◆ GetRootNode()

RootNode GREngine.Core.System.SceneManager.GetRootNode ( )
inline

◆ InitBehaviour()

Behaviour GREngine.Core.System.SceneManager.InitBehaviour ( Node  node,
Behaviour  behaviour 
)
inline

◆ QueueSceneAction()

void GREngine.Core.System.SceneManager.QueueSceneAction ( Action< GameTime >  action)
inline

◆ ReloadCurrentScene()

void GREngine.Core.System.SceneManager.ReloadCurrentScene ( )
inline

◆ RemoveBehaviour()

void GREngine.Core.System.SceneManager.RemoveBehaviour ( Behaviour  behaviour)
inline

◆ RemoveBehavioursWithTag()

void GREngine.Core.System.SceneManager.RemoveBehavioursWithTag ( Node  node,
string  tag 
)
inline

The documentation for this class was generated from the following file: