94 lines
2.4 KiB
C
94 lines
2.4 KiB
C
![]() |
#ifndef __READNPCCREATE_H__
|
|||
|
#define __READNPCCREATE_H__
|
|||
|
|
|||
|
#include "util.h"
|
|||
|
|
|||
|
#define NPC_CREATEFILEMAGIC "NPCCREATE\n"
|
|||
|
|
|||
|
|
|||
|
#undef EXTERN
|
|||
|
#ifdef __NPCCREATE__
|
|||
|
#define EXTERN
|
|||
|
#else
|
|||
|
#define EXTERN extern
|
|||
|
#endif /*__NPCCREATE__*/
|
|||
|
|
|||
|
|
|||
|
typedef enum
|
|||
|
{
|
|||
|
NPC_CREATEFLOORID, /* <20><EFBFBD>ʧID */
|
|||
|
NPC_CREATEBORNLEFTUPX, /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>X<EFBFBD><58> */
|
|||
|
NPC_CREATEBORNLEFTUPY, /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Y<EFBFBD><59> */
|
|||
|
NPC_CREATEBORNRIGHTDOWNX, /* <20><>Ʊ<EFBFBD><C6B1>X<EFBFBD><58> */
|
|||
|
NPC_CREATEBORNRIGHTDOWNY, /* <20><>Ʊ<EFBFBD><C6B1>Y<EFBFBD><59> */
|
|||
|
|
|||
|
NPC_CREATEMOVELEFTUPX, /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>X<EFBFBD><58> */
|
|||
|
NPC_CREATEMOVELEFTUPY, /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Y<EFBFBD><59> */
|
|||
|
NPC_CREATEMOVERIGHTDOWNX, /* <20><>Ʊ<EFBFBD><C6B1>X<EFBFBD><58> */
|
|||
|
NPC_CREATEMOVERIGHTDOWNY, /* <20><>Ʊ<EFBFBD><C6B1>Y<EFBFBD><59> */
|
|||
|
|
|||
|
NPC_CREATEDIR, /* <20><><EFBFBD><EFBFBD><EFBFBD>ݼ<EFBFBD> <20><> */
|
|||
|
NPC_CREATEBASEIMAGENUMBER, /* template <20><>ɬ<EFBFBD><C9AC>ë<EFBFBD><C3AB>̤<EFBFBD><CCA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD> į */
|
|||
|
NPC_CREATETIME, /* <20><><EFBFBD><EFBFBD> */
|
|||
|
NPC_CREATEBORNNUM, /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ؽ<EFBFBD><D8BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|||
|
|
|||
|
NPC_CREATEENEMYNUM, /* <20>ļ<EFBFBD><C4BC><EFBFBD> <20><> */
|
|||
|
NPC_CREATEBOUNDARY,
|
|||
|
NPC_CREATEDATE,
|
|||
|
NPC_CREATEIGNOREINVINCIBLE,
|
|||
|
NPC_CREATEFAMILY, // Robin 0731 Family
|
|||
|
#ifdef _ADD_ACTION //jeffrey 1231 npcaction
|
|||
|
NPC_CREATEACTION,
|
|||
|
#endif
|
|||
|
NPC_CREATEINTNUM,
|
|||
|
|
|||
|
}NPC_CREATEINT;
|
|||
|
|
|||
|
typedef enum
|
|||
|
{
|
|||
|
NPC_CREATENAME, /* templateë<65><C3AB>̤<EFBFBD><CCA4><EFBFBD><EFBFBD><EFBFBD>¾<EFBFBD><C2BE><EFBFBD><EFBFBD><EFBFBD>ľئ<C4BE><D8A6> <20><>*/
|
|||
|
NPC_CREATECHARNUM,
|
|||
|
}NPC_CREATECHAR;
|
|||
|
|
|||
|
|
|||
|
typedef enum
|
|||
|
{
|
|||
|
NPC_CREATEWORKENEMYNUM,
|
|||
|
NPC_CREATEWORKMAKESTARTSEC,
|
|||
|
NPC_CREATEWORKMAKESTARTUSEC,
|
|||
|
NPC_CREATEWORKNEVERMAKE,
|
|||
|
NPC_CREATEWORKNUM,
|
|||
|
|
|||
|
}NPC_CREATEWORK;
|
|||
|
|
|||
|
typedef struct tagNPC_Create
|
|||
|
{
|
|||
|
int intdata[NPC_CREATEINTNUM];
|
|||
|
STRING64 chardata[NPC_CREATECHARNUM];
|
|||
|
int workdata[NPC_CREATEWORKNUM];
|
|||
|
int templateindex[8];
|
|||
|
STRING64 arg[8];
|
|||
|
}NPC_Create;
|
|||
|
|
|||
|
|
|||
|
EXTERN NPC_Create* NPC_create;
|
|||
|
EXTERN int NPC_createnum;
|
|||
|
EXTERN int NPC_create_readindex;
|
|||
|
|
|||
|
INLINE int NPC_CHECKCREATEINDEX(int index);
|
|||
|
|
|||
|
BOOL NPC_isBoundarySet( int createindex );
|
|||
|
BOOL NPC_createGetRECT( int createindex,RECT* r );
|
|||
|
BOOL NPC_readNPCCreateFiles( char* topdirectory ,int createsize);
|
|||
|
int NPC_getCreateInt( int index , NPC_CREATEINT element );
|
|||
|
|
|||
|
BOOL NPC_createCheckGenerateFromTime( int tindex );
|
|||
|
void NPC_createInitTime( int index );
|
|||
|
void NPC_createIncreaseEnemynum( int index );
|
|||
|
void NPC_createDecreaseEnemynum( int index );
|
|||
|
BOOL NPC_createCheckMaxEnemynum( int index );
|
|||
|
|
|||
|
#endif
|
|||
|
/*__READNPCCREATE_H__*/
|