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
 
uint32 spawnId = 0
 
uint32 mapId = MAPID_INVALID
 
bool dbData = true
 
SpawnGroupTemplateData const * spawnGroupData = nullptr
 

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 74 of file SpawnData.h.

Constructor & Destructor Documentation

◆ SpawnMetadata()

SpawnMetadata::SpawnMetadata ( SpawnObjectType  t)
inlineprotected

Definition at line 91 of file SpawnData.h.

Member Function Documentation

◆ ToSpawnData()

SpawnData const * SpawnMetadata::ToSpawnData ( ) const
inline

Definition at line 82 of file SpawnData.h.

References type, and TypeHasData().

Referenced by list_commandscript::HandleListRespawnsCommand(), and Map::SpawnGroupSpawn().

◆ TypeHasData()

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

◆ TypeInMask()

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

Definition at line 76 of file SpawnData.h.

References type.

◆ TypeIsValid()

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

Definition at line 78 of file SpawnData.h.

References NUM_SPAWN_TYPES, and type.

Referenced by ObjectMgr::LoadSpawnGroups().

Member Data Documentation

◆ dbData

bool SpawnMetadata::dbData = true

◆ mapId

◆ spawnGroupData

◆ spawnId

◆ type

◆ TypeFor

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

Definition at line 80 of file SpawnData.h.


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