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,6 +3,11 @@
|
|||
|
||||
#include "../../include/cocos2d.h"
|
||||
|
||||
// @note RobTop Addition
|
||||
class CC_DLL ObjectDecoderDelegate {
|
||||
virtual cocos2d::CCObject* getDecodedObject(int, DS_Dictionary*) { return nullptr; }
|
||||
};
|
||||
|
||||
// @note RobTop Addition
|
||||
class CC_DLL ObjectDecoder : public cocos2d::CCNode {
|
||||
public:
|
||||
|
@ -15,6 +20,9 @@ public:
|
|||
cocos2d::CCObject* getDecodedObject(int, DS_Dictionary*);
|
||||
|
||||
virtual bool init();
|
||||
|
||||
public:
|
||||
ObjectDecoderDelegate* m_delegate;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue