Horizon Official Technical Documentation
MapCache.hpp File Reference
#include "Libraries/GRF/GRF.hpp"
#include <cstdint>
#include <map>
#include <boost/optional.hpp>
#include <unordered_map>
+ Include dependency graph for MapCache.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mapcache_header
 
struct  map_info
 
struct  map_data
 
struct  map_cache
 
class  Horizon::Libraries::MapCache
 

Namespaces

namespace  Horizon
 
namespace  Horizon::Libraries
 

Enumerations

enum  mcache_error_type {
  MCACHE_OK = 0 , MCACHE_INVALID_GRF_PATH = 1 , MCACHE_INVALID_CONFIG_PATH = 2 , MCACHE_INVALID_OUTPUT_PATH = 3 ,
  MCACHE_CONFIG_READ_ERROR = 4 , MCACHE_GRF_CONFIG_READ_ERROR = 5 , MCACHE_GRF_LOAD_ERROR = 6
}
 
enum  mcache_config_error_type { MCACHE_CONFIG_OK = 0 , MCACHE_CONFIG_PARSE_ERROR = 1 , MCACHE_CONFIG_INVALID_VALUE_TYPE = 2 }
 
enum  mcache_grf_config_error_type { MCACHE_GRF_CONF_OK = 0 , MCACHE_GRF_CONF_INVALID_FILE = 1 , MCACHE_GRF_CONF_PARSE_ERROR = 2 , MCACHE_GRF_CONF_INVALID_VALUE_TYPE = 3 }
 
enum  mcache_import_error_type {
  MCACHE_IMPORT_OK = 0 , MCACHE_IMPORT_NONEXISTENT_FILE = 1 , MCACHE_IMPORT_READ_ERROR = 2 , MCACHE_IMPORT_INVALID_CHECKSUM = 3 ,
  MCACHE_IMPORT_DECOMPRESS_ERROR = 4 , MCACHE_IMPORT_MAPINFO_ERROR = 5 , MCACHE_IMPORT_CELLINFO_ERROR = 6
}
 
enum  mcache_map_cell_type { MAP_CELL_WALKABLE = 0 , MAP_CELL_WALKABLE_UNDER_WATER = 3 }
 

Enumeration Type Documentation

◆ mcache_config_error_type

Enumerator
MCACHE_CONFIG_OK 
MCACHE_CONFIG_PARSE_ERROR 
MCACHE_CONFIG_INVALID_VALUE_TYPE 
127{
131};
@ MCACHE_CONFIG_PARSE_ERROR
Definition: MapCache.hpp:129
@ MCACHE_CONFIG_INVALID_VALUE_TYPE
Definition: MapCache.hpp:130
@ MCACHE_CONFIG_OK
Definition: MapCache.hpp:128

◆ mcache_error_type

Enumerator
MCACHE_OK 
MCACHE_INVALID_GRF_PATH 
MCACHE_INVALID_CONFIG_PATH 
MCACHE_INVALID_OUTPUT_PATH 
MCACHE_CONFIG_READ_ERROR 
MCACHE_GRF_CONFIG_READ_ERROR 
MCACHE_GRF_LOAD_ERROR 
116{
117 MCACHE_OK = 0,
124};
@ MCACHE_INVALID_OUTPUT_PATH
Definition: MapCache.hpp:120
@ MCACHE_INVALID_GRF_PATH
Definition: MapCache.hpp:118
@ MCACHE_CONFIG_READ_ERROR
Definition: MapCache.hpp:121
@ MCACHE_INVALID_CONFIG_PATH
Definition: MapCache.hpp:119
@ MCACHE_OK
Definition: MapCache.hpp:117
@ MCACHE_GRF_LOAD_ERROR
Definition: MapCache.hpp:123
@ MCACHE_GRF_CONFIG_READ_ERROR
Definition: MapCache.hpp:122

◆ mcache_grf_config_error_type

Enumerator
MCACHE_GRF_CONF_OK 
MCACHE_GRF_CONF_INVALID_FILE 
MCACHE_GRF_CONF_PARSE_ERROR 
MCACHE_GRF_CONF_INVALID_VALUE_TYPE 
134{
139};
@ MCACHE_GRF_CONF_OK
Definition: MapCache.hpp:135
@ MCACHE_GRF_CONF_INVALID_VALUE_TYPE
Definition: MapCache.hpp:138
@ MCACHE_GRF_CONF_INVALID_FILE
Definition: MapCache.hpp:136
@ MCACHE_GRF_CONF_PARSE_ERROR
Definition: MapCache.hpp:137

◆ mcache_import_error_type

Enumerator
MCACHE_IMPORT_OK 
MCACHE_IMPORT_NONEXISTENT_FILE 
MCACHE_IMPORT_READ_ERROR 
MCACHE_IMPORT_INVALID_CHECKSUM 
MCACHE_IMPORT_DECOMPRESS_ERROR 
MCACHE_IMPORT_MAPINFO_ERROR 
MCACHE_IMPORT_CELLINFO_ERROR 
142{
150};
@ MCACHE_IMPORT_INVALID_CHECKSUM
Definition: MapCache.hpp:146
@ MCACHE_IMPORT_NONEXISTENT_FILE
Definition: MapCache.hpp:144
@ MCACHE_IMPORT_OK
Definition: MapCache.hpp:143
@ MCACHE_IMPORT_READ_ERROR
Definition: MapCache.hpp:145
@ MCACHE_IMPORT_DECOMPRESS_ERROR
Definition: MapCache.hpp:147
@ MCACHE_IMPORT_MAPINFO_ERROR
Definition: MapCache.hpp:148
@ MCACHE_IMPORT_CELLINFO_ERROR
Definition: MapCache.hpp:149

◆ mcache_map_cell_type

Enumerator
MAP_CELL_WALKABLE 
MAP_CELL_WALKABLE_UNDER_WATER 
153{
156};
@ MAP_CELL_WALKABLE_UNDER_WATER
Definition: MapCache.hpp:155
@ MAP_CELL_WALKABLE
Definition: MapCache.hpp:154