This commit is contained in:
aozhiwei 2023-02-07 14:33:01 +08:00
parent c3fcd9aca4
commit deff3d58f4
2 changed files with 34 additions and 0 deletions

View 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

View 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