helapordo 1.4.12
Loading...
Searching...
No Matches
SerFloor Struct Reference

Serialized Floor. More...

#include <ser_core.h>

Data Fields

int8_t index
 The floor's own number.
 
int32_t class
 Defines which kind of floorClass the instance relates to.
 
int8_t floor_layout [FLOOR_MAX_COLS][FLOOR_MAX_ROWS]
 Defines the layout for the Floor (which cells are actually filled).
 
int8_t area
 Holds how many cells we succesfully random walked.
 
int32_t roomclass_layout [FLOOR_MAX_COLS][FLOOR_MAX_ROWS]
 roomClass matrix for class value for rooms of this floor.
 
int8_t explored_matrix [FLOOR_MAX_COLS][FLOOR_MAX_ROWS]
 Int matrix for explored value for rooms of this floor.
 
int8_t explored_area
 Holds how many cells we explored.
 
bool from_bsp
 Flag for floors generated using bsp.
 

Detailed Description

Serialized Floor.

Packed struct. Can be turned into a Floor with deser_Floor(). Can be obtained from a Floor with ser_Floor().

See also
Floor
deser_Floor()
ser_Floor()

Field Documentation

◆ area

int8_t SerFloor::area

Holds how many cells we succesfully random walked.

◆ class

int32_t SerFloor::class

Defines which kind of floorClass the instance relates to.

◆ explored_area

int8_t SerFloor::explored_area

Holds how many cells we explored.

◆ explored_matrix

int8_t SerFloor::explored_matrix[FLOOR_MAX_COLS][FLOOR_MAX_ROWS]

Int matrix for explored value for rooms of this floor.

◆ floor_layout

int8_t SerFloor::floor_layout[FLOOR_MAX_COLS][FLOOR_MAX_ROWS]

Defines the layout for the Floor (which cells are actually filled).

◆ from_bsp

bool SerFloor::from_bsp

Flag for floors generated using bsp.

◆ index

int8_t SerFloor::index

The floor's own number.

◆ roomclass_layout

int32_t SerFloor::roomclass_layout[FLOOR_MAX_COLS][FLOOR_MAX_ROWS]

roomClass matrix for class value for rooms of this floor.


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