fix(Scripts/Player): some refactor related to PlayerCommand functions (#8975)

This commit is contained in:
Andrius Peleckas
2021-11-05 18:22:39 +02:00
committed by GitHub
parent 6cac04d990
commit a6340d5b11
4 changed files with 23 additions and 30 deletions

View File

@@ -15,19 +15,19 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _PLAYER_COMMAND_H_
#define _PLAYER_COMMAND_H_
#ifndef _PLAYER_COMMAND_H
#define _PLAYER_COMMAND_H
#include "Chat.h"
#include "Player.h"
#include "Define.h"
class ChatHandler;
class Player;
class PlayerCommand
namespace Acore
{
public:
static bool Learn(ChatHandler* handler, Player* targetPlayer, uint32 spell, char const* all);
static bool UnLearn(ChatHandler* handler, Player* targetPlayer, uint32 spell, char const* all);
// Used in player/character commands
namespace PlayerCommand
{
bool HandleLearnSpellCommand(ChatHandler* handler, Player* targetPlayer, uint32 spell, char const* all);
bool HandleUnlearnSpellCommand(ChatHandler* handler, Player* targetPlayer, uint32 spell, char const* all);
};
};
#endif
#endif // _PLAYER_COMMAND_H