uas-ugv/sys/sdl/gm2/map.h
Alex Mikhalev 8d24829f67 Squashed 'components/u8g2/' content from commit 45ac4e0e
git-subtree-dir: components/u8g2
git-subtree-split: 45ac4e0edc76c6bc3d808304fccb73c543535ded
2019-01-15 20:36:08 -08:00

43 lines
719 B
C

#ifndef _MAP_H
#define _MAP_H
#include <stdint.h>
struct _item_onmap_struct
{
uint8_t x;
uint8_t y;
uint8_t template_index;
uint8_t option;
};
typedef struct _item_onmap_struct item_onmap_t;
struct _map_struct
{
unsigned char *data;
item_onmap_t *onmap_list;
uint16_t init_proc;
uint8_t onmap_cnt;
uint8_t width;
uint8_t height;
};
typedef struct _map_struct map_t;
struct _item_template_struct
{
uint16_t init_proc;
uint16_t hit_proc;
uint16_t step_proc;
uint8_t fg_tile; /* for tga output and inital tile */
};
typedef struct _item_template_struct item_template_t;
extern unsigned char map_code[] ;
extern item_template_t item_template_list[];
extern map_t map_list[];
#endif