mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
add objectdecoderdelegate for objectdecoder
This commit is contained in:
parent
4266a82a56
commit
509c5e7e93
1 changed files with 9 additions and 1 deletions
|
@ -3,18 +3,26 @@
|
||||||
|
|
||||||
#include "../../include/cocos2d.h"
|
#include "../../include/cocos2d.h"
|
||||||
|
|
||||||
|
// @note RobTop Addition
|
||||||
|
class CC_DLL ObjectDecoderDelegate {
|
||||||
|
virtual cocos2d::CCObject* getDecodedObject(int, DS_Dictionary*) { return nullptr; }
|
||||||
|
};
|
||||||
|
|
||||||
// @note RobTop Addition
|
// @note RobTop Addition
|
||||||
class CC_DLL ObjectDecoder : public cocos2d::CCNode {
|
class CC_DLL ObjectDecoder : public cocos2d::CCNode {
|
||||||
public:
|
public:
|
||||||
ObjectDecoder();
|
ObjectDecoder();
|
||||||
~ObjectDecoder() {}
|
~ObjectDecoder() {}
|
||||||
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(ObjectDecoder)
|
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(ObjectDecoder)
|
||||||
|
|
||||||
static ObjectDecoder* sharedDecoder();
|
static ObjectDecoder* sharedDecoder();
|
||||||
|
|
||||||
cocos2d::CCObject* getDecodedObject(int, DS_Dictionary*);
|
cocos2d::CCObject* getDecodedObject(int, DS_Dictionary*);
|
||||||
|
|
||||||
virtual bool init();
|
virtual bool init();
|
||||||
|
|
||||||
|
public:
|
||||||
|
ObjectDecoderDelegate* m_delegate;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue