Class Scene
- Namespace
- Alis.Core.Ecs.Entity
- Assembly
- Alis.dll
The scene class
public class Scene : IScene<GameObject>, IEnabled, IIdentifier, IRuntime, ICrud<GameObject>Inheritance
Implements
Inherited Members
Constructors
Scene()
Initializes a new instance of the Alis.Core.Ecs.Entity.Scene class
public Scene()Scene(bool, string, string, string)
Initializes a new instance of the Alis.Core.Ecs.Entity.Scene class
public Scene(bool isEnable, string name, string id, string tag)Parameters
Scene(bool, string, string, string, List<GameObject>)
Initializes a new instance of the Alis.Core.Ecs.Entity.Scene class
public Scene(bool isEnable, string name, string id, string tag, List<GameObject> gameObjects)Parameters
isEnablebool-
The is enable
namestring-
The name
idstring-
The id
tagstring-
The tag
gameObjectsList<GameObject>-
The game objects
Fields
_gameObjectsToAdd
The game objects to add
[JsonPropertyName("GameObjectsToAdd", true, true)]
private List<GameObject> _gameObjectsToAddField Value
Properties
Context
Gets or sets the value of the context
[JsonPropertyName("_Context_", true, true)]
protected internal Context Context { get; }Property Value
GameObjects
Gets or sets the value of the game objects
[JsonPropertyName("_GameObjects_")]
public List<GameObject> GameObjects { get; set; }Property Value
Id
Gets or sets the value of the id
[JsonPropertyName("_Id_")]
public string Id { get; set; }Property Value
IsEnable
Gets or sets the value of the is enable
[JsonPropertyName("_IsEnable_")]
public bool IsEnable { get; set; }Property Value
Name
Gets or sets the value of the name
[JsonPropertyName("_Name_")]
public string Name { get; set; }Property Value
Tag
Gets or sets the value of the tag
[JsonPropertyName("_Tag_")]
public string Tag { get; set; }Property Value
Methods
Add<T>(T)
Adds the component
public virtual void Add<T>(T value) where T : GameObjectParameters
valueT-
The component
Type Parameters
T-
The
AddPendingGameObjects()
Adds the pending game objects
private void AddPendingGameObjects()Clear()
Clears this instance
public virtual void Clear()Contains<T>()
Describes whether this instance contains
public virtual bool Contains<T>() where T : GameObjectReturns
- bool
-
The bool
Type Parameters
T-
The
Get<T>()
Gets this instance
public virtual T Get<T>() where T : GameObjectReturns
- T
-
The
Type Parameters
T-
The
OnAfterFixedUpdate()
Ons the after fixed update
public void OnAfterFixedUpdate()OnAfterUpdate()
Ons the after update
public void OnAfterUpdate()OnAwake()
Ons the awake
public void OnAwake()OnBeforeFixedUpdate()
Ons the before fixed update
public void OnBeforeFixedUpdate()OnBeforeUpdate()
Ons the before update
public void OnBeforeUpdate()OnCalculate()
Ons the calculate
public void OnCalculate()OnDestroy()
Ons the destroy
public void OnDestroy()OnDisable()
Ons the disable
public void OnDisable()OnDispatchEvents()
Ons the dispatch events
public void OnDispatchEvents()OnDraw()
Ons the draw
public void OnDraw()OnEnable()
Ons the enable
public void OnEnable()OnExit()
Ons the exit
public void OnExit()OnFixedUpdate()
Ons the fixed update
public void OnFixedUpdate()OnGui()
Ons the gui
public void OnGui()OnInit()
Ons the init
public void OnInit()OnReset()
Ons the reset
public void OnReset()OnStart()
Ons the start
public void OnStart()OnStop()
Ons the stop
public void OnStop()OnUpdate()
Ons the update
public void OnUpdate()Remove<T>(T)
Removes the component
public virtual void Remove<T>(T value) where T : GameObjectParameters
valueT-
The component
Type Parameters
T-
The