|
static void | SetIdentifier (PreparedStatementBase *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 (PreparedStatementBase *stmt, uint8 &index, CooldownStorageType::value_type const &cooldown) |
|
static void | WriteCharge (PreparedStatementBase *stmt, uint8 &index, uint32 chargeCategory, ChargeEntry const &charge) |
|
◆ ReadCharge()
66 chargeEntry->RechargeStart = Clock::from_time_t(fields[1].GetInt64());
67 chargeEntry->RechargeEnd = Clock::from_time_t(fields[2].GetInt64());
uint32 GetUInt32() const
Definition: Field.cpp:105
DB2Storage< SpellCategoryEntry > sSpellCategoryStore("SpellCategory.db2", SpellCategoryLoadInfo::Instance())
◆ ReadCooldown()
52 cooldownEntry->SpellId = *spellId;
53 cooldownEntry->CooldownEnd = Clock::from_time_t(fields[2].GetInt64());
54 cooldownEntry->ItemId = fields[1].
GetUInt32();
55 cooldownEntry->CategoryId = fields[3].
GetUInt32();
56 cooldownEntry->CategoryEnd = Clock::from_time_t(fields[4].GetInt64());
Definition: DBCEnums.h:666
uint32 GetUInt32() const
Definition: Field.cpp:105
#define sSpellMgr
Definition: SpellMgr.h:825
◆ SetIdentifier()
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:156
LowType GetCounter() const
Definition: ObjectGuid.h:284
void setUInt64(const uint8 index, const uint64 value)
Definition: PreparedStatement.cpp:54
◆ WriteCharge()
83 stmt->
setInt64(index++, Clock::to_time_t(charge.RechargeStart));
84 stmt->
setInt64(index++, Clock::to_time_t(charge.RechargeEnd));
void setInt64(const uint8 index, const int64 value)
Definition: PreparedStatement.cpp:78
void setUInt32(const uint8 index, const uint32 value)
Definition: PreparedStatement.cpp:48
◆ WriteCooldown()
74 stmt->
setUInt32(index++, cooldown.second.ItemId);
75 stmt->
setInt64(index++, Clock::to_time_t(cooldown.second.CooldownEnd));
76 stmt->
setUInt32(index++, cooldown.second.CategoryId);
77 stmt->
setInt64(index++, Clock::to_time_t(cooldown.second.CategoryEnd));
void setInt64(const uint8 index, const int64 value)
Definition: PreparedStatement.cpp:78
void setUInt32(const uint8 index, const uint32 value)
Definition: PreparedStatement.cpp:48
◆ ChargesDeleteStatement
◆ ChargesInsertStatement
◆ CooldownsDeleteStatement
◆ CooldownsInsertStatement
The documentation for this struct was generated from the following file: