Add utility for if in play mode that returns true for shipped applications.

This commit is contained in:
Chandler Cox
2025-05-23 23:21:45 -05:00
parent 9ba1c4c338
commit ae9ded504d
2 changed files with 14 additions and 0 deletions

View File

@@ -442,6 +442,15 @@ bool Engine::IsEditor()
#endif
}
bool Engine::IsPlayMode()
{
#if USE_EDITOR
return Editor::IsPlayMode;
#else
return true;
#endif
}
int32 Engine::GetFramesPerSecond()
{
return EngineImpl::Fps;