TileMapLayer2D.pkg 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. $#include "TileMapLayer2D.h"
  2. class TileMapLayer2D : Component
  3. {
  4. void SetDrawOrder(int drawOrder);
  5. void SetVisible(bool visible);
  6. int GetDrawOrder() const;
  7. bool IsVisible() const;
  8. bool HasProperty(const String& name) const;
  9. const String& GetProperty(const String& name) const;
  10. TileMapLayerType2D GetLayerType() const;
  11. int GetWidth() const;
  12. int GetHeight() const;
  13. Node* GetTileNode(int x, int y) const;
  14. Tile2D* GetTile(int x, int y) const;
  15. unsigned GetNumObjects() const;
  16. TileMapObject2D* GetObject(unsigned index) const;
  17. Node* GetObjectNode(unsigned index) const;
  18. Node* GetImageNode() const;
  19. tolua_readonly tolua_property__get_set int drawOrder;
  20. tolua_readonly tolua_property__is_set bool visible;
  21. tolua_readonly tolua_property__get_set TileMapLayerType2D layerType;
  22. tolua_readonly tolua_property__get_set int width;
  23. tolua_readonly tolua_property__get_set int height;
  24. tolua_readonly tolua_property__get_set unsigned numObjects;
  25. tolua_readonly tolua_property__get_set Node* imageNode;
  26. };