载入中...
搜索中...
未找到
MapObject.h
浏览该文件的文档.
1#pragma once
2
3#include <cstdint>
4#include <map>
5#include <string>
6
7namespace eve::map {
8
13struct MapObject {
14 std::string name;
15 std::string type;
17 float x = 0.f;
18 float y = 0.f;
20 float width = 0.f;
21 float height = 0.f;
23 uint32_t gid = 0;
25 std::map<std::string, std::string> properties;
26};
27
28} // namespace eve::map
放置世界:格子占用(多通道)+ 地形语义 + 已放置建筑实例。 行为由 PlacementSystem 提供;本类暴露便于脚本绑定的薄封装方法。 坐标换算统一走 eve::grid(支持 rectang...
A named, typed rectangle object from a Tiled objectgroup layer. Used by Map::setObjects / getObject* ...
Definition MapObject.h:13
std::map< std::string, std::string > properties
Owning canonical text projection of Tiled custom properties, sorted by name.
Definition MapObject.h:25
uint32_t gid
Optional tileset GID (tile objects); 0 = none.
Definition MapObject.h:23
std::string type
Definition MapObject.h:15
float x
Top-left corner in pixels.
Definition MapObject.h:17
float width
Extent in pixels.
Definition MapObject.h:20
std::string name
Definition MapObject.h:14