Core/ApplicationBase: Add methods to query components

This commit is contained in:
SirLynix
2024-01-24 17:41:57 +01:00
parent e14614cf41
commit 086152c97d
2 changed files with 36 additions and 0 deletions

View File

@@ -42,10 +42,15 @@ namespace Nz
template<typename T> T& GetComponent();
template<typename T> const T& GetComponent() const;
template<typename T> bool HasComponent() const;
inline void Quit();
int Run();
template<typename T> T* TryGetComponent();
template<typename T> const T* TryGetComponent() const;
bool Update(Time elapsedTime);
ApplicationBase& operator=(const ApplicationBase&) = delete;