axmol/extensions/cocostudio/WidgetReader/NodeReaderProtocol.h

103 lines
3.0 KiB
C
Raw Normal View History

2015-06-17 13:16:06 +08:00
/****************************************************************************
2014-11-21 15:15:38 +08:00
Copyright (c) 2014 cocos2d-x.org
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#ifndef __cocos2d_libs__NodeReaderProtocol__
#define __cocos2d_libs__NodeReaderProtocol__
#include "ui/GUIDefine.h"
#include "cocostudio/CocosStudioExport.h"
#include "cocostudio/CocosStudioExtension.h"
2019-11-24 23:15:56 +08:00
#include "pugixml/pugixml_imp.hpp"
#include "pugixml/pugiext.hpp"
2014-11-21 15:15:38 +08:00
namespace flatbuffers
{
class FlatBufferBuilder;
template<typename T> struct Offset;
class Table;
2020-08-04 10:55:30 +08:00
struct ResourceData;
2014-11-21 15:15:38 +08:00
}
namespace cocos2d
{
class Node;
}
namespace cocostudio
{
2019-11-24 23:15:56 +08:00
class CC_STUDIOP_DLL NodeReaderProtocol
2014-11-21 15:15:38 +08:00
{
public:
NodeReaderProtocol() {};
virtual ~NodeReaderProtocol() {};
2019-11-24 23:15:56 +08:00
virtual void setCurrentCustomClassName(const char* className) {};
virtual flatbuffers::Offset<flatbuffers::Table> createOptionsWithFlatBuffers(pugi::xml_node objectData,
2014-11-21 15:15:38 +08:00
flatbuffers::FlatBufferBuilder* builder) = 0;
virtual void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* nodeOptions) = 0;
virtual cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) = 0;
};
}
2019-11-24 23:15:56 +08:00
namespace cocostudio
{
class Armature;
namespace timeline {
class SkeletonNode;
class BoneNode;
}
};
namespace cocos2d {
// builtin ui predecl
class Sprite;
class ParticleSystemQuad;
namespace ui {
class ImageView;
class Button;
class CheckBox;
class Slider;
class LoadingBar;
class Text;
class TextField;
class TextAtlas;
class TextBMFont;
class Layout;
class ScrollView;
class ListView;
class PageView;
class Widget;
}
};
2014-11-21 15:15:38 +08:00
#endif /* defined(__cocos2d_libs__NodeReaderProtocol__) */