39 lines
607 B
C
39 lines
607 B
C
|
|
|
|
|
|
#ifndef _MAP_H
|
|
#define _MAP_H
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
struct _map_struct
|
|
{
|
|
unsigned char *data;
|
|
uint8_t width;
|
|
uint8_t height;
|
|
};
|
|
typedef struct _map_struct map_t;
|
|
|
|
struct _item_template_struct
|
|
{
|
|
uint8_t fg_tile; /* for tga output and inital tile */
|
|
uint8_t bg_tile; /* for the internal map */
|
|
uint16_t init_proc;
|
|
uint16_t hit_proc;
|
|
uint16_t step_proc;
|
|
};
|
|
typedef struct _item_template_struct item_template_t;
|
|
|
|
struct _item_onmap_struct
|
|
{
|
|
uint8_t x;
|
|
uint8_t y;
|
|
uint8_t template_index;
|
|
uint8_t option;
|
|
};
|
|
struct _item_onmap_struct item_onmap_t;
|
|
|
|
extern map_t map_list[];
|
|
|
|
#endif |