|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Enumerations | |
| enum | CleaningFlags { CLEANING_FLAG_ACHIEVEMENT_PROGRESS = 0x1 , CLEANING_FLAG_SKILLS = 0x2 , CLEANING_FLAG_SPELLS = 0x4 , CLEANING_FLAG_TALENTS = 0x8 , CLEANING_FLAG_QUESTSTATUS = 0x10 } |
Functions | |
| bool | AchievementProgressCheck (uint32 criteria) |
| void | CheckUnique (const char *column, const char *table, bool(*check)(uint32)) |
| void | CleanCharacterAchievementProgress () |
| void | CleanCharacterQuestStatus () |
| void | CleanCharacterSkills () |
| void | CleanCharacterSpell () |
| void | CleanCharacterTalent () |
| void | CleanDatabase () |
| bool | SkillCheck (uint32 skill) |
| bool | SpellCheck (uint32 spell_id) |
| bool | TalentCheck (uint32 talent_id) |
| Enumerator | |
|---|---|
| CLEANING_FLAG_ACHIEVEMENT_PROGRESS | |
| CLEANING_FLAG_SKILLS | |
| CLEANING_FLAG_SPELLS | |
| CLEANING_FLAG_TALENTS | |
| CLEANING_FLAG_QUESTSTATUS | |
Definition at line 11 of file CharacterDatabaseCleaner.h.
| bool CharacterDatabaseCleaner::AchievementProgressCheck | ( | uint32 | criteria | ) |
Definition at line 95 of file CharacterDatabaseCleaner.cpp.
References sAchievementMgr.
Referenced by CleanCharacterAchievementProgress().
| void CharacterDatabaseCleaner::CheckUnique | ( | const char * | column, |
| const char * | table, | ||
| bool(* | check )(uint32) ) |
Definition at line 57 of file CharacterDatabaseCleaner.cpp.
References CharacterDatabase, Field::GetUInt32(), SF_LOG_INFO, and table.
Referenced by CleanCharacterAchievementProgress(), CleanCharacterSkills(), CleanCharacterSpell(), and CleanCharacterTalent().
| void CharacterDatabaseCleaner::CleanCharacterAchievementProgress | ( | ) |
Definition at line 100 of file CharacterDatabaseCleaner.cpp.
References AchievementProgressCheck(), and CheckUnique().
Referenced by CleanDatabase().
| void CharacterDatabaseCleaner::CleanCharacterQuestStatus | ( | ) |
Definition at line 140 of file CharacterDatabaseCleaner.cpp.
References CharacterDatabase.
Referenced by CleanDatabase().
| void CharacterDatabaseCleaner::CleanCharacterSkills | ( | ) |
Definition at line 110 of file CharacterDatabaseCleaner.cpp.
References CheckUnique(), and SkillCheck().
Referenced by CleanDatabase().
| void CharacterDatabaseCleaner::CleanCharacterSpell | ( | ) |
Definition at line 120 of file CharacterDatabaseCleaner.cpp.
References CheckUnique(), and SpellCheck().
Referenced by CleanDatabase().
| void CharacterDatabaseCleaner::CleanCharacterTalent | ( | ) |
Definition at line 134 of file CharacterDatabaseCleaner.cpp.
References CharacterDatabase, CheckUnique(), MAX_TALENT_SPECS, and TalentCheck().
Referenced by CleanDatabase().
| void CharacterDatabaseCleaner::CleanDatabase | ( | ) |
Definition at line 14 of file CharacterDatabaseCleaner.cpp.
References CharacterDatabase, CleanCharacterAchievementProgress(), CleanCharacterQuestStatus(), CleanCharacterSkills(), CleanCharacterSpell(), CleanCharacterTalent(), CLEANING_FLAG_ACHIEVEMENT_PROGRESS, CLEANING_FLAG_QUESTSTATUS, CLEANING_FLAG_SKILLS, CLEANING_FLAG_SPELLS, CLEANING_FLAG_TALENTS, CONFIG_CLEAN_CHARACTER_DB, CONFIG_PERSISTENT_CHARACTER_CLEAN_FLAGS, getMSTime(), GetMSTimeDiffToNow(), SF_LOG_INFO, sWorld, and WS_CLEANING_FLAGS.
Referenced by World::SetInitialWorldSettings().
| bool CharacterDatabaseCleaner::SkillCheck | ( | uint32 | skill | ) |
Definition at line 105 of file CharacterDatabaseCleaner.cpp.
References sSkillLineStore.
Referenced by CleanCharacterSkills().
| bool CharacterDatabaseCleaner::SpellCheck | ( | uint32 | spell_id | ) |
Definition at line 115 of file CharacterDatabaseCleaner.cpp.
References GetTalentSpellPos(), and sSpellMgr.
Referenced by CleanCharacterSpell().
| bool CharacterDatabaseCleaner::TalentCheck | ( | uint32 | talent_id | ) |
Definition at line 125 of file CharacterDatabaseCleaner.cpp.
References sTalentStore.
Referenced by CleanCharacterTalent().