5daad4bc
 
  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 
 | 
  //
  //  HPlainSprite.h
  //  SteveMaggieCpp
  //
  //  Created by Katarzyna Kalinowska-Górska on 17.05.2017.
  //
  //
  
  #ifndef HPlainSprite_h
  #define HPlainSprite_h
  
  #include "cocos2d.h"
  #include "HLayoutObject.h"
  #include "HLayoutParser.h"
  
  class HPlainSprite : public cocos2d::Sprite, public HLayoutObject
  {
      public:
      
          static HPlainSprite* createWithSpritePath(std::string spritePath);
          static HPlainSprite* createWithTexture(cocos2d::Texture2D* texture);
      
          virtual void loadPropertiesFromJSON(const rapidjson::Value& jsonValue, HLayoutViewInterface* scene = NULL, const std::string resFolder = "", const std::string altResFolder = "") override;
          virtual void prepareSize(const rapidjson::Value& jsonValue, float& width, float& height) override;
  };
  
  #endif /* HPlainSprite_h */
 
 |