载入中...
搜索中...
未找到
#include "common/Export.h"#include "common/Json.h"#include "common/Result.h"#include "map/MapObject.h"#include "map/TileLayer.h"#include <string>#include <vector>类 | |
| struct | eve::map::RpgMakerImportReceipt |
| Transactional RPG Maker MV/MZ import receipt. 更多... | |
命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::map |
| 放置世界:格子占用(多通道)+ 地形语义 + 已放置建筑实例。 行为由 PlacementSystem 提供;本类暴露便于脚本绑定的薄封装方法。 坐标换算统一走 eve::grid(支持 rectangle / iso / staggered / hex 与 XY/XZ 平面轴)。 | |
函数 | |
| eve::Result< void > | eve::map::applyConfigDocument (TileLayer *layer, eve::json::Value root) |
| Apply map/layer JSON onto an existing TileLayer (Config + Tiles + Tileset + Draw). Multi-layer documents only apply the first tile layer when called on one entity. | |
| bool | eve::map::applyConfigText (TileLayer *layer, const std::string &json, std::string *error=nullptr) |
| Parse JSON text and apply onto one layer. | |
| bool | eve::map::loadConfigFile (TileLayer *layer, const std::string &path, std::string *error=nullptr) |
Read path via Filesystem, apply onto layer, bind Resource.path + modtime for hot reload. If the document has multiple tile layers, only the first is applied to layer. | |
| bool | eve::map::reloadConfigFile (TileLayer *layer, std::string *error=nullptr) |
| Reloads config file. | |
| bool | eve::map::loadTilesetManifestFile (TileLayer *layer, const std::string &path, std::string *error=nullptr) |
| Load a composable TileSet manifest onto an existing layer. | |
| std::vector< TileLayer * > | eve::map::loadMapFile (const std::string &path, std::string *error=nullptr) |
Load a (possibly multi-layer) map JSON. Creates one TileLayer per tile layer. Optionally fills objects from objectgroup layers. Returns created layers (empty on failure). All share the same Resource.path for reload. | |
| std::vector< TileLayer * > | eve::map::loadMapFile (const std::string &path, std::vector< MapObject > *objects, std::string *error=nullptr) |
| Loads map file. | |
| std::vector< TileLayer * > | eve::map::loadMapText (const std::string &json, std::vector< MapObject > *objects, std::string *error=nullptr) |
| Parse map JSON text (no filesystem). Same semantics as loadMapFile. | |
| EVENGINE_API_WORLD eve::Result< RpgMakerImportReceipt > | eve::map::importRpgMakerMap (const std::string &mapPath, const std::string &tilesetsPath, const std::string &sourceEngine="RPG Maker MV/MZ") |
| Imports RPG Maker MV/MZ MapXXX.json plus Tilesets.json without modifying the project. @ownership Returned layer entities are owned by the ECS world, as with loadMapFile. @thread Main-thread affine and non-reentrant. | |
| EVENGINE_API_WORLD TileLayer::Tileset::Visual | eve::map::decodeRpgMakerTileVisual (int tileId) |
| Decodes one MV/MZ tile id into normal or quarter-tile atlas projections. | |