Changeset View
Changeset View
Standalone View
Standalone View
source/ps/Game.h
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | public: | ||||
* Set the simulation scale multiplier. | * Set the simulation scale multiplier. | ||||
* | * | ||||
* @param simRate Float value to set m_SimRate to. | * @param simRate Float value to set m_SimRate to. | ||||
* Because m_SimRate is also used to | * Because m_SimRate is also used to | ||||
* scale TimeSinceLastFrame it must be | * scale TimeSinceLastFrame it must be | ||||
* clamped to 0.0f. | * clamped to 0.0f. | ||||
**/ | **/ | ||||
inline void SetSimRate(float simRate) | inline void SetSimRate(float simRate) | ||||
{ if (isfinite(simRate)) m_SimRate = std::max(simRate, 0.0f); } | { if (std::isfinite(simRate)) m_SimRate = std::max(simRate, 0.0f); } | ||||
inline float GetSimRate() const | inline float GetSimRate() const | ||||
{ return m_SimRate; } | { return m_SimRate; } | ||||
inline OsPath GetReplayPath() const | inline OsPath GetReplayPath() const | ||||
{ return m_ReplayPath; } | { return m_ReplayPath; } | ||||
/** | /** | ||||
Show All 33 Lines |
Wildfire Games · Phabricator