mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-22 02:45:49 -04:00
fix appdelegate
This commit is contained in:
parent
07e64c4dc9
commit
c8cf6e20fd
2 changed files with 11 additions and 3 deletions
|
@ -78,7 +78,7 @@ class AnimatedSpriteDelegate {
|
|||
virtual void animationFinished(const char*) {}
|
||||
}
|
||||
|
||||
class AppDelegate : cocos2d::CCApplication {
|
||||
class AppDelegate : cocos2d::CCApplication, cocos2d::CCSceneDelegate {
|
||||
void bgScale() = mac 0x3aaab0;
|
||||
virtual bool applicationDidFinishLaunching() = mac 0x3aa900, win 0x3cbb0;
|
||||
virtual void applicationDidEnterBackground() = mac 0x3aabe0, win 0x3cf40;
|
||||
|
|
|
@ -36,6 +36,15 @@ NS_CC_BEGIN
|
|||
* @{
|
||||
*/
|
||||
|
||||
// geode should use the cocos2d-x-gd imo
|
||||
class CCScene;
|
||||
|
||||
class CC_DLL CCSceneDelegate {
|
||||
public:
|
||||
virtual void willSwitchToScene(CCScene* scene) {}
|
||||
};
|
||||
|
||||
|
||||
/** @brief CCScene is a subclass of CCNode that is used only as an abstract concept.
|
||||
|
||||
CCScene an CCNode are almost identical with the difference that CCScene has it's
|
||||
|
@ -71,8 +80,7 @@ public:
|
|||
|
||||
int getHighestChildZ(void);
|
||||
|
||||
protected:
|
||||
void* m_pIDK;
|
||||
CCSceneDelegate* m_pDelegate;
|
||||
)
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue