载入中...
搜索中...
未找到
MapObject.h
浏览该文件的文档.
1#pragma once
2
3#include <cstdint>
4#include <string>
5
6namespace eve::map {
7
12struct MapObject {
13 std::string name;
14 std::string type;
16 float x = 0.f;
17 float y = 0.f;
19 float width = 0.f;
20 float height = 0.f;
22 uint32_t gid = 0;
23};
24
25} // 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:12
uint32_t gid
Optional tileset GID (tile objects); 0 = none.
Definition MapObject.h:22
std::string type
Definition MapObject.h:14
float x
Top-left corner in pixels.
Definition MapObject.h:16
float width
Extent in pixels.
Definition MapObject.h:19
std::string name
Definition MapObject.h:13