geode/loader/include/Geode/cocos/robtop/xml/ObjectDecoder.h

29 lines
598 B
C
Raw Normal View History

2024-07-24 08:00:54 -04:00
#ifndef __OBJECTDECODER_H__
#define __OBJECTDECODER_H__
#include "../../include/cocos2d.h"
// @note RobTop Addition
class CC_DLL ObjectDecoderDelegate {
virtual cocos2d::CCObject* getDecodedObject(int, DS_Dictionary*) { return nullptr; }
};
2024-07-24 08:00:54 -04:00
// @note RobTop Addition
2024-07-24 09:48:33 -04:00
class CC_DLL ObjectDecoder : public cocos2d::CCNode {
2024-07-24 08:00:54 -04:00
public:
ObjectDecoder();
~ObjectDecoder() {}
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(ObjectDecoder)
2024-07-24 08:00:54 -04:00
static ObjectDecoder* sharedDecoder();
cocos2d::CCObject* getDecodedObject(int, DS_Dictionary*);
virtual bool init();
public:
ObjectDecoderDelegate* m_delegate;
2024-07-24 08:00:54 -04:00
};
#endif