Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
DB2Stores.cpp File Reference
#include "BattlePet.h"
#include "Common.h"
#include "DB2fmt.h"
#include "DB2Stores.h"
#include "DB2Utility.h"
#include "DBCStores.h"
#include "Log.h"
#include "World.h"
Include dependency graph for DB2Stores.cpp:

Go to the source code of this file.

Macros

#define BATTLE_PET_MAIN_STAT_DIV   200.0f
#define BATTLE_PET_MAIN_STAT_OFFSET   1600.0f
#define BATTLE_PET_MAIN_STAT_VALUE   8.0f

Typedefs

typedef std::map< uint32, DB2StorageBase * > DB2StorageMap
typedef std::list< std::string > DB2StoreProblemList

Functions

float BattlePetBreedMainStatModifier (uint16 stateId, uint8 breedId)
uint32 BattlePetGetSpeciesAbility (uint16 speciesId, uint8 abilitySlot, uint16 flags, uint8 level)
uint32 BattlePetGetSummonSpell (uint16 speciesId)
bool BattlePetHasSpeciesAbility (uint16 speciesId, uint8 abilitySlot, bool alternateAbility, uint8 level)
float BattlePetQualityMultiplier (uint8 quality)
bool BattlePetSpeciesHasFlag (uint16 speciesId, uint16 flag)
float BattlePetSpeciesMainStat (uint16 stateId, uint16 speciesId)
DB2StorageBase const * GetDB2Storage (uint32 type)
template<class T>
void LoadDB2 (uint32 &availableDb2Locales, DB2StoreProblemList &errlist, DB2Storage< T > &storage, std::string const &db2_path, std::string const &filename)
static bool LoadDB2_assert_print (uint32 fsize, uint32 rsize, std::string const &filename)
void LoadDB2Stores (std::string const &dataPath)

Variables

uint32 DB2FilesCount = 0
DB2StorageMap DB2Stores
BattlePetAbilityEffectByTurnStore sBattlePetAbilityEffectByTurnStore
DB2Storage< BattlePetAbilityEffectEntrysBattlePetAbilityEffectStore (BattlePetAbilityEffectfmt)
DB2Storage< BattlePetAbilityStateEntrysBattlePetAbilityStateStore (BattlePetAbilityStatefmt)
DB2Storage< BattlePetAbilityEntrysBattlePetAbilityStore (BattlePetAbilityfmt)
BattlePetAbilityTurnByAbilityStore sBattlePetAbilityTurnByAbilityStore
DB2Storage< BattlePetAbilityTurnEntrysBattlePetAbilityTurnStore (BattlePetAbilityTurnfmt)
DB2Storage< BattlePetBreedQualityEntrysBattlePetBreedQualityStore (BattlePetBreedQualityfmt)
BattlePetBreedSet sBattlePetBreedSet
DB2Storage< BattlePetBreedStateEntrysBattlePetBreedStateStore (BattlePetBreedStatefmt)
DB2Storage< BattlePetEffectPropertiesEntrysBattlePetEffectPropertiesStore (BattlePetEffectPropertiesfmt)
BattlePetItemXSpeciesStore sBattlePetItemXSpeciesStore
BattlePetQualityMultiplierStore sBattlePetQualityMultiplierStore
DB2Storage< BattlePetSpeciesStateEntrysBattlePetSpeciesStateStore (BattlePetSpeciesStatefmt)
DB2Storage< BattlePetSpeciesEntrysBattlePetSpeciesStore (BattlePetSpeciesfmt)
BattlePetSpeciesXAbilityBySpeciesStore sBattlePetSpeciesXAbilityBySpeciesStore
DB2Storage< BattlePetSpeciesXAbilityEntrysBattlePetSpeciesXAbilityStore (BattlePetSpeciesXAbilityfmt)
DB2Storage< BattlePetStateEntrysBattlePetStateStore (BattlePetStatefmt)
DB2Storage< BroadcastTextEntrysBroadcastTextStore (BroadcastTextfmt)
DB2Storage< ItemCurrencyCostEntrysItemCurrencyCostStore (ItemCurrencyCostfmt)
DB2Storage< ItemExtendedCostEntrysItemExtendedCostStore (ItemExtendedCostEntryfmt)
DB2Storage< ItemSparseEntrysItemSparseStore (ItemSparsefmt, &DB2Utilities::HasItemSparseEntry, &DB2Utilities::WriteItemSparseDbReply)
DB2Storage< ItemEntrysItemStore (Itemfmt, &DB2Utilities::HasItemEntry, &DB2Utilities::WriteItemDbReply)
DB2Storage< ItemToBattlePetEntrysItemToBattlePetStore (ItemToBattlePetfmt)
DB2Storage< KeyChainEntrysKeyChainStore (KeyChainfmt)
DB2Storage< SceneScriptPackageEntrysSceneScriptPackageStore (SceneScriptPackagefmt)
DB2Storage< SpellReagentsEntrysSpellReagentsStore (SpellReagentsfmt)

Macro Definition Documentation

◆ BATTLE_PET_MAIN_STAT_DIV

#define BATTLE_PET_MAIN_STAT_DIV   200.0f

Definition at line 228 of file DB2Stores.cpp.

Referenced by BattlePetBreedMainStatModifier(), and BattlePetSpeciesMainStat().

◆ BATTLE_PET_MAIN_STAT_OFFSET

#define BATTLE_PET_MAIN_STAT_OFFSET   1600.0f

Definition at line 229 of file DB2Stores.cpp.

Referenced by BattlePetBreedMainStatModifier().

◆ BATTLE_PET_MAIN_STAT_VALUE

#define BATTLE_PET_MAIN_STAT_VALUE   8.0f

Definition at line 227 of file DB2Stores.cpp.

Referenced by BattlePetSpeciesMainStat().

Typedef Documentation

◆ DB2StorageMap

typedef std::map<uint32 , DB2StorageBase*> DB2StorageMap

Definition at line 56 of file DB2Stores.cpp.

◆ DB2StoreProblemList

typedef std::list<std::string> DB2StoreProblemList

Definition at line 54 of file DB2Stores.cpp.

Function Documentation

◆ BattlePetBreedMainStatModifier()

◆ BattlePetGetSpeciesAbility()

◆ BattlePetGetSummonSpell()

◆ BattlePetHasSpeciesAbility()

◆ BattlePetQualityMultiplier()

◆ BattlePetSpeciesHasFlag()

◆ BattlePetSpeciesMainStat()

◆ GetDB2Storage()

DB2StorageBase const * GetDB2Storage ( uint32 type)

Definition at line 218 of file DB2Stores.cpp.

References DB2Stores.

Referenced by WorldSession::HandleRequestHotfix().

◆ LoadDB2()

template<class T>
void LoadDB2 ( uint32 & availableDb2Locales,
DB2StoreProblemList & errlist,
DB2Storage< T > & storage,
std::string const & db2_path,
std::string const & filename )
inline

◆ LoadDB2_assert_print()

bool LoadDB2_assert_print ( uint32 fsize,
uint32 rsize,
std::string const & filename )
static

Definition at line 61 of file DB2Stores.cpp.

References SF_LOG_ERROR.

Referenced by LoadDB2().

◆ LoadDB2Stores()

Variable Documentation

◆ DB2FilesCount

uint32 DB2FilesCount = 0

Definition at line 59 of file DB2Stores.cpp.

Referenced by LoadDB2(), and LoadDB2Stores().

◆ DB2Stores

DB2StorageMap DB2Stores

Definition at line 57 of file DB2Stores.cpp.

Referenced by GetDB2Storage(), and LoadDB2().

◆ sBattlePetAbilityEffectByTurnStore

BattlePetAbilityEffectByTurnStore sBattlePetAbilityEffectByTurnStore

Definition at line 50 of file DB2Stores.cpp.

Referenced by LoadDB2Stores().

◆ sBattlePetAbilityEffectStore

◆ sBattlePetAbilityStateStore

◆ sBattlePetAbilityStore

◆ sBattlePetAbilityTurnByAbilityStore

BattlePetAbilityTurnByAbilityStore sBattlePetAbilityTurnByAbilityStore

Definition at line 49 of file DB2Stores.cpp.

Referenced by BattlePetAbilityEffectForAbility(), and LoadDB2Stores().

◆ sBattlePetAbilityTurnStore

◆ sBattlePetBreedQualityStore

◆ sBattlePetBreedSet

◆ sBattlePetBreedStateStore

◆ sBattlePetEffectPropertiesStore

◆ sBattlePetItemXSpeciesStore

◆ sBattlePetQualityMultiplierStore

BattlePetQualityMultiplierStore sBattlePetQualityMultiplierStore

Definition at line 51 of file DB2Stores.cpp.

Referenced by BattlePetQualityMultiplier(), and LoadDB2Stores().

◆ sBattlePetSpeciesStateStore

◆ sBattlePetSpeciesStore

◆ sBattlePetSpeciesXAbilityBySpeciesStore

BattlePetSpeciesXAbilityBySpeciesStore sBattlePetSpeciesXAbilityBySpeciesStore

◆ sBattlePetSpeciesXAbilityStore

◆ sBattlePetStateStore

◆ sBroadcastTextStore

◆ sItemCurrencyCostStore

◆ sItemExtendedCostStore

◆ sItemSparseStore

◆ sItemStore

◆ sItemToBattlePetStore

◆ sKeyChainStore

Referenced by LoadDB2Stores().

◆ sSceneScriptPackageStore

◆ sSpellReagentsStore