1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00
xn65/inc/xna/game/time.hpp

24 lines
552 B
C++
Raw Normal View History

2024-03-21 16:01:47 -03:00
#ifndef XNA_GAME_TIME_HPP
#define XNA_GAME_TIME_HPP
#include "../forward.hpp"
#include "../types.hpp"
2024-03-23 17:23:07 -03:00
#include "../csharp/timespan.hpp"
2024-03-21 16:01:47 -03:00
namespace xna {
class GameTime {
public:
constexpr GameTime() = default;
2024-03-23 17:23:07 -03:00
constexpr GameTime(const TimeSpan& elapsedGameTime, const TimeSpan& totalGameTime, bool isRunningSlowly) :
ElapsedGameTime(elapsedGameTime),
IsRunningSlowly(isRunningSlowly),
TotalGameTime(totalGameTime) { }
2024-03-21 16:01:47 -03:00
2024-03-23 17:23:07 -03:00
TimeSpan ElapsedGameTime{ 0 };
bool IsRunningSlowly{ false };
TimeSpan TotalGameTime{ 0 };
2024-03-21 16:01:47 -03:00
};
}
#endif