载入中...
搜索中...
未找到
TileConfig.h
浏览该文件的文档.
32EVENGINE_API_WORLD bool applyConfigText(TileLayer *layer, const std::string &json, std::string *error = nullptr);
56EVENGINE_API_WORLD std::vector<TileLayer *> loadMapFile(const std::string &path, std::string *error = nullptr);
58EVENGINE_API_WORLD std::vector<TileLayer *> loadMapFile(const std::string &path, std::vector<MapObject> *objects,
62EVENGINE_API_WORLD std::vector<TileLayer *> loadMapText(const std::string &json, std::vector<MapObject> *objects,
71 const std::string &mapPath, const std::string &tilesetsPath, const std::string &sourceEngine = "RPG Maker MV/MZ");
Move-only, checked operation results for the common layer.
ECS tile layer entity. Script mutates tile GIDs / tileset / draw; TileRenderSystem batch-draws atlas ...
Definition TileLayer.h:32
放置世界:格子占用(多通道)+ 地形语义 + 已放置建筑实例。 行为由 PlacementSystem 提供;本类暴露便于脚本绑定的薄封装方法。 坐标换算统一走 eve::grid(支持 rectang...
Definition PlacementWorld.h:19
eve::Result< void > applyConfigDocument(TileLayer *layer, eve::json::Value root)
Apply map/layer JSON onto an existing TileLayer (Config + Tiles + Tileset + Draw)....
Definition TileConfig.cpp:981
std::vector< TileLayer * > loadMapText(const std::string &json, std::vector< MapObject > *objects, std::string *error)
Parse map JSON text (no filesystem). Same semantics as loadMapFile.
Definition TileConfig.cpp:1171
bool loadTilesetManifestFile(TileLayer *layer, const std::string &path, std::string *error)
Load a composable TileSet manifest onto an existing layer.
Definition TileConfig.cpp:1126
bool reloadConfigFile(TileLayer *layer, std::string *error)
Reloads config file.
Definition TileConfig.cpp:1116
bool applyConfigText(TileLayer *layer, const std::string &json, std::string *error)
Parse JSON text and apply onto one layer.
Definition TileConfig.cpp:1011
std::vector< TileLayer * > loadMapFile(const std::string &path, std::vector< MapObject > *objects, std::string *error)
Loads map file.
Definition TileConfig.cpp:1182
EVENGINE_API_WORLD TileLayer::Tileset::Visual decodeRpgMakerTileVisual(int tileId)
Decodes one MV/MZ tile id into normal or quarter-tile atlas projections.
bool loadConfigFile(TileLayer *layer, const std::string &path, std::string *error)
Read path via Filesystem, apply onto layer, bind Resource.path + modtime for hot reload....
Definition TileConfig.cpp:1057
EVENGINE_API_WORLD eve::Result< RpgMakerImportReceipt > 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....
Transactional RPG Maker MV/MZ import receipt.
Definition TileConfig.h:16
TileLayer * navigationLayer
Definition TileConfig.h:18
Per-GID visual metadata emitted by a project-defined asset pipeline.
Definition TileLayer.h:109