mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
24 lines
552 B
C++
24 lines
552 B
C++
#ifndef XNA_GAME_TIME_HPP
|
|
#define XNA_GAME_TIME_HPP
|
|
|
|
#include "../forward.hpp"
|
|
#include "../types.hpp"
|
|
#include "../csharp/timespan.hpp"
|
|
|
|
namespace xna {
|
|
class GameTime {
|
|
public:
|
|
constexpr GameTime() = default;
|
|
|
|
constexpr GameTime(const TimeSpan& elapsedGameTime, const TimeSpan& totalGameTime, bool isRunningSlowly) :
|
|
ElapsedGameTime(elapsedGameTime),
|
|
IsRunningSlowly(isRunningSlowly),
|
|
TotalGameTime(totalGameTime) { }
|
|
|
|
TimeSpan ElapsedGameTime{ 0 };
|
|
bool IsRunningSlowly{ false };
|
|
TimeSpan TotalGameTime{ 0 };
|
|
};
|
|
}
|
|
|
|
#endif |