Falco Engine 3.9.0.1 (beta)
Time.cs
Go to the documentation of this file.
1using System;
2using System.Runtime.CompilerServices;
3using System.Runtime.InteropServices;
4
5namespace FalcoEngine
6{
7 public static class Time
8 {
12 public static int frameRate { [MethodImpl(MethodImplOptions.InternalCall)] get; }
13
17 public static float deltaTime { [MethodImpl(MethodImplOptions.InternalCall)] get; }
18
22 public static float timeScale { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
23
27 public static float timeSinceGameStart { [MethodImpl(MethodImplOptions.InternalCall)] get; }
28
32 public static float timeSinceGameStartScaled { [MethodImpl(MethodImplOptions.InternalCall)] get; }
33
37 public static float timeSinceLevelStart { [MethodImpl(MethodImplOptions.InternalCall)] get; }
38
42 public static float timeSinceLevelStartScaled { [MethodImpl(MethodImplOptions.InternalCall)] get; }
43 }
44}
static float deltaTime
The interval in seconds from the last frame to the current one
Definition: Time.cs:17
static float timeSinceLevelStartScaled
The time in seconds scaled by timeScale since the last scene has finished loading
Definition: Time.cs:42
static float timeScale
The scale at which time passes
Definition: Time.cs:22
static float timeSinceGameStart
The real time in seconds since the game started
Definition: Time.cs:27
static int frameRate
The current frames per second value (FPS)
Definition: Time.cs:12
static float timeSinceLevelStart
The time in seconds since the last scene has finished loading
Definition: Time.cs:37
static float timeSinceGameStartScaled
The time in seconds scaled by timeScale since the game started
Definition: Time.cs:32