36 lines
591 B
C
36 lines
591 B
C
#pragma once
|
|
|
|
#include "WindowsWrapper.h"
|
|
|
|
#include "NpChar.h"
|
|
|
|
struct NPC_TBL_RECT
|
|
{
|
|
unsigned char front;
|
|
unsigned char top;
|
|
unsigned char back;
|
|
unsigned char bottom;
|
|
};
|
|
|
|
struct NPC_TABLE
|
|
{
|
|
unsigned short bits;
|
|
unsigned short life;
|
|
unsigned char surf;
|
|
unsigned char hit_voice;
|
|
unsigned char destroy_voice;
|
|
unsigned char size;
|
|
long exp;
|
|
long damage;
|
|
NPC_TBL_RECT hit;
|
|
NPC_TBL_RECT view;
|
|
};
|
|
|
|
extern NPC_TABLE *gNpcTable;
|
|
|
|
BOOL LoadNpcTable(const char *path);
|
|
void ReleaseNpcTable();
|
|
|
|
//NPC Function table
|
|
typedef void (*NPCFUNCTION)(NPCHAR*);
|
|
extern NPCFUNCTION gpNpcFuncTbl[];
|