mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
Comentários em GameTime
This commit is contained in:
parent
eb16fefa15
commit
a60e0f366d
@ -5,6 +5,7 @@
|
|||||||
#include "../csharp/timespan.hpp"
|
#include "../csharp/timespan.hpp"
|
||||||
|
|
||||||
namespace xna {
|
namespace xna {
|
||||||
|
//Snapshot of the game timing state expressed in values that can be used by variable-step (real time) or fixed-step (game time) games.
|
||||||
class GameTime {
|
class GameTime {
|
||||||
public:
|
public:
|
||||||
constexpr GameTime() = default;
|
constexpr GameTime() = default;
|
||||||
@ -14,8 +15,11 @@ namespace xna {
|
|||||||
IsRunningSlowly(isRunningSlowly),
|
IsRunningSlowly(isRunningSlowly),
|
||||||
TotalGameTime(totalGameTime) { }
|
TotalGameTime(totalGameTime) { }
|
||||||
|
|
||||||
|
//The amount of elapsed game time since the last update.
|
||||||
TimeSpan ElapsedGameTime{ 0 };
|
TimeSpan ElapsedGameTime{ 0 };
|
||||||
|
//Gets a value indicating that the game loop is taking longer than its TargetElapsedTime. In this case, the game loop can be considered to be running too slowly and should do something to "catch up."
|
||||||
bool IsRunningSlowly{ false };
|
bool IsRunningSlowly{ false };
|
||||||
|
//The amount of game time since the start of the game.
|
||||||
TimeSpan TotalGameTime{ 0 };
|
TimeSpan TotalGameTime{ 0 };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user