TrinityCore
Loading...
Searching...
No Matches
PlayerChoiceData Class Reference

#include <GossipDef.h>

Classes

struct  Response
 

Public Member Functions

 PlayerChoiceData ()=default
 
 PlayerChoiceData (uint32 choiceId)
 
uint32 GetChoiceId () const
 
void SetChoiceId (uint32 choiceId)
 
Optional< SystemTimePointGetExpireTime () const
 
void SetExpireTime (Optional< SystemTimePoint > expireTime)
 
AddMenuItem

Adds a localized gossip menu item from db by menu id and menu item id.

Parameters
menuIdGossip menu id.
menuItemIdGossip menu item id.
senderIdentifier of the current menu.
actionCustom action given to OnGossipHello.
Optional< uint32FindIdByClientIdentifier (uint16 clientIdentifier) const
 
void AddResponse (uint32 id, uint16 clientIdentifier)
 

Private Attributes

uint32 _choiceId = 0
 
std::vector< Response_responses
 
Optional< SystemTimePoint_expireTime
 

Detailed Description

Definition at line 239 of file GossipDef.h.

Constructor & Destructor Documentation

◆ PlayerChoiceData() [1/2]

PlayerChoiceData::PlayerChoiceData ( )
default

◆ PlayerChoiceData() [2/2]

PlayerChoiceData::PlayerChoiceData ( uint32  choiceId)
inlineexplicit

Definition at line 243 of file GossipDef.h.

Member Function Documentation

◆ AddResponse()

void PlayerChoiceData::AddResponse ( uint32  id,
uint16  clientIdentifier 
)

Definition at line 361 of file GossipDef.cpp.

◆ FindIdByClientIdentifier()

Optional< uint32 > PlayerChoiceData::FindIdByClientIdentifier ( uint16  clientIdentifier) const

Definition at line 355 of file GossipDef.cpp.

+ Here is the caller graph for this function:

◆ GetChoiceId()

uint32 PlayerChoiceData::GetChoiceId ( ) const
inline

Definition at line 245 of file GossipDef.h.

+ Here is the caller graph for this function:

◆ GetExpireTime()

Optional< SystemTimePoint > PlayerChoiceData::GetExpireTime ( ) const
inline

Definition at line 251 of file GossipDef.h.

+ Here is the caller graph for this function:

◆ SetChoiceId()

void PlayerChoiceData::SetChoiceId ( uint32  choiceId)
inline

Definition at line 246 of file GossipDef.h.

◆ SetExpireTime()

void PlayerChoiceData::SetExpireTime ( Optional< SystemTimePoint expireTime)
inline

Definition at line 252 of file GossipDef.h.

Member Data Documentation

◆ _choiceId

uint32 PlayerChoiceData::_choiceId = 0
private

Definition at line 261 of file GossipDef.h.

◆ _expireTime

Optional<SystemTimePoint> PlayerChoiceData::_expireTime
private

Definition at line 263 of file GossipDef.h.

◆ _responses

std::vector<Response> PlayerChoiceData::_responses
private

Definition at line 262 of file GossipDef.h.


The documentation for this class was generated from the following files: