Class VideoGame
- Namespace
- Alis.Core.Ecs
- Assembly
- Alis.dll
The video game class
public sealed class VideoGame : IGame
Inheritance
Implements
Inherited Members
Constructors
VideoGame()
Initializes a new instance of the Alis.Core.Ecs.VideoGame class
public VideoGame()
VideoGame(Context)
Initializes a new instance of the Alis.Core.Ecs.VideoGame class
public VideoGame(Context context)
Parameters
context
Context-
The context
VideoGame(Settings, AudioManager, GraphicManager, InputManager, NetworkManager, PhysicManager, SceneManager)
Initializes a new instance of the Alis.Core.Ecs.VideoGame class
public VideoGame(Settings settings, AudioManager audioManager, GraphicManager graphicManager, InputManager inputManager, NetworkManager networkManager, PhysicManager physicManager, SceneManager sceneManager)
Parameters
settings
Settings-
The settings
audioManager
AudioManager-
The audio manager
graphicManager
GraphicManager-
The graphic manager
inputManager
InputManager-
The input manager
networkManager
NetworkManager-
The network manager
physicManager
PhysicManager-
The physic manager
sceneManager
SceneManager-
The scene manager
Fields
_instancie
The instancie
public static VideoGame _instancie
Field Value
accumulator
The accumulator
private double accumulator
Field Value
currentTime
The current time
private double currentTime
Field Value
lastDeltaTime
The last delta time
private float lastDeltaTime
Field Value
lastLogTime
The last log time
private double lastLogTime
Field Value
lastTime
The last time
private double lastTime
Field Value
smoothDeltaTimeCount
The smooth delta time count
private int smoothDeltaTimeCount
Field Value
smoothDeltaTimeSum
The smooth delta time sum
private float smoothDeltaTimeSum
Field Value
targetFrameDuration
The target frame duration
private double targetFrameDuration
Field Value
totalTime
The total time
private double totalTime
Field Value
Properties
Context
Gets or sets the value of the context
[JsonPropertyName("_Context_")]
public Context Context { get; set; }
Property Value
Methods
Builder()
Builders
public static VideoGameBuilder Builder()
Returns
- VideoGameBuilder
-
The video game builder
Exit()
Exits this instance
public void Exit()
ExitPreview()
Exits the preview
public void ExitPreview()
GetContext()
Gets the context
public static Context GetContext()
Returns
- Context
-
The context
InitPreview()
Inits the preview
public void InitPreview()
LastLogTime(double, double)
Lasts the log time using the specified new time
public double LastLogTime(double newTime, double lastLogTime)
Parameters
Returns
- double
-
The last log time
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()
OnDispatchEvents()
Ons the dispatch events
public void OnDispatchEvents()
OnDraw()
Ons the draw
public void OnDraw()
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()
OnPhysicUpdate()
Ons the physic update
private void OnPhysicUpdate()
OnStart()
Ons the start
public void OnStart()
OnStop()
Ons the stop
public void OnStop()
OnUpdate()
Ons the update
public void OnUpdate()
Run()
Run program
public void Run()
RunPreview()
Runs the preview
public void RunPreview()
SetContext(Context)
Sets the context using the specified context
public static void SetContext(Context context)
Parameters
context
Context-
The context