![]() |
TrinityCore
|
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 | |
| TC_GAME_API void | CleanDatabase () |
| TC_GAME_API void | CheckUnique (char const *column, char const *table, bool(*check)(uint32)) |
| TC_GAME_API bool | AchievementProgressCheck (uint32 criteria) |
| TC_GAME_API bool | SkillCheck (uint32 skill) |
| TC_GAME_API bool | SpellCheck (uint32 spell_id) |
| TC_GAME_API bool | TalentCheck (uint32 talent_id) |
| TC_GAME_API void | CleanCharacterAchievementProgress () |
| TC_GAME_API void | CleanCharacterSkills () |
| TC_GAME_API void | CleanCharacterSpell () |
| TC_GAME_API void | CleanCharacterTalent () |
| TC_GAME_API void | CleanCharacterQuestStatus () |
| Enumerator | |
|---|---|
| CLEANING_FLAG_ACHIEVEMENT_PROGRESS | |
| CLEANING_FLAG_SKILLS | |
| CLEANING_FLAG_SPELLS | |
| CLEANING_FLAG_TALENTS | |
| CLEANING_FLAG_QUESTSTATUS | |
Definition at line 23 of file CharacterDatabaseCleaner.h.
| bool CharacterDatabaseCleaner::AchievementProgressCheck | ( | uint32 | criteria | ) |
Definition at line 109 of file CharacterDatabaseCleaner.cpp.
References sAchievementCriteriaStore.
Referenced by CleanCharacterAchievementProgress().
| void CharacterDatabaseCleaner::CheckUnique | ( | char const * | column, |
| char const * | table, | ||
| bool(*)(uint32) | check | ||
| ) |
Definition at line 70 of file CharacterDatabaseCleaner.cpp.
References CharacterDatabase, Field::GetUInt32(), and TC_LOG_INFO.
Referenced by CleanCharacterAchievementProgress(), CleanCharacterSkills(), CleanCharacterSpell(), and CleanCharacterTalent().
| void CharacterDatabaseCleaner::CleanCharacterAchievementProgress | ( | ) |
Definition at line 114 of file CharacterDatabaseCleaner.cpp.
References AchievementProgressCheck(), and CheckUnique().
Referenced by CleanDatabase().
| void CharacterDatabaseCleaner::CleanCharacterQuestStatus | ( | ) |
Definition at line 155 of file CharacterDatabaseCleaner.cpp.
References CharacterDatabase.
Referenced by CleanDatabase().
| void CharacterDatabaseCleaner::CleanCharacterSkills | ( | ) |
Definition at line 124 of file CharacterDatabaseCleaner.cpp.
References CheckUnique(), and SkillCheck().
Referenced by CleanDatabase().
| void CharacterDatabaseCleaner::CleanCharacterSpell | ( | ) |
Definition at line 135 of file CharacterDatabaseCleaner.cpp.
References CheckUnique(), and SpellCheck().
Referenced by CleanDatabase().
| void CharacterDatabaseCleaner::CleanCharacterTalent | ( | ) |
Definition at line 149 of file CharacterDatabaseCleaner.cpp.
References CharacterDatabase, CheckUnique(), MAX_TALENT_GROUPS, and TalentCheck().
Referenced by CleanDatabase().
| void CharacterDatabaseCleaner::CleanDatabase | ( | ) |
Definition at line 27 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, flags, getMSTime(), GetMSTimeDiffToNow(), sWorld, TC_LOG_INFO, and WS_CLEANING_FLAGS.
Referenced by World::SetInitialWorldSettings().
| bool CharacterDatabaseCleaner::SkillCheck | ( | uint32 | skill | ) |
Definition at line 119 of file CharacterDatabaseCleaner.cpp.
References sSkillLineStore.
Referenced by CleanCharacterSkills().
| bool CharacterDatabaseCleaner::SpellCheck | ( | uint32 | spell_id | ) |
Definition at line 129 of file CharacterDatabaseCleaner.cpp.
References SpellInfo::HasAttribute(), SPELL_ATTR0_CU_IS_TALENT, and sSpellMgr.
Referenced by CleanCharacterSpell().
| bool CharacterDatabaseCleaner::TalentCheck | ( | uint32 | talent_id | ) |
Definition at line 140 of file CharacterDatabaseCleaner.cpp.
References sTalentStore, sTalentTabStore, and TalentEntry::TabID.
Referenced by CleanCharacterTalent().