1
This commit is contained in:
parent
c3fcd9aca4
commit
deff3d58f4
20
server/gameserver/debugcmd.cc
Normal file
20
server/gameserver/debugcmd.cc
Normal file
@ -0,0 +1,20 @@
|
||||
#ifdef DEBUG
|
||||
#include "precompile.h"
|
||||
|
||||
#include "debugcmd.h"
|
||||
#include "cs_proto.pb.h"
|
||||
#include "player.h"
|
||||
|
||||
void DebugCmd::CreateSphere(Creature* c, float x, float y, float z)
|
||||
{
|
||||
if (c->IsPlayer()) {
|
||||
cs::SMDebugCmd msg;
|
||||
msg.set_cmd("create_sphere");
|
||||
msg.add_params(x);
|
||||
msg.add_params(y);
|
||||
msg.add_params(z);
|
||||
c->AsPlayer()->SendNotifyMsg(msg);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
14
server/gameserver/debugcmd.h
Normal file
14
server/gameserver/debugcmd.h
Normal file
@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
class Creature;
|
||||
class DebugCmd
|
||||
{
|
||||
public:
|
||||
|
||||
static void CreateSphere(Creature* c, float x, float y, float z);
|
||||
|
||||
};
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user