Class VideoGame
- Namespace
- Alis.Core.Ecs
- Assembly
- Alis.dll
The video game class
public sealed class VideoGame : IGameInheritance
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
contextContext-
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
settingsSettings-
The settings
audioManagerAudioManager-
The audio manager
graphicManagerGraphicManager-
The graphic manager
inputManagerInputManager-
The input manager
networkManagerNetworkManager-
The network manager
physicManagerPhysicManager-
The physic manager
sceneManagerSceneManager-
The scene manager
Fields
_instancie
The instancie
public static VideoGame _instancieField Value
accumulator
The accumulator
private double accumulatorField Value
currentTime
The current time
private double currentTimeField Value
lastDeltaTime
The last delta time
private float lastDeltaTimeField Value
lastLogTime
The last log time
private double lastLogTimeField Value
lastTime
The last time
private double lastTimeField Value
smoothDeltaTimeCount
The smooth delta time count
private int smoothDeltaTimeCountField Value
smoothDeltaTimeSum
The smooth delta time sum
private float smoothDeltaTimeSumField Value
targetFrameDuration
The target frame duration
private double targetFrameDurationField Value
totalTime
The total time
private double totalTimeField 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
contextContext-
The context