mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-26 23:16:23 +00:00
Run clang-format
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version.
|
||||
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it
|
||||
* and/or modify it under version 2 of the License, or (at your option), any later version.
|
||||
*/
|
||||
|
||||
#ifndef _PLAYERBOT_MAILACTION_H
|
||||
@@ -14,26 +15,26 @@ struct Mail;
|
||||
|
||||
class MailProcessor
|
||||
{
|
||||
public:
|
||||
virtual bool Before([[maybe_unused]] PlayerbotAI* botAI) { return true; }
|
||||
virtual bool Process(uint32 index, Mail* mail, PlayerbotAI* botAI) = 0;
|
||||
virtual bool After([[maybe_unused]] PlayerbotAI* botAI) { return true; }
|
||||
public:
|
||||
virtual bool Before([[maybe_unused]] PlayerbotAI* botAI) { return true; }
|
||||
virtual bool Process(uint32 index, Mail* mail, PlayerbotAI* botAI) = 0;
|
||||
virtual bool After([[maybe_unused]] PlayerbotAI* botAI) { return true; }
|
||||
|
||||
static ObjectGuid FindMailbox(PlayerbotAI* botAI);
|
||||
static ObjectGuid FindMailbox(PlayerbotAI* botAI);
|
||||
|
||||
protected:
|
||||
void RemoveMail(Player* bot, uint32 id, ObjectGuid mailbox);
|
||||
protected:
|
||||
void RemoveMail(Player* bot, uint32 id, ObjectGuid mailbox);
|
||||
};
|
||||
|
||||
class MailAction : public InventoryAction
|
||||
{
|
||||
public:
|
||||
MailAction(PlayerbotAI* botAI) : InventoryAction(botAI, "mail") { }
|
||||
public:
|
||||
MailAction(PlayerbotAI* botAI) : InventoryAction(botAI, "mail") {}
|
||||
|
||||
bool Execute(Event event) override;
|
||||
bool Execute(Event event) override;
|
||||
|
||||
private:
|
||||
static std::map<std::string, MailProcessor*> processors;
|
||||
private:
|
||||
static std::map<std::string, MailProcessor*> processors;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user