![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Manages the ServerMail operations, including template loading, condition checking, and mail delivery. More...
Go to the source code of this file.
Classes | |
struct | ServerMailCondition |
Represents a condition that must be met for a player to receive a server mail. More... | |
struct | ServerMailItems |
Represents an item reward associated with a server mail template. More... | |
struct | ServerMail |
Represents a server mail template, including rewards, conditions, and metadata. More... | |
class | ServerMailMgr |
Macros | |
#define | sServerMailMgr ServerMailMgr::instance() |
Typedefs | |
typedef std::unordered_map< uint32, ServerMail > | ServerMailContainer |
Enumerations | |
enum class | ServerMailConditionType : uint8 { Invalid = 0 , Level = 1 , PlayTime = 2 , Quest = 3 , Achievement = 4 , Reputation = 5 , Faction = 6 , Race = 7 , Class = 8 } |
Represents the type of conditions that can be applied to server mail. More... | |
Variables | |
constexpr std::pair< std::string_view, ServerMailConditionType > | ServerMailConditionTypePairs [] |
Assign string condition to corresponding ServerMailConditionType enum value. | |
Manages the ServerMail operations, including template loading, condition checking, and mail delivery.
This class handles the loading of server mail templates, associated items, and conditions from the database. It also provides functionality to check player eligibility for receiving server mails based on configured conditions.
Key features:
mail_server_template_items
mail_server_template_conditions
Definition in file ServerMailMgr.h.
#define sServerMailMgr ServerMailMgr::instance() |
typedef std::unordered_map<uint32, ServerMail> ServerMailContainer |
|
strong |
Represents the type of conditions that can be applied to server mail.
|
constexpr |
Assign string condition to corresponding ServerMailConditionType enum value.
Referenced by ServerMailMgr::GetServerMailConditionType().