Horizon Official Technical Documentation
map_data Struct Reference

#include <MapCache.hpp>

+ Collaboration diagram for map_data:

Public Member Functions

const std::vector< uint8_t > & getCells ()
 
std::string name ()
 
uint16_t width ()
 
uint16_t height ()
 
uint32_t size ()
 

Public Attributes

map_info info {}
 
std::vector< uint8_t > cells
 

Member Function Documentation

◆ getCells()

const std::vector< uint8_t > & map_data::getCells ( )
inline
73{ return cells; }
std::vector< uint8_t > cells
Definition: MapCache.hpp:80

References cells.

◆ height()

uint16_t map_data::height ( )
inline
76{ return info.total_y; }
map_info info
Definition: MapCache.hpp:79
int16_t total_y
Definition: MapCache.hpp:66

References info, and map_info::total_y.

◆ name()

std::string map_data::name ( )
inline
74{ return info.name; }
char name[12]
Definition: MapCache.hpp:64

References info, and map_info::name.

◆ size()

uint32_t map_data::size ( )
inline
77{ return info.length; }
uint32_t length
Definition: MapCache.hpp:67

References info, and map_info::length.

◆ width()

uint16_t map_data::width ( )
inline
75{ return info.total_x; }
int16_t total_x
Definition: MapCache.hpp:65

References info, and map_info::total_x.

Member Data Documentation

◆ cells

◆ info


The documentation for this struct was generated from the following file: