载入中...
搜索中...
未找到
Versioned payload codec for a hex map and its units. 更多...
#include "common/Export.h"#include "common/Result.h"#include "hexmap/HexMap.h"#include "hexmap/HexUnits.h"#include <cstdint>#include <vector>命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::hexmap |
函数 | |
| Result< void > | eve::hexmap::saveHexMap (const HexMap &map, const std::vector< HexUnitState > &units, std::vector< std::uint8_t > &out) |
| Serializes a map and its units into a self-describing byte payload. | |
| Result< void > | eve::hexmap::loadHexMap (const std::vector< std::uint8_t > &bytes, HexMap &map, std::vector< HexUnitState > &units) |
Restores a map and its units from a payload produced by saveHexMap. | |
变量 | |
| constexpr std::uint8_t | eve::hexmap::kHexSaveMagic [8] = {'E', 'V', 'E', 'H', 'E', 'X', 0, 0} |
Magic prefix of a hex map payload; ASCII EVEHEX\0\0. | |
| constexpr std::uint32_t | eve::hexmap::kHexSaveVersion = 1 |
Format version written by saveHexMap. | |
详细描述
Versioned payload codec for a hex map and its units.
在文件 HexSerializer.h 中定义.