| 1 | #pragma once |
|---|---|
| 2 | |
| 3 | #include <heap/seadDisposer.h> |
| 4 | |
| 5 | namespace al { |
| 6 | class SystemKit; |
| 7 | class GameFrameworkNx; |
| 8 | class AccountHolder; |
| 9 | struct DrawSystemInfo; |
| 10 | } // namespace al |
| 11 | |
| 12 | class RootTask; |
| 13 | |
| 14 | class Application { |
| 15 | SEAD_SINGLETON_DISPOSER(Application); |
| 16 | |
| 17 | public: |
| 18 | Application(); |
| 19 | void init(s32 argc, char** argv); |
| 20 | void run(); |
| 21 | RootTask* getRootTask() const; |
| 22 | |
| 23 | al::SystemKit* getSystemKit() const { return mSystemKit; } |
| 24 | |
| 25 | al::GameFrameworkNx* getGameFramework() const { return mGameFramework; } |
| 26 | |
| 27 | al::DrawSystemInfo* getDrawSystemInfo() const { return mDrawSystemInfo; } |
| 28 | |
| 29 | al::AccountHolder* getAccountHolder() const { return mAccountHolder; } |
| 30 | |
| 31 | protected: |
| 32 | friend class ApplicationFunction; |
| 33 | |
| 34 | private: |
| 35 | al::SystemKit* mSystemKit; |
| 36 | al::GameFrameworkNx* mGameFramework; |
| 37 | al::DrawSystemInfo* mDrawSystemInfo; |
| 38 | al::AccountHolder* mAccountHolder; |
| 39 | }; |
| 40 |