chuyiwen_gmsv/include/npccreate.h
2017-01-14 00:37:03 +09:00

94 lines
2.5 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, /* 白夫失ID */
NPC_CREATEBORNLEFTUPX, /* 尔晓及X甄 */
NPC_CREATEBORNLEFTUPY, /* 尔晓及Y甄 */
NPC_CREATEBORNRIGHTDOWNX, /* 惘票及X甄 */
NPC_CREATEBORNRIGHTDOWNY, /* 惘票及Y甄 */
NPC_CREATEMOVELEFTUPX, /* 尔晓及X甄 */
NPC_CREATEMOVELEFTUPY, /* 尔晓及Y甄 */
NPC_CREATEMOVERIGHTDOWNX, /* 惘票及X甄 */
NPC_CREATEMOVERIGHTDOWNY, /* 惘票及Y甄 */
NPC_CREATEDIR, /* 综月凛及 轾 */
NPC_CREATEBASEIMAGENUMBER, /* template 及涩烂毛晓踏五允月
飓 寞 */
NPC_CREATETIME, /* 凛棉 */
NPC_CREATEBORNNUM, /* 公及哗 卞请蜇今六月醒 */
NPC_CREATEENEMYNUM, /* 衬及潘 醒 */
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毛晓踏五允月井手仄木卅中 蟆*/
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__*/