geode/loader/include/Geode/cocos/robtop/xml/ObjectDecoder.h
2024-07-25 17:11:37 -07:00

29 lines
622 B
C++
Vendored

#ifndef __OBJECTDECODER_H__
#define __OBJECTDECODER_H__
#include "../../include/cocos2d.h"
// @note RobTop Addition
class CC_DLL ObjectDecoderDelegate {
public:
virtual cocos2d::CCObject* getDecodedObject(int objectType, DS_Dictionary* data) { return nullptr; }
};
// @note RobTop Addition
class CC_DLL ObjectDecoder : public cocos2d::CCNode {
public:
ObjectDecoder();
~ObjectDecoder() {}
GEODE_CUSTOM_CONSTRUCTOR_BEGIN(ObjectDecoder)
static ObjectDecoder* sharedDecoder();
cocos2d::CCObject* getDecodedObject(int, DS_Dictionary*);
virtual bool init();
public:
ObjectDecoderDelegate* m_delegate;
};
#endif