diff --git a/server/gameserver/debugcmd.cc b/server/gameserver/debugcmd.cc new file mode 100644 index 00000000..91c203bc --- /dev/null +++ b/server/gameserver/debugcmd.cc @@ -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 diff --git a/server/gameserver/debugcmd.h b/server/gameserver/debugcmd.h new file mode 100644 index 00000000..53d5af90 --- /dev/null +++ b/server/gameserver/debugcmd.h @@ -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