PersonalVotingMachine/basic-setup/components/u8g2/sys/tga/mapgen/map.h
2020-12-22 14:30:09 +02: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