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

Public Member Functions

Matrix GetLocalTransform ()
 
void SetLocalTransform (Matrix matrix)
 
Matrix GetGlobalTransform ()
 
Vector2 GetLocalPosition2D ()
 
void SetLocalPosition (float x, float y)
 
void SetLocalPosition (Vector3 localPosition)
 
void SetLocalPosition (Vector2 localPosition)
 
Vector3 GetLocalPosition ()
 
Vector3 GetGlobalPosition ()
 
Vector2 GetGlobalPosition2D ()
 
NodeGetParent ()
 
IEnumerable< NodeGetChildren ()
 
IEnumerable< BehaviourGetAllBehaviours ()
 
BehaviourGetBehaviour< T > ()
 This will return the FIRST component of type T.
 
IEnumerable< BehaviourGetAllBehaviours< T > ()
 This will return ALL components of type T.
 
override void SetEnabled (bool state)
 
- Public Member Functions inherited from GREngine.Core.System.AbstractGameObject
delegate void EnabledChanged (bool state)
 
bool HasTag (string tag)
 

Protected Member Functions

 Node (string name)
 

Additional Inherited Members

- Protected Attributes inherited from GREngine.Core.System.AbstractGameObject
readonly HashSet< string > Tags = new()
 
- Properties inherited from GREngine.Core.System.AbstractGameObject
bool Enabled = true [get]
 
string Name = "Generic Object" [get, protected set]
 
- Events inherited from GREngine.Core.System.AbstractGameObject
EnabledChanged? EnabledChangedEvent
 

Member Function Documentation

◆ GetAllBehaviours< T >()

IEnumerable< Behaviour > GREngine.Core.System.Node.GetAllBehaviours< T > ( )
inline

This will return ALL components of type T.

Template Parameters
TA Behaviour
Returns
Type Constraints
T :Behaviour 

◆ GetBehaviour< T >()

Behaviour? GREngine.Core.System.Node.GetBehaviour< T > ( )
inline

This will return the FIRST component of type T.

Template Parameters
TA Behaviour
Returns
Type Constraints
T :Behaviour 

◆ SetEnabled()

override void GREngine.Core.System.Node.SetEnabled ( bool  state)
inlinevirtual

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