TrinityCore
Loading...
Searching...
No Matches
SpawnMetadata Struct Reference

#include <SpawnData.h>

+ Inheritance diagram for SpawnMetadata:

Public Member Functions

SpawnData const * ToSpawnData () const
 

Static Public Member Functions

static constexpr bool TypeInMask (SpawnObjectType type, SpawnObjectTypeMask mask)
 
static constexpr bool TypeHasData (SpawnObjectType type)
 
static constexpr bool TypeIsValid (SpawnObjectType type)
 

Public Attributes

SpawnObjectType const type
 
uint64 spawnId = 0
 
uint32 mapId = MAPID_INVALID
 
bool dbData = true
 
SpawnGroupTemplateData const * spawnGroupData = nullptr
 
SpawnTrackingTemplateData const * spawnTrackingData = nullptr
 
std::vector< uint32 > spawnTrackingQuestObjectives
 
std::array< SpawnTrackingStateData, size_t(SpawnTrackingState::Max)> spawnTrackingStates
 

Static Public Attributes

template<typename T >
static constexpr SpawnObjectType TypeFor = Trinity::Impl::SpawnObjectTypeForImpl<T>::value
 

Protected Member Functions

 SpawnMetadata (SpawnObjectType t)
 

Detailed Description

Definition at line 110 of file SpawnData.h.

Constructor & Destructor Documentation

◆ SpawnMetadata()

SpawnMetadata::SpawnMetadata ( SpawnObjectType  t)
inlineprotected

Definition at line 130 of file SpawnData.h.

Member Function Documentation

◆ ToSpawnData()

◆ TypeHasData()

static constexpr bool SpawnMetadata::TypeHasData ( SpawnObjectType  type)
inlinestaticconstexpr

◆ TypeInMask()

static constexpr bool SpawnMetadata::TypeInMask ( SpawnObjectType  type,
SpawnObjectTypeMask  mask 
)
inlinestaticconstexpr

Definition at line 112 of file SpawnData.h.

References type.

◆ TypeIsValid()

static constexpr bool SpawnMetadata::TypeIsValid ( SpawnObjectType  type)
inlinestaticconstexpr

Member Data Documentation

◆ dbData

bool SpawnMetadata::dbData = true

Definition at line 123 of file SpawnData.h.

Referenced by Creature::SaveRespawnTime().

◆ mapId

◆ spawnGroupData

◆ spawnId

◆ spawnTrackingData

◆ spawnTrackingQuestObjectives

std::vector<uint32> SpawnMetadata::spawnTrackingQuestObjectives

◆ spawnTrackingStates

std::array<SpawnTrackingStateData, size_t(SpawnTrackingState::Max)> SpawnMetadata::spawnTrackingStates

Definition at line 127 of file SpawnData.h.

Referenced by Player::UpdateQuestObjectiveProgress().

◆ type

◆ TypeFor

template<typename T >
constexpr SpawnObjectType SpawnMetadata::TypeFor = Trinity::Impl::SpawnObjectTypeForImpl<T>::value
staticconstexpr

Definition at line 116 of file SpawnData.h.


The documentation for this struct was generated from the following file: