46 lines
1.5 KiB
C
46 lines
1.5 KiB
C
![]() |
#ifndef __ADDRESSBOOK_H__
|
|||
|
#define __ADDRESSBOOK_H__
|
|||
|
|
|||
|
#include "common.h"
|
|||
|
#include "util.h"
|
|||
|
#include "net.h"
|
|||
|
|
|||
|
#define ADDRESSBOOK_MAX 40
|
|||
|
|
|||
|
typedef struct
|
|||
|
{
|
|||
|
int use;
|
|||
|
BOOL online; /* <20><><EFBFBD><EFBFBD>ƽ<EFBFBD>ҷ»<D2B7><C2BB>ӡ<EFBFBD><D3A1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>TRUE,
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƥئ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>FALSE */
|
|||
|
int level; /* <20><><EFBFBD><EFBFBD>ƽ<EFBFBD>ҷ¼<D2B7><C2BC><EFBFBD>ì<EFBFBD><C3AC> */
|
|||
|
int duelpoint; /* duelpoint*/
|
|||
|
int graphicsno; /* <20><><EFBFBD><EFBFBD>ƽ<EFBFBD>ҷ¼<D2B7> <20><> į */
|
|||
|
char cdkey[CDKEYLEN]; /* CD <20>ϼ<EFBFBD><CFBC><EFBFBD><EFBFBD><EFBFBD> */
|
|||
|
char charname[CHARNAMELEN]; /* <20><><EFBFBD><EFBFBD>ƽ<EFBFBD>ҷ¼<D2B7> <20><> */
|
|||
|
int transmigration; /* <20><>Ϸ<EFBFBD><CFB7><EFBFBD><EFBFBD> */
|
|||
|
|
|||
|
} ADDRESSBOOK_entry;
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
char *ADDRESSBOOK_makeAddressbookString( ADDRESSBOOK_entry *a );
|
|||
|
BOOL ADDRESSBOOK_makeAddressbookEntry( char *in , ADDRESSBOOK_entry *a );
|
|||
|
BOOL ADDRESSBOOK_deleteEntry( int meindex ,int index );
|
|||
|
BOOL ADDRESSBOOK_addEntry( int meindex );
|
|||
|
BOOL ADDRESSBOOK_sendAddressbookTable( int cindex );
|
|||
|
BOOL ADDRESSBOOK_sendAddressbookTableOne( int cindex, int num );
|
|||
|
BOOL ADDRESSBOOK_sendMessage( int cindex, int aindex , char *text ,
|
|||
|
int color );
|
|||
|
BOOL ADDRESSBOOK_sendMessage_FromOther( char *fromcdkey, char *fromcharaname,
|
|||
|
char *tocdkey, char *tocharaname,
|
|||
|
char* text , int color );
|
|||
|
|
|||
|
void ADDRESSBOOK_notifyLoginLogout( int cindex , int flg );
|
|||
|
void ADDRESSBOOK_addAddressBook( int meindex, int toindex);
|
|||
|
void ADDRESSBOOK_DispatchMessage( char *cd, char *nm, char *value, int mode);
|
|||
|
int ADDRESSBOOK_getIndexInAddressbook(int cindex , char *cdkey, char *charname);
|
|||
|
BOOL ADDRESSBOOK_AutoaddAddressBook( int meindex, int toindex);
|
|||
|
|
|||
|
#endif
|