StoneAge/saac/defend.h

54 lines
1.3 KiB
C
Raw Normal View History

2018-08-07 15:51:35 +08:00
#ifndef __DEFEND_H__
#define __DEFEND_H__
#include "version.h"
#ifdef _DEFEND_NEWUSERS
#define DEFEND_MAXLISTS 20
#define DEFEND_SCOREMAXLISTS 200
typedef struct _tagDefendArrayList
{
char cdkey[256]; //<2F>ʺ<EFBFBD>
char name[256]; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int defnums; //<2F><><EFBFBD><EFBFBD>
int type; //״̬
int score; //<2F><><EFBFBD><EFBFBD>
int use; //ʹ<><CAB9>
}DefendArrayList;
typedef struct _tagScoreArrayList
{
char cdkey[256]; //<2F>ʺ<EFBFBD>
char name[256]; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
char fromname[256];
int score; //<2F><><EFBFBD><EFBFBD>
int use; //ʹ<><CAB9>
}ScoreArrayList;
void DEFEND_InitList();
int DEFEND_getUse( int si);
int DEFEND_setUse( int si, int num);
void DEFEND_resetUserForList();
int DEFEND_addUserForList( char *cdkey, char *name, int score, int nums, int type);
void DEFEND_LoadUserForList( char *listarg);
void DEFEND_ReadUserForList( char *filename);
void DEFEND_ShowUserLists();
void DEFEND_SendToUserLists();
void DEFEND_backupUseLists( char *filename);
void DEFEND_resetScoreForList( void);
void DEFEND_LoadScoreForList( char *listarg);
int DEFEND_addScoreForList( char *cdkey, char *name, int score, char *fromname );
int DEFEND_getScoreUse( int si);
void DEFEND_ReadScoreForList( char *filename);
void DEFEND_backupScoreLists( char *filename);
void DEFEND_ShowScoreLists( void);
void DEFEND_CheckScoreForList( int fd, int userindex, char *cdkey, char *name);
#endif
#endif