Subversion Repositories WoWGM

Rev

Rev 3 | Rev 26 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 tristanc 1
#include "pch.h"
2
#pragma hdrstop
6 tristanc 3
 
4
#include "ClientGMCommands.h"
5
 
6
#include <Console/ConsoleClient.h>
7
#include <WowSvcs/ClientServices.h>
8
 
9
/****************************************************************************
10
*
11
*	Command definitions
12
*
13
***/
14
 
15
//===========================================================================
16
BOOL CCommand_GMResurrect(const char *command, const char *arguments)
17
{
18
	if (command && *command) {
19
		CDataStore msg;
20
		msg.Put(CMSG_GM_RESURRECT);
21
		msg.PutString(arguments);
22
		msg.Finalize();
23
		ClientServices_Send(&msg);
24
	} else {
25
		ConsoleWrite("Expected a player name", DEFAULT_COLOR);
26
	}
27
	return TRUE;
28
}
29
 
30
 
31
/****************************************************************************
32
*
33
*	External functions
34
*
35
***/
36
 
37
//===========================================================================
38
void GMClientCommands::Install()
39
{
40
	ConsoleCommandRegister("resurrect",CCommand_GMResurrect,DEBUG,NOHELP);
41
}
42
 
43
//===========================================================================
44
void GMClientCommands::Uninstall()
45
{
46
	ConsoleCommandUnregister("resurrect");
47
}