cb213901
xiaoyu
添加一个游戏的源码和编译选项
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
//
// PlainSprite.h
// SteveMaggieCpp
//
// Created by Katarzyna Kalinowska-Górska on 17.05.2017.
//
//
#ifndef PlainSprite_h
#define PlainSprite_h
#include "LayoutObject.h"
#include "LayoutParser.h"
class PlainSprite : public cocos2d::Sprite, public LayoutObject
{
public:
static PlainSprite* createWithSpritePath(std::string spritePath);
static PlainSprite* createWithTexture(cocos2d::Texture2D* texture);
virtual void loadPropertiesFromJSON(const rapidjson::Value& jsonValue, LayoutViewInterface* scene = NULL, const std::string resFolder = "", const std::string altResFolder = "") override;
virtual void prepareSize(const rapidjson::Value& jsonValue, float& width, float& height) override;
// ScenarioObject
virtual void setProperty(std::string propertyName, const rapidjson::Value& newValue, ActionParseDelegate* parseDelegate) override;
virtual void callFunctionByName(std::string methodName, const rapidjson::Value* arguments, ActionParseDelegate* parseDelegate, std::function<void()> callback = [](){}) override;
};
#endif /* PlainSprite_h */
|