-
Notifications
You must be signed in to change notification settings - Fork 22
Some RPSystem TU's #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Some RPSystem TU's #148
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,31 @@ | ||||||
| #ifndef RP_SYSTEM_QUEUED_SCENE_H | ||||||
| #define RP_SYSTEM_QUEUED_SCENE_H | ||||||
| #include <Pack/types_pack.h> | ||||||
|
|
||||||
| #include <Pack/RPKernel.h> | ||||||
|
|
||||||
| //! @addtogroup rp_system | ||||||
| //! @{ | ||||||
|
|
||||||
| /** | ||||||
| * @brief Pack Project Queued Scene | ||||||
| */ | ||||||
| class RPSysQueuedScene { | ||||||
| RP_SINGLETON_DECL_EX(RPSysQueuedScene); | ||||||
|
|
||||||
| /** | ||||||
| * @brief Resets the queued scene's ID | ||||||
| */ | ||||||
| void reset(); | ||||||
|
|
||||||
| inline s32 getSceneID() { | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| return mSceneID; | ||||||
| } | ||||||
| private: | ||||||
| //! Queued Scene ID | ||||||
| s32 mSceneID; // at 0x8 | ||||||
| }; | ||||||
|
|
||||||
| //! @} | ||||||
|
|
||||||
| #endif | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,21 @@ | ||||||
| #include <RPSystem.h> | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| RP_SINGLETON_IMPL_EX(RPSysQueuedScene) | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| /** | ||||||
| * @brief Constructor | ||||||
| * | ||||||
| * @param pHeap Parent heap | ||||||
| */ | ||||||
| RPSysQueuedScene::RPSysQueuedScene(EGG::Heap* pHeap) : mpParentHeap(pHeap) { | ||||||
| reset(); | ||||||
| } | ||||||
|
|
||||||
| void RPSysQueuedScene::reset() { | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could u copy paste the doc-comment from above the declaration pls |
||||||
| mSceneID = -1; | ||||||
| } | ||||||
|
|
||||||
| /** | ||||||
| * @brief Destructor | ||||||
| */ | ||||||
| RPSysQueuedScene::~RPSysQueuedScene() { } | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these functions will be private by default without
public: