forked from metin2/server
Add project files.
This commit is contained in:
69
game/src/cmd.h
Normal file
69
game/src/cmd.h
Normal file
@ -0,0 +1,69 @@
|
||||
#ifndef __INC_METIN_II_GAME_CMD_H__
|
||||
#define __INC_METIN_II_GAME_CMD_H__
|
||||
|
||||
#define ACMD(name) void (name)(LPCHARACTER ch, const char *argument, int cmd, int subcmd)
|
||||
#define CMD_NAME(name) cmd_info[cmd].command
|
||||
|
||||
struct command_info
|
||||
{
|
||||
const char * command;
|
||||
void (*command_pointer) (LPCHARACTER ch, const char *argument, int cmd, int subcmd);
|
||||
int subcmd;
|
||||
int minimum_position;
|
||||
int gm_level;
|
||||
};
|
||||
|
||||
extern struct command_info cmd_info[];
|
||||
|
||||
extern void interpret_command(LPCHARACTER ch, const char * argument, size_t len);
|
||||
extern void interpreter_set_privilege(const char * cmd, int lvl);
|
||||
|
||||
enum SCMD_ACTION
|
||||
{
|
||||
SCMD_SLAP,
|
||||
SCMD_KISS,
|
||||
SCMD_FRENCH_KISS,
|
||||
SCMD_HUG,
|
||||
SCMD_LONG_HUG,
|
||||
SCMD_SHOLDER,
|
||||
SCMD_FOLD_ARM
|
||||
};
|
||||
|
||||
enum SCMD_CMD
|
||||
{
|
||||
SCMD_LOGOUT,
|
||||
SCMD_QUIT,
|
||||
SCMD_PHASE_SELECT,
|
||||
SCMD_SHUTDOWN,
|
||||
};
|
||||
|
||||
enum SCMD_RESTART
|
||||
{
|
||||
SCMD_RESTART_TOWN,
|
||||
SCMD_RESTART_HERE
|
||||
};
|
||||
|
||||
enum SCMD_XMAS
|
||||
{
|
||||
SCMD_XMAS_BOOM,
|
||||
SCMD_XMAS_SNOW,
|
||||
SCMD_XMAS_SANTA,
|
||||
};
|
||||
|
||||
extern void Shutdown(int iSec);
|
||||
extern void SendNotice(const char * c_pszBuf); // <20><> <20><><EFBFBD>Ӽ<EFBFBD><D3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
extern void SendLog(const char * c_pszBuf); // <20><EFBFBD>ڿ<EFBFBD><DABF>Ը<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
extern void BroadcastNotice(const char * c_pszBuf); // <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
extern void SendNoticeMap(const char* c_pszBuf, int nMapIndex, bool bBigFont); // <20><><EFBFBD><EFBFBD> <20>ʿ<EFBFBD><CABF><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
extern void SendMonarchNotice(BYTE bEmpire, const char * c_pszBuf); // <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
// LUA_ADD_BGM_INFO
|
||||
void CHARACTER_SetBGMVolumeEnable();
|
||||
void CHARACTER_AddBGMInfo(unsigned mapIndex, const char* name, float vol);
|
||||
// END_OF_LUA_ADD_BGM_INFO
|
||||
|
||||
// LUA_ADD_GOTO_INFO
|
||||
extern void CHARACTER_AddGotoInfo(const std::string& c_st_name, BYTE empire, int mapIndex, DWORD x, DWORD y);
|
||||
// END_OF_LUA_ADD_GOTO_INFO
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user