TileMap2D.pkg 793 B

12345678910111213141516171819202122
  1. $#include "TileMap2D.h"
  2. class TileMap2D : Component
  3. {
  4. void SetTmxFile(TmxFile2D* tmxFile);
  5. TmxFile2D* GetTmxFile() const;
  6. Orientation2D GetOrientation() const;
  7. int GetWidth() const;
  8. int GetHeight() const;
  9. float GetTileWidth() const;
  10. float GetTileHeight() const;
  11. unsigned GetNumLayers() const;
  12. TileMapLayer2D* GetLayer(unsigned index) const;
  13. tolua_property__get_set TmxFile2D* tmxFile;
  14. tolua_readonly tolua_property__get_set Orientation2D orientation;
  15. tolua_readonly tolua_property__get_set int width;
  16. tolua_readonly tolua_property__get_set int height;
  17. tolua_readonly tolua_property__get_set float tileWidth;
  18. tolua_readonly tolua_property__get_set float tileHeight;
  19. tolua_readonly tolua_property__get_set unsigned numLayers;
  20. };