Advertisement
Guest User

cocos source

a guest
Apr 8th, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. class CC_DLL TMXTilesetInfo : public Ref
  2. {
  3. public:
  4.     std::string     _name;
  5.     int             _firstGid;
  6.     Size            _tileSize;
  7.     int             _spacing;
  8.     int             _margin;
  9.     Vec2            _tileOffset;
  10.     //! filename containing the tiles (should be spritesheet / texture atlas)
  11.     std::string     _sourceImage;
  12.     //! size in pixels of the image
  13.     Size            _imageSize;
  14.     std::string     _originSourceImage;
  15.  
  16. public:
  17.     /**
  18.      * @js ctor
  19.      */
  20.     TMXTilesetInfo();
  21.     /**
  22.      * @js NA
  23.      * @lua NA
  24.      */
  25.     virtual ~TMXTilesetInfo();
  26.     Rect getRectForGID(uint32_t gid);
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement