TrinityCore
|
#include <GossipDef.h>
Public Member Functions | |||||||||
GossipMenu () | |||||||||
GossipMenu (GossipMenu const &)=delete | |||||||||
GossipMenu (GossipMenu &&)=delete | |||||||||
GossipMenu & | operator= (GossipMenu const &)=delete | ||||||||
GossipMenu & | operator= (GossipMenu &&)=delete | ||||||||
~GossipMenu () | |||||||||
uint32 | AddMenuItem (int32 gossipOptionId, int32 orderIndex, GossipOptionNpc optionNpc, std::string optionText, uint32 language, GossipOptionFlags flags, Optional< int32 > gossipNpcOptionId, uint32 actionMenuId, uint32 actionPoiId, bool boxCoded, uint32 boxMoney, std::string boxText, Optional< int32 > spellId, Optional< int32 > overrideIconId, uint32 sender, uint32 action) | ||||||||
void | SetMenuId (uint32 menu_id) | ||||||||
uint32 | GetMenuId () const | ||||||||
void | SetLocale (LocaleConstant locale) | ||||||||
LocaleConstant | GetLocale () const | ||||||||
uint32 | GetMenuItemCount () const | ||||||||
bool | Empty () const | ||||||||
GossipMenuItemContainer const & | GetMenuItems () const | ||||||||
AddMenuItem | |||||||||
Adds a localized gossip menu item from db by menu id and menu item id.
| |||||||||
void | AddMenuItem (uint32 menuId, uint32 menuItemId, uint32 sender, uint32 action) | ||||||||
void | AddMenuItem (GossipMenuItems const &menuItem, uint32 sender, uint32 action) | ||||||||
GossipMenuItem const * | GetItem (int32 gossipOptionId) const | ||||||||
GossipMenuItem const * | GetItemByIndex (uint32 orderIndex) const | ||||||||
uint32 | GetMenuItemSender (uint32 orderIndex) const | ||||||||
uint32 | GetMenuItemAction (uint32 orderIndex) const | ||||||||
bool | IsMenuItemCoded (uint32 orderIndex) const | ||||||||
void | ClearMenu () | ||||||||
Private Attributes | |
GossipMenuItemContainer | _menuItems |
uint32 | _menuId |
LocaleConstant | _locale |
Definition at line 154 of file GossipDef.h.
GossipMenu::GossipMenu | ( | ) |
Definition at line 35 of file GossipDef.cpp.
|
delete |
|
delete |
|
default |
void GossipMenu::AddMenuItem | ( | GossipMenuItems const & | menuItem, |
uint32 | sender, | ||
uint32 | action | ||
) |
Store texts for localization.
OptionText
Find localizations from database.
BoxText
Find localizations from database.
Definition at line 130 of file GossipDef.cpp.
uint32 GossipMenu::AddMenuItem | ( | int32 | gossipOptionId, |
int32 | orderIndex, | ||
GossipOptionNpc | optionNpc, | ||
std::string | optionText, | ||
uint32 | language, | ||
GossipOptionFlags | flags, | ||
Optional< int32 > | gossipNpcOptionId, | ||
uint32 | actionMenuId, | ||
uint32 | actionPoiId, | ||
bool | boxCoded, | ||
uint32 | boxMoney, | ||
std::string | boxText, | ||
Optional< int32 > | spellId, | ||
Optional< int32 > | overrideIconId, | ||
uint32 | sender, | ||
uint32 | action | ||
) |
Definition at line 43 of file GossipDef.cpp.
Find items for given menu id.
Find the one with the given menu item id.
Definition at line 113 of file GossipDef.cpp.
void GossipMenu::ClearMenu | ( | ) |
|
inline |
Definition at line 180 of file GossipDef.h.
GossipMenuItem const * GossipMenu::GetItem | ( | int32 | gossipOptionId | ) | const |
GossipMenuItem const * GossipMenu::GetItemByIndex | ( | uint32 | orderIndex | ) | const |
|
inline |
|
inline |
|
inline |
Definition at line 175 of file GossipDef.h.
|
inline |
bool GossipMenu::IsMenuItemCoded | ( | uint32 | orderIndex | ) | const |
|
delete |
|
delete |
|
inline |
|
inline |
Definition at line 170 of file GossipDef.h.
|
private |
Definition at line 202 of file GossipDef.h.
|
private |
Definition at line 201 of file GossipDef.h.
|
private |
Definition at line 200 of file GossipDef.h.