AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
GameEventData Struct Reference

#include "GameEventMgr.h"

Public Member Functions

 GameEventData ()=default
 
bool isValid () const
 

Public Attributes

uint32 eventId
 
time_t start {1}
 
time_t end {0}
 
time_t nextstart {0}
 
uint32 occurence {0}
 
uint32 length {0}
 
HolidayIds holiday_id {HOLIDAY_NONE}
 
uint8 holidayStage
 
GameEventState state {GAMEEVENT_NORMAL}
 
GameEventConditionMap conditions
 
std::set< uint16prerequisite_events
 
std::string description
 
uint8 announce
 

Detailed Description

Constructor & Destructor Documentation

◆ GameEventData()

GameEventData::GameEventData ( )
default

Member Function Documentation

◆ isValid()

bool GameEventData::isValid ( ) const
inline
73{ return length > 0 || state > GAMEEVENT_NORMAL; }
@ GAMEEVENT_NORMAL
Definition: GameEventMgr.h:31
GameEventState state
Definition: GameEventMgr.h:67
uint32 length
Definition: GameEventMgr.h:64

References GAMEEVENT_NORMAL, length, and state.

Referenced by event_commandscript::HandleEventInfoCommand(), event_commandscript::HandleEventStartCommand(), event_commandscript::HandleEventStopCommand(), and SmartAIMgr::IsEventValid().

Member Data Documentation

◆ announce

uint8 GameEventData::announce

◆ conditions

GameEventConditionMap GameEventData::conditions

Referenced by GameEventMgr::StopEvent().

◆ description

◆ end

◆ eventId

uint32 GameEventData::eventId

◆ holiday_id

◆ holidayStage

uint8 GameEventData::holidayStage

◆ length

◆ nextstart

time_t GameEventData::nextstart {0}

◆ occurence

uint32 GameEventData::occurence {0}

◆ prerequisite_events

std::set<uint16 > GameEventData::prerequisite_events

◆ start

◆ state