stoneage8.5/石器时代8.5客户端最新源代码/石器源码/systeminc/netproc.h

88 lines
2.0 KiB
C
Raw Normal View History

2020-06-22 17:49:02 +08:00
#ifndef _NETPROC_H_
#define _NETPROC_H_
#ifdef _THEATER
enum
{
2020-06-23 15:27:59 +08:00
E_DATA_TYPE_PLAYER, // <20><><EFBFBD><EFBFBD>
E_DATA_TYPE_TALK, // ̨<><CCA8>
E_DATA_TYPE_ASIDE, // <20>԰<EFBFBD>
E_DATA_TYPE_ACTION, // <20><><EFBFBD><EFBFBD>
E_DATA_TYPE_MOVE, // <20>ƶ<EFBFBD>
E_DATA_TYPE_SCENERY, // <20><><EFBFBD><EFBFBD>
E_DATA_TYPE_CHANGE, // <20><><EFBFBD><EFBFBD>
E_DATA_TYPE_DIR, // <20><><EFBFBD><EFBFBD>
E_DATA_TYPE_EFFECT, // <20><>Ч
E_DATA_TYPE_FACE, // <20><><EFBFBD><EFBFBD>
E_DATA_TYPE_NOTE, // ע<><D7A2>
E_DATA_TYPE_BGM, // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
2020-06-22 17:49:02 +08:00
E_DATA_TYPE_NPC, // NPC
E_DATA_TYPE_END
};
2020-06-23 15:27:59 +08:00
// lssproto_TheaterData_recv ʹ<><CAB9>
2020-06-22 17:49:02 +08:00
enum
{
2020-06-23 15:27:59 +08:00
E_THEATER_SEND_DATA_THEATER_MODE = E_DATA_TYPE_END + 1, // <20><>Ժģʽ <20><><EFBFBD><EFBFBD>: 0:ȡ<><C8A1><EFBFBD>糡ģʽ 1:<3A><><EFBFBD><EFBFBD> 2:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
E_THEATER_SEND_DATA_DISPLAY_SCORE, // <20><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD>
2020-06-22 17:49:02 +08:00
E_THEATER_SEND_DATA_END
};
#endif
extern short selectServerIndex;
extern short clientLoginStatus;
extern short charListStatus;
extern short charDelStatus;
#ifdef _NPC_MAGICCARD
extern bool bShowflag[20];
extern int iPosition[20];
extern int iShowdamage[20];
extern int iOffsetY[20];
extern int ioffsetsx;
extern int ioffsetsy;
extern unsigned int inextexet ;
#endif
extern char gamestate_chooseserver_name[];
extern char gamestate_login_charname[];
extern char gamestate_deletechar_charname[];
extern char netprocErrmsg[];
extern int connectServer2Counter;
/*
2020-06-23 15:27:59 +08:00
#ifdef _TELLCHANNEL // (<28><><EFBFBD>ɿ<EFBFBD>) ROG ADD <20><><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5>
2020-06-22 17:49:02 +08:00
extern char ReTellName[];
#endif
*/
void initConnectServer( void );
int ConnectWGS();
int connectServer( void );
void charListStart( void );
int charListProc( void );
void charLoginStart( void );
int charLoginProc( void );
void createNewCharStart( void );
int createNewCharProc( void );
void charLogoutStart( void );
int charLogoutProc( void );
void walkSendForServer( int, int, char * );
void noChecksumWalkSendForServer( int, int, char * );
void chatStrSendForServer( char *, int );
void delCharStart( void );
int delCharProc( void );
#ifdef _PK2007
void pkListStart( void );
int pkListProc( void );
#endif
#endif /* ifndef _NETPROC_H_ */