|
static void | SetIdentifier (PreparedStatement *stmt, uint8 index, Unit *owner) |
|
static bool | ReadCooldown (Field *fields, uint32 *spellId, CooldownEntry *cooldownEntry) |
|
static bool | ReadCharge (Field *fields, uint32 *categoryId, ChargeEntry *chargeEntry) |
|
static void | WriteCooldown (PreparedStatement *stmt, uint8 &index, CooldownStorageType::value_type const &cooldown) |
|
static void | WriteCharge (PreparedStatement *stmt, uint8 &index, uint32 chargeCategory, ChargeEntry const &charge) |
|
58 chargeEntry->RechargeStart = Clock::from_time_t(time_t(fields[1].GetUInt32()));
59 chargeEntry->RechargeEnd = Clock::from_time_t(time_t(fields[2].GetUInt32()));
DBCStorage< SpellCategoryEntry > sSpellCategoryStore(SpellCategoryfmt)
uint32 GetUInt32() const
Definition: Field.h:146
44 cooldownEntry->SpellId = *spellId;
45 cooldownEntry->CooldownEnd = Clock::from_time_t(time_t(fields[2].GetUInt32()));
46 cooldownEntry->ItemId = fields[1].
GetUInt32();
47 cooldownEntry->CategoryId = fields[3].
GetUInt32();
48 cooldownEntry->CategoryEnd = Clock::from_time_t(time_t(fields[4].GetUInt32()));
#define sSpellMgr
Definition: SpellMgr.h:756
uint32 GetUInt32() const
Definition: Field.h:146
ObjectGuid const & GetGUID() const
Definition: Object.h:105
void setUInt64(const uint8 index, const uint64 value)
Definition: PreparedStatement.cpp:124
LowType GetCounter() const
Definition: ObjectGuid.h:221
75 stmt->
setUInt32(index++,
uint32(Clock::to_time_t(charge.RechargeStart)));
void setUInt32(const uint8 index, const uint32 value)
Definition: PreparedStatement.cpp:115
uint32_t uint32
Definition: g3dmath.h:168
66 stmt->
setUInt32(index++, cooldown.second.ItemId);
67 stmt->
setUInt32(index++,
uint32(Clock::to_time_t(cooldown.second.CooldownEnd)));
68 stmt->
setUInt32(index++, cooldown.second.CategoryId);
69 stmt->
setUInt32(index++,
uint32(Clock::to_time_t(cooldown.second.CategoryEnd)));
void setUInt32(const uint8 index, const uint32 value)
Definition: PreparedStatement.cpp:115
uint32_t uint32
Definition: g3dmath.h:168
The documentation for this struct was generated from the following file: