Compare commits

...

3 Commits

605 changed files with 25765 additions and 115 deletions

View File

@ -1,8 +1,49 @@
#include "clientobject/Unit_C.hpp"
const char* CGUnit_C::GetDisplayRaceNameFromRecord(ChrRacesRec* record, uint8_t sexIn, uint8_t* sexOut) {
const char* result;
#include "db/Db.hpp"
const char* CGUnit_C::GetDisplayRaceNameFromRecord(ChrRacesRec* record, uint8_t sexIn, uint8_t* sexOut) {
if (sexOut) {
*sexOut = sexIn;
}
if (!record) {
return nullptr;
}
if (!sexIn) {
if (record->m_nameMale[0]) {
return record->m_nameMale;
}
if (record->m_nameFemale[0]) {
if (sexOut) {
*sexOut = 1;
}
return record->m_nameFemale;
}
return record->m_name;
}
if (sexIn != 1) {
return record->m_name;
}
if (record->m_nameFemale[0]) {
return record->m_nameFemale;
}
if (!record->m_nameMale[0]) {
return record->m_name;
}
if (sexOut) {
*sexOut = 0;
}
return record->m_nameMale;
}
const char* CGUnit_C::GetDisplayClassNameFromRecord(ChrClassesRec* record, uint8_t sexIn, uint8_t* sexOut) {
if (sexOut) {
*sexOut = sexIn;
}

View File

@ -1,11 +1,15 @@
#ifndef CLIENTOBJECT_UNIT_C_HPP
#define CLIENTOBJECT_UNIT_C_HPP
#include "db/rec/ChrRacesRec.hpp"
#include <cstdint>
class ChrRacesRec;
class ChrClassesRec;
class CGUnit_C {
public:
static const char* GetDisplayRaceNameFromRecord(ChrRacesRec* record, uint8_t sexIn, uint8_t* sexOut = nullptr);
static const char* GetDisplayClassNameFromRecord(ChrClassesRec* record, uint8_t sexIn, uint8_t* sexOut = nullptr);
};
#endif // CLIENTOBJECT_UNIT_C_HPP

View File

@ -1,22 +1,9 @@
#include "db/Db.hpp"
#include "db/WowClientDB_Base.hpp"
WowClientDB<AchievementRec> g_achievementDB;
WowClientDB<Cfg_CategoriesRec> g_cfg_CategoriesDB;
WowClientDB<Cfg_ConfigsRec> g_cfg_ConfigsDB;
WowClientDB<ChrRacesRec> g_chrRacesDB;
void LoadDB(WowClientDB_Base* db, const char* filename, int32_t linenumber) {
db->Load(filename, linenumber);
};
void StaticDBLoadAll(void (*loadFn)(WowClientDB_Base*, const char*, int32_t)) {
loadFn(&g_achievementDB, __FILE__, __LINE__);
loadFn(&g_cfg_CategoriesDB, __FILE__, __LINE__);
loadFn(&g_cfg_ConfigsDB, __FILE__, __LINE__);
loadFn(&g_chrRacesDB, __FILE__, __LINE__);
};
void ClientDBInitialize() {
// TODO

View File

@ -1,16 +1,7 @@
#ifndef DB_DB_HPP
#define DB_DB_HPP
#include "db/rec/AchievementRec.hpp"
#include "db/rec/Cfg_CategoriesRec.hpp"
#include "db/rec/Cfg_ConfigsRec.hpp"
#include "db/rec/ChrRacesRec.hpp"
#include "db/WowClientDB.hpp"
extern WowClientDB<AchievementRec> g_achievementDB;
extern WowClientDB<Cfg_CategoriesRec> g_cfg_CategoriesDB;
extern WowClientDB<Cfg_ConfigsRec> g_cfg_ConfigsDB;
extern WowClientDB<ChrRacesRec> g_chrRacesDB;
#include "db/StaticDb.hpp"
void ClientDBInitialize();

602
src/db/StaticDb.cpp Normal file
View File

@ -0,0 +1,602 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/StaticDb.hpp"
WowClientDB<AchievementRec> g_achievementDB;
WowClientDB<Achievement_CategoryRec> g_achievement_CategoryDB;
WowClientDB<Achievement_CriteriaRec> g_achievement_CriteriaDB;
WowClientDB<AnimKitRec> g_animKitDB;
WowClientDB<AnimKitBoneSetRec> g_animKitBoneSetDB;
WowClientDB<AnimKitBoneSetAliasRec> g_animKitBoneSetAliasDB;
WowClientDB<AnimKitConfigRec> g_animKitConfigDB;
WowClientDB<AnimKitConfigBoneSetRec> g_animKitConfigBoneSetDB;
WowClientDB<AnimKitPriorityRec> g_animKitPriorityDB;
WowClientDB<AnimKitSegmentRec> g_animKitSegmentDB;
WowClientDB<AnimReplacementRec> g_animReplacementDB;
WowClientDB<AnimReplacementSetRec> g_animReplacementSetDB;
WowClientDB<AnimationDataRec> g_animationDataDB;
WowClientDB<AreaAssignmentRec> g_areaAssignmentDB;
WowClientDB<AreaGroupRec> g_areaGroupDB;
WowClientDB<AreaPOIRec> g_areaPOIDB;
WowClientDB<AreaTableRec> g_areaTableDB;
WowClientDB<AreaTriggerRec> g_areaTriggerDB;
WowClientDB<ArmorLocationRec> g_armorLocationDB;
WowClientDB<AttackAnimKitsRec> g_attackAnimKitsDB;
WowClientDB<AttackAnimTypesRec> g_attackAnimTypesDB;
WowClientDB<AuctionHouseRec> g_auctionHouseDB;
WowClientDB<BankBagSlotPricesRec> g_bankBagSlotPricesDB;
WowClientDB<BannedAddonsRec> g_bannedAddonsDB;
WowClientDB<BarberShopStyleRec> g_barberShopStyleDB;
WowClientDB<BattlemasterListRec> g_battlemasterListDB;
WowClientDB<CameraModeRec> g_cameraModeDB;
WowClientDB<CameraShakesRec> g_cameraShakesDB;
WowClientDB<Cfg_CategoriesRec> g_cfg_CategoriesDB;
WowClientDB<Cfg_ConfigsRec> g_cfg_ConfigsDB;
WowClientDB<CharBaseInfoRec> g_charBaseInfoDB;
WowClientDB<CharHairGeosetsRec> g_charHairGeosetsDB;
WowClientDB<CharHairTexturesRec> g_charHairTexturesDB;
WowClientDB<CharSectionsRec> g_charSectionsDB;
WowClientDB<CharStartOutfitRec> g_charStartOutfitDB;
WowClientDB<CharTitlesRec> g_charTitlesDB;
WowClientDB<CharVariationsRec> g_charVariationsDB;
WowClientDB<CharacterFacialHairStylesRec> g_characterFacialHairStylesDB;
WowClientDB<ChatChannelsRec> g_chatChannelsDB;
WowClientDB<ChatProfanityRec> g_chatProfanityDB;
WowClientDB<ChrClassesRec> g_chrClassesDB;
WowClientDB<ChrRacesRec> g_chrRacesDB;
WowClientDB<CinematicCameraRec> g_cinematicCameraDB;
WowClientDB<CinematicSequencesRec> g_cinematicSequencesDB;
WowClientDB<CreatureDisplayInfoRec> g_creatureDisplayInfoDB;
WowClientDB<CreatureDisplayInfoExtraRec> g_creatureDisplayInfoExtraDB;
WowClientDB<CreatureFamilyRec> g_creatureFamilyDB;
WowClientDB<CreatureModelDataRec> g_creatureModelDataDB;
WowClientDB<CreatureMovementInfoRec> g_creatureMovementInfoDB;
WowClientDB<CreatureSoundDataRec> g_creatureSoundDataDB;
WowClientDB<CreatureSpellDataRec> g_creatureSpellDataDB;
WowClientDB<CreatureTypeRec> g_creatureTypeDB;
WowClientDB<CurrencyCategoryRec> g_currencyCategoryDB;
WowClientDB<CurrencyTypesRec> g_currencyTypesDB;
WowClientDB<DanceMovesRec> g_danceMovesDB;
WowClientDB<DeathThudLookupsRec> g_deathThudLookupsDB;
WowClientDB<DeclinedWordRec> g_declinedWordDB;
WowClientDB<DeclinedWordCasesRec> g_declinedWordCasesDB;
WowClientDB<DestructibleModelDataRec> g_destructibleModelDataDB;
WowClientDB<DungeonEncounterRec> g_dungeonEncounterDB;
WowClientDB<DungeonMapRec> g_dungeonMapDB;
WowClientDB<DungeonMapChunkRec> g_dungeonMapChunkDB;
WowClientDB<DurabilityCostsRec> g_durabilityCostsDB;
WowClientDB<DurabilityQualityRec> g_durabilityQualityDB;
WowClientDB<EmotesRec> g_emotesDB;
WowClientDB<EmotesTextRec> g_emotesTextDB;
WowClientDB<EmotesTextDataRec> g_emotesTextDataDB;
WowClientDB<EmotesTextSoundRec> g_emotesTextSoundDB;
WowClientDB<EnvironmentalDamageRec> g_environmentalDamageDB;
WowClientDB<ExhaustionRec> g_exhaustionDB;
WowClientDB<FactionRec> g_factionDB;
WowClientDB<FactionGroupRec> g_factionGroupDB;
WowClientDB<FactionTemplateRec> g_factionTemplateDB;
WowClientDB<FileDataRec> g_fileDataDB;
WowClientDB<FootprintTexturesRec> g_footprintTexturesDB;
WowClientDB<FootstepTerrainLookupRec> g_footstepTerrainLookupDB;
WowClientDB<GMSurveyAnswersRec> g_gMSurveyAnswersDB;
WowClientDB<GMSurveyCurrentSurveyRec> g_gMSurveyCurrentSurveyDB;
WowClientDB<GMSurveyQuestionsRec> g_gMSurveyQuestionsDB;
WowClientDB<GMSurveySurveysRec> g_gMSurveySurveysDB;
WowClientDB<GMTicketCategoryRec> g_gMTicketCategoryDB;
WowClientDB<GameObjectArtKitRec> g_gameObjectArtKitDB;
WowClientDB<GameObjectDisplayInfoRec> g_gameObjectDisplayInfoDB;
WowClientDB<GameTablesRec> g_gameTablesDB;
WowClientDB<GameTipsRec> g_gameTipsDB;
WowClientDB<GemPropertiesRec> g_gemPropertiesDB;
WowClientDB<GlueScreenEmoteRec> g_glueScreenEmoteDB;
WowClientDB<GlyphPropertiesRec> g_glyphPropertiesDB;
WowClientDB<GlyphSlotRec> g_glyphSlotDB;
WowClientDB<GroundEffectDoodadRec> g_groundEffectDoodadDB;
WowClientDB<GroundEffectTextureRec> g_groundEffectTextureDB;
WowClientDB<GuildPerkSpellsRec> g_guildPerkSpellsDB;
WowClientDB<HelmetGeosetVisDataRec> g_helmetGeosetVisDataDB;
WowClientDB<HolidayDescriptionsRec> g_holidayDescriptionsDB;
WowClientDB<HolidayNamesRec> g_holidayNamesDB;
WowClientDB<HolidaysRec> g_holidaysDB;
WowClientDB<ItemRec> g_itemDB;
WowClientDB<ItemArmorQualityRec> g_itemArmorQualityDB;
WowClientDB<ItemArmorShieldRec> g_itemArmorShieldDB;
WowClientDB<ItemArmorTotalRec> g_itemArmorTotalDB;
WowClientDB<ItemBagFamilyRec> g_itemBagFamilyDB;
WowClientDB<ItemClassRec> g_itemClassDB;
WowClientDB<ItemCondExtCostsRec> g_itemCondExtCostsDB;
WowClientDB<ItemDamageAmmoRec> g_itemDamageAmmoDB;
WowClientDB<ItemDamageOneHandRec> g_itemDamageOneHandDB;
WowClientDB<ItemDamageOneHandCasterRec> g_itemDamageOneHandCasterDB;
WowClientDB<ItemDamageRangedRec> g_itemDamageRangedDB;
WowClientDB<ItemDamageThrownRec> g_itemDamageThrownDB;
WowClientDB<ItemDamageTwoHandRec> g_itemDamageTwoHandDB;
WowClientDB<ItemDamageTwoHandCasterRec> g_itemDamageTwoHandCasterDB;
WowClientDB<ItemDamageWandRec> g_itemDamageWandDB;
WowClientDB<ItemDisplayInfoRec> g_itemDisplayInfoDB;
WowClientDB<ItemExtendedCostRec> g_itemExtendedCostDB;
WowClientDB<ItemGroupSoundsRec> g_itemGroupSoundsDB;
WowClientDB<ItemLimitCategoryRec> g_itemLimitCategoryDB;
WowClientDB<ItemPetFoodRec> g_itemPetFoodDB;
WowClientDB<ItemPurchaseGroupRec> g_itemPurchaseGroupDB;
WowClientDB<ItemRandomPropertiesRec> g_itemRandomPropertiesDB;
WowClientDB<ItemRandomSuffixRec> g_itemRandomSuffixDB;
WowClientDB<ItemReforgeRec> g_itemReforgeDB;
WowClientDB<ItemSetRec> g_itemSetDB;
WowClientDB<ItemSubClassRec> g_itemSubClassDB;
WowClientDB<ItemSubClassMaskRec> g_itemSubClassMaskDB;
WowClientDB<ItemVisualEffectsRec> g_itemVisualEffectsDB;
WowClientDB<ItemVisualsRec> g_itemVisualsDB;
WowClientDB<LFGDungeonExpansionRec> g_lFGDungeonExpansionDB;
WowClientDB<LFGDungeonGroupRec> g_lFGDungeonGroupDB;
WowClientDB<LFGDungeonsRec> g_lFGDungeonsDB;
WowClientDB<LanguageWordsRec> g_languageWordsDB;
WowClientDB<LanguagesRec> g_languagesDB;
WowClientDB<LightRec> g_lightDB;
WowClientDB<LightFloatBandRec> g_lightFloatBandDB;
WowClientDB<LightIntBandRec> g_lightIntBandDB;
WowClientDB<LightParamsRec> g_lightParamsDB;
WowClientDB<LightSkyboxRec> g_lightSkyboxDB;
WowClientDB<LiquidMaterialRec> g_liquidMaterialDB;
WowClientDB<LiquidObjectRec> g_liquidObjectDB;
WowClientDB<LiquidTypeRec> g_liquidTypeDB;
WowClientDB<LoadingScreenTaxiSplinesRec> g_loadingScreenTaxiSplinesDB;
WowClientDB<LoadingScreensRec> g_loadingScreensDB;
WowClientDB<LockRec> g_lockDB;
WowClientDB<LockTypeRec> g_lockTypeDB;
WowClientDB<MailTemplateRec> g_mailTemplateDB;
WowClientDB<MapRec> g_mapDB;
WowClientDB<MapDifficultyRec> g_mapDifficultyDB;
WowClientDB<MaterialRec> g_materialDB;
WowClientDB<MountTypeRec> g_mountTypeDB;
WowClientDB<MovieRec> g_movieDB;
WowClientDB<MovieFileDataRec> g_movieFileDataDB;
WowClientDB<MovieVariationRec> g_movieVariationDB;
WowClientDB<NPCSoundsRec> g_nPCSoundsDB;
WowClientDB<NameGenRec> g_nameGenDB;
WowClientDB<NamesProfanityRec> g_namesProfanityDB;
WowClientDB<NamesReservedRec> g_namesReservedDB;
WowClientDB<ObjectEffectRec> g_objectEffectDB;
WowClientDB<ObjectEffectGroupRec> g_objectEffectGroupDB;
WowClientDB<ObjectEffectModifierRec> g_objectEffectModifierDB;
WowClientDB<ObjectEffectPackageRec> g_objectEffectPackageDB;
WowClientDB<ObjectEffectPackageElemRec> g_objectEffectPackageElemDB;
WowClientDB<OverrideSpellDataRec> g_overrideSpellDataDB;
WowClientDB<PVPDifficultyRec> g_pVPDifficultyDB;
WowClientDB<PackageRec> g_packageDB;
WowClientDB<PageTextMaterialRec> g_pageTextMaterialDB;
WowClientDB<PaperDollItemFrameRec> g_paperDollItemFrameDB;
WowClientDB<ParticleColorRec> g_particleColorDB;
WowClientDB<PetPersonalityRec> g_petPersonalityDB;
WowClientDB<PetitionTypeRec> g_petitionTypeDB;
WowClientDB<PhaseRec> g_phaseDB;
WowClientDB<PhaseShiftZoneSoundsRec> g_phaseShiftZoneSoundsDB;
WowClientDB<PhaseXPhaseGroupRec> g_phaseXPhaseGroupDB;
WowClientDB<PowerDisplayRec> g_powerDisplayDB;
WowClientDB<QuestFactionRewardRec> g_questFactionRewardDB;
WowClientDB<QuestInfoRec> g_questInfoDB;
WowClientDB<QuestSortRec> g_questSortDB;
WowClientDB<QuestXPRec> g_questXPDB;
WowClientDB<RandPropPointsRec> g_randPropPointsDB;
WowClientDB<ResearchBranchRec> g_researchBranchDB;
WowClientDB<ResistancesRec> g_resistancesDB;
WowClientDB<ScalingStatDistributionRec> g_scalingStatDistributionDB;
WowClientDB<ScalingStatValuesRec> g_scalingStatValuesDB;
WowClientDB<ScreenEffectRec> g_screenEffectDB;
WowClientDB<ServerMessagesRec> g_serverMessagesDB;
WowClientDB<SheatheSoundLookupsRec> g_sheatheSoundLookupsDB;
WowClientDB<SkillCostsDataRec> g_skillCostsDataDB;
WowClientDB<SkillLineRec> g_skillLineDB;
WowClientDB<SkillLineAbilityRec> g_skillLineAbilityDB;
WowClientDB<SkillLineCategoryRec> g_skillLineCategoryDB;
WowClientDB<SkillRaceClassInfoRec> g_skillRaceClassInfoDB;
WowClientDB<SkillTiersRec> g_skillTiersDB;
WowClientDB<SoundAmbienceRec> g_soundAmbienceDB;
WowClientDB<SoundEmittersRec> g_soundEmittersDB;
WowClientDB<SoundEntriesRec> g_soundEntriesDB;
WowClientDB<SoundEntriesAdvancedRec> g_soundEntriesAdvancedDB;
WowClientDB<SoundFilterRec> g_soundFilterDB;
WowClientDB<SoundFilterElemRec> g_soundFilterElemDB;
WowClientDB<SoundProviderPreferencesRec> g_soundProviderPreferencesDB;
WowClientDB<SoundSamplePreferencesRec> g_soundSamplePreferencesDB;
WowClientDB<SoundWaterTypeRec> g_soundWaterTypeDB;
WowClientDB<SpamMessagesRec> g_spamMessagesDB;
WowClientDB<SpellRec> g_spellDB;
WowClientDB<SpellAuraOptionsRec> g_spellAuraOptionsDB;
WowClientDB<SpellAuraRestrictionsRec> g_spellAuraRestrictionsDB;
WowClientDB<SpellCastTimesRec> g_spellCastTimesDB;
WowClientDB<SpellCastingRequirementsRec> g_spellCastingRequirementsDB;
WowClientDB<SpellCategoriesRec> g_spellCategoriesDB;
WowClientDB<SpellCategoryRec> g_spellCategoryDB;
WowClientDB<SpellChainEffectsRec> g_spellChainEffectsDB;
WowClientDB<SpellClassOptionsRec> g_spellClassOptionsDB;
WowClientDB<SpellCooldownsRec> g_spellCooldownsDB;
WowClientDB<SpellDescriptionVariablesRec> g_spellDescriptionVariablesDB;
WowClientDB<SpellDifficultyRec> g_spellDifficultyDB;
WowClientDB<SpellDispelTypeRec> g_spellDispelTypeDB;
WowClientDB<SpellDurationRec> g_spellDurationDB;
WowClientDB<SpellEffectRec> g_spellEffectDB;
WowClientDB<SpellEffectCameraShakesRec> g_spellEffectCameraShakesDB;
WowClientDB<SpellEquippedItemsRec> g_spellEquippedItemsDB;
WowClientDB<SpellFocusObjectRec> g_spellFocusObjectDB;
WowClientDB<SpellIconRec> g_spellIconDB;
WowClientDB<SpellInterruptsRec> g_spellInterruptsDB;
WowClientDB<SpellItemEnchantmentRec> g_spellItemEnchantmentDB;
WowClientDB<SpellItemEnchantmentConditionRec> g_spellItemEnchantmentConditionDB;
WowClientDB<SpellLevelsRec> g_spellLevelsDB;
WowClientDB<SpellMechanicRec> g_spellMechanicDB;
WowClientDB<SpellMissileRec> g_spellMissileDB;
WowClientDB<SpellMissileMotionRec> g_spellMissileMotionDB;
WowClientDB<SpellPowerRec> g_spellPowerDB;
WowClientDB<SpellRadiusRec> g_spellRadiusDB;
WowClientDB<SpellRangeRec> g_spellRangeDB;
WowClientDB<SpellReagentsRec> g_spellReagentsDB;
WowClientDB<SpellRuneCostRec> g_spellRuneCostDB;
WowClientDB<SpellScalingRec> g_spellScalingDB;
WowClientDB<SpellShapeshiftRec> g_spellShapeshiftDB;
WowClientDB<SpellShapeshiftFormRec> g_spellShapeshiftFormDB;
WowClientDB<SpellTargetRestrictionsRec> g_spellTargetRestrictionsDB;
WowClientDB<SpellTotemsRec> g_spellTotemsDB;
WowClientDB<SpellVisualRec> g_spellVisualDB;
WowClientDB<SpellVisualEffectNameRec> g_spellVisualEffectNameDB;
WowClientDB<SpellVisualKitRec> g_spellVisualKitDB;
WowClientDB<SpellVisualKitAreaModelRec> g_spellVisualKitAreaModelDB;
WowClientDB<SpellVisualKitModelAttachRec> g_spellVisualKitModelAttachDB;
WowClientDB<SpellVisualPrecastTransitionsRec> g_spellVisualPrecastTransitionsDB;
WowClientDB<StableSlotPricesRec> g_stableSlotPricesDB;
WowClientDB<Startup_StringsRec> g_startup_StringsDB;
WowClientDB<StationeryRec> g_stationeryDB;
WowClientDB<StringLookupsRec> g_stringLookupsDB;
WowClientDB<SummonPropertiesRec> g_summonPropertiesDB;
WowClientDB<TalentRec> g_talentDB;
WowClientDB<TalentTabRec> g_talentTabDB;
WowClientDB<TaxiNodesRec> g_taxiNodesDB;
WowClientDB<TaxiPathRec> g_taxiPathDB;
WowClientDB<TaxiPathNodeRec> g_taxiPathNodeDB;
WowClientDB<TeamContributionPointsRec> g_teamContributionPointsDB;
WowClientDB<TerrainMaterialRec> g_terrainMaterialDB;
WowClientDB<TerrainTypeRec> g_terrainTypeDB;
WowClientDB<TerrainTypeSoundsRec> g_terrainTypeSoundsDB;
WowClientDB<TotemCategoryRec> g_totemCategoryDB;
WowClientDB<TransportAnimationRec> g_transportAnimationDB;
WowClientDB<TransportPhysicsRec> g_transportPhysicsDB;
WowClientDB<TransportRotationRec> g_transportRotationDB;
WowClientDB<UISoundLookupsRec> g_uISoundLookupsDB;
WowClientDB<UnitBloodRec> g_unitBloodDB;
WowClientDB<UnitBloodLevelsRec> g_unitBloodLevelsDB;
WowClientDB<VehicleRec> g_vehicleDB;
WowClientDB<VehicleSeatRec> g_vehicleSeatDB;
WowClientDB<VehicleUIIndSeatRec> g_vehicleUIIndSeatDB;
WowClientDB<VehicleUIIndicatorRec> g_vehicleUIIndicatorDB;
WowClientDB<VideoHardwareRec> g_videoHardwareDB;
WowClientDB<VocalUISoundsRec> g_vocalUISoundsDB;
WowClientDB<WMOAreaTableRec> g_wMOAreaTableDB;
WowClientDB<WeaponImpactSoundsRec> g_weaponImpactSoundsDB;
WowClientDB<WeaponSwingSounds2Rec> g_weaponSwingSounds2DB;
WowClientDB<WeatherRec> g_weatherDB;
WowClientDB<WorldChunkSoundsRec> g_worldChunkSoundsDB;
WowClientDB<WorldMapAreaRec> g_worldMapAreaDB;
WowClientDB<WorldMapContinentRec> g_worldMapContinentDB;
WowClientDB<WorldMapOverlayRec> g_worldMapOverlayDB;
WowClientDB<WorldMapTransformsRec> g_worldMapTransformsDB;
WowClientDB<WorldSafeLocsRec> g_worldSafeLocsDB;
WowClientDB<WorldStateUIRec> g_worldStateUIDB;
WowClientDB<WorldStateZoneSoundsRec> g_worldStateZoneSoundsDB;
WowClientDB<WowError_StringsRec> g_wowError_StringsDB;
WowClientDB<ZoneIntroMusicTableRec> g_zoneIntroMusicTableDB;
WowClientDB<ZoneLightRec> g_zoneLightDB;
WowClientDB<ZoneLightPointRec> g_zoneLightPointDB;
WowClientDB<ZoneMusicRec> g_zoneMusicDB;
WowClientDB<gtBarberShopCostBaseRec> g_gtBarberShopCostBaseDB;
WowClientDB<gtChanceToMeleeCritRec> g_gtChanceToMeleeCritDB;
WowClientDB<gtChanceToMeleeCritBaseRec> g_gtChanceToMeleeCritBaseDB;
WowClientDB<gtChanceToSpellCritRec> g_gtChanceToSpellCritDB;
WowClientDB<gtChanceToSpellCritBaseRec> g_gtChanceToSpellCritBaseDB;
WowClientDB<gtCombatRatingsRec> g_gtCombatRatingsDB;
WowClientDB<gtNPCManaCostScalerRec> g_gtNPCManaCostScalerDB;
WowClientDB<gtOCTClassCombatRatingScalarRec> g_gtOCTClassCombatRatingScalarDB;
WowClientDB<gtOCTRegenHPRec> g_gtOCTRegenHPDB;
WowClientDB<gtOCTRegenMPRec> g_gtOCTRegenMPDB;
WowClientDB<gtRegenHPPerSptRec> g_gtRegenHPPerSptDB;
WowClientDB<gtRegenMPPerSptRec> g_gtRegenMPPerSptDB;
WowClientDB<gtSpellScalingRec> g_gtSpellScalingDB;
void StaticDBLoadAll(void (*loadFn)(WowClientDB_Base*, const char*, int32_t)) {
loadFn(&g_achievementDB, __FILE__, __LINE__);
//loadFn(&g_achievement_CategoryDB, __FILE__, __LINE__);
//loadFn(&g_achievement_CriteriaDB, __FILE__, __LINE__);
//loadFn(&g_animKitDB, __FILE__, __LINE__);
//loadFn(&g_animKitBoneSetDB, __FILE__, __LINE__);
//loadFn(&g_animKitBoneSetAliasDB, __FILE__, __LINE__);
//loadFn(&g_animKitConfigDB, __FILE__, __LINE__);
//loadFn(&g_animKitConfigBoneSetDB, __FILE__, __LINE__);
//loadFn(&g_animKitPriorityDB, __FILE__, __LINE__);
//loadFn(&g_animKitSegmentDB, __FILE__, __LINE__);
//loadFn(&g_animReplacementDB, __FILE__, __LINE__);
//loadFn(&g_animReplacementSetDB, __FILE__, __LINE__);
//loadFn(&g_animationDataDB, __FILE__, __LINE__);
//loadFn(&g_areaAssignmentDB, __FILE__, __LINE__);
//loadFn(&g_areaGroupDB, __FILE__, __LINE__);
//loadFn(&g_areaPOIDB, __FILE__, __LINE__);
loadFn(&g_areaTableDB, __FILE__, __LINE__);
//loadFn(&g_areaTriggerDB, __FILE__, __LINE__);
//loadFn(&g_armorLocationDB, __FILE__, __LINE__);
//loadFn(&g_attackAnimKitsDB, __FILE__, __LINE__);
//loadFn(&g_attackAnimTypesDB, __FILE__, __LINE__);
//loadFn(&g_auctionHouseDB, __FILE__, __LINE__);
//loadFn(&g_bankBagSlotPricesDB, __FILE__, __LINE__);
//loadFn(&g_bannedAddonsDB, __FILE__, __LINE__);
//loadFn(&g_barberShopStyleDB, __FILE__, __LINE__);
//loadFn(&g_battlemasterListDB, __FILE__, __LINE__);
//loadFn(&g_cameraModeDB, __FILE__, __LINE__);
//loadFn(&g_cameraShakesDB, __FILE__, __LINE__);
loadFn(&g_cfg_CategoriesDB, __FILE__, __LINE__);
loadFn(&g_cfg_ConfigsDB, __FILE__, __LINE__);
//loadFn(&g_charBaseInfoDB, __FILE__, __LINE__);
//loadFn(&g_charHairGeosetsDB, __FILE__, __LINE__);
//loadFn(&g_charHairTexturesDB, __FILE__, __LINE__);
//loadFn(&g_charSectionsDB, __FILE__, __LINE__);
//loadFn(&g_charStartOutfitDB, __FILE__, __LINE__);
//loadFn(&g_charTitlesDB, __FILE__, __LINE__);
//loadFn(&g_charVariationsDB, __FILE__, __LINE__);
//loadFn(&g_characterFacialHairStylesDB, __FILE__, __LINE__);
//loadFn(&g_chatChannelsDB, __FILE__, __LINE__);
//loadFn(&g_chatProfanityDB, __FILE__, __LINE__);
loadFn(&g_chrClassesDB, __FILE__, __LINE__);
loadFn(&g_chrRacesDB, __FILE__, __LINE__);
//loadFn(&g_cinematicCameraDB, __FILE__, __LINE__);
//loadFn(&g_cinematicSequencesDB, __FILE__, __LINE__);
//loadFn(&g_creatureDisplayInfoDB, __FILE__, __LINE__);
//loadFn(&g_creatureDisplayInfoExtraDB, __FILE__, __LINE__);
//loadFn(&g_creatureFamilyDB, __FILE__, __LINE__);
//loadFn(&g_creatureModelDataDB, __FILE__, __LINE__);
//loadFn(&g_creatureMovementInfoDB, __FILE__, __LINE__);
//loadFn(&g_creatureSoundDataDB, __FILE__, __LINE__);
//loadFn(&g_creatureSpellDataDB, __FILE__, __LINE__);
//loadFn(&g_creatureTypeDB, __FILE__, __LINE__);
//loadFn(&g_currencyCategoryDB, __FILE__, __LINE__);
//loadFn(&g_currencyTypesDB, __FILE__, __LINE__);
//loadFn(&g_danceMovesDB, __FILE__, __LINE__);
//loadFn(&g_deathThudLookupsDB, __FILE__, __LINE__);
//loadFn(&g_declinedWordDB, __FILE__, __LINE__);
//loadFn(&g_declinedWordCasesDB, __FILE__, __LINE__);
//loadFn(&g_destructibleModelDataDB, __FILE__, __LINE__);
//loadFn(&g_dungeonEncounterDB, __FILE__, __LINE__);
//loadFn(&g_dungeonMapDB, __FILE__, __LINE__);
//loadFn(&g_dungeonMapChunkDB, __FILE__, __LINE__);
//loadFn(&g_durabilityCostsDB, __FILE__, __LINE__);
//loadFn(&g_durabilityQualityDB, __FILE__, __LINE__);
//loadFn(&g_emotesDB, __FILE__, __LINE__);
//loadFn(&g_emotesTextDB, __FILE__, __LINE__);
//loadFn(&g_emotesTextDataDB, __FILE__, __LINE__);
//loadFn(&g_emotesTextSoundDB, __FILE__, __LINE__);
//loadFn(&g_environmentalDamageDB, __FILE__, __LINE__);
//loadFn(&g_exhaustionDB, __FILE__, __LINE__);
//loadFn(&g_factionDB, __FILE__, __LINE__);
//loadFn(&g_factionGroupDB, __FILE__, __LINE__);
//loadFn(&g_factionTemplateDB, __FILE__, __LINE__);
//loadFn(&g_fileDataDB, __FILE__, __LINE__);
//loadFn(&g_footprintTexturesDB, __FILE__, __LINE__);
//loadFn(&g_footstepTerrainLookupDB, __FILE__, __LINE__);
//loadFn(&g_gMSurveyAnswersDB, __FILE__, __LINE__);
//loadFn(&g_gMSurveyCurrentSurveyDB, __FILE__, __LINE__);
//loadFn(&g_gMSurveyQuestionsDB, __FILE__, __LINE__);
//loadFn(&g_gMSurveySurveysDB, __FILE__, __LINE__);
//loadFn(&g_gMTicketCategoryDB, __FILE__, __LINE__);
//loadFn(&g_gameObjectArtKitDB, __FILE__, __LINE__);
//loadFn(&g_gameObjectDisplayInfoDB, __FILE__, __LINE__);
//loadFn(&g_gameTablesDB, __FILE__, __LINE__);
//loadFn(&g_gameTipsDB, __FILE__, __LINE__);
//loadFn(&g_gemPropertiesDB, __FILE__, __LINE__);
//loadFn(&g_glueScreenEmoteDB, __FILE__, __LINE__);
//loadFn(&g_glyphPropertiesDB, __FILE__, __LINE__);
//loadFn(&g_glyphSlotDB, __FILE__, __LINE__);
//loadFn(&g_groundEffectDoodadDB, __FILE__, __LINE__);
//loadFn(&g_groundEffectTextureDB, __FILE__, __LINE__);
//loadFn(&g_guildPerkSpellsDB, __FILE__, __LINE__);
//loadFn(&g_helmetGeosetVisDataDB, __FILE__, __LINE__);
//loadFn(&g_holidayDescriptionsDB, __FILE__, __LINE__);
//loadFn(&g_holidayNamesDB, __FILE__, __LINE__);
//loadFn(&g_holidaysDB, __FILE__, __LINE__);
//loadFn(&g_itemDB, __FILE__, __LINE__);
//loadFn(&g_itemArmorQualityDB, __FILE__, __LINE__);
//loadFn(&g_itemArmorShieldDB, __FILE__, __LINE__);
//loadFn(&g_itemArmorTotalDB, __FILE__, __LINE__);
//loadFn(&g_itemBagFamilyDB, __FILE__, __LINE__);
//loadFn(&g_itemClassDB, __FILE__, __LINE__);
//loadFn(&g_itemCondExtCostsDB, __FILE__, __LINE__);
//loadFn(&g_itemDamageAmmoDB, __FILE__, __LINE__);
//loadFn(&g_itemDamageOneHandDB, __FILE__, __LINE__);
//loadFn(&g_itemDamageOneHandCasterDB, __FILE__, __LINE__);
//loadFn(&g_itemDamageRangedDB, __FILE__, __LINE__);
//loadFn(&g_itemDamageThrownDB, __FILE__, __LINE__);
//loadFn(&g_itemDamageTwoHandDB, __FILE__, __LINE__);
//loadFn(&g_itemDamageTwoHandCasterDB, __FILE__, __LINE__);
//loadFn(&g_itemDamageWandDB, __FILE__, __LINE__);
//loadFn(&g_itemDisplayInfoDB, __FILE__, __LINE__);
//loadFn(&g_itemExtendedCostDB, __FILE__, __LINE__);
//loadFn(&g_itemGroupSoundsDB, __FILE__, __LINE__);
//loadFn(&g_itemLimitCategoryDB, __FILE__, __LINE__);
//loadFn(&g_itemPetFoodDB, __FILE__, __LINE__);
//loadFn(&g_itemPurchaseGroupDB, __FILE__, __LINE__);
//loadFn(&g_itemRandomPropertiesDB, __FILE__, __LINE__);
//loadFn(&g_itemRandomSuffixDB, __FILE__, __LINE__);
//loadFn(&g_itemReforgeDB, __FILE__, __LINE__);
//loadFn(&g_itemSetDB, __FILE__, __LINE__);
//loadFn(&g_itemSubClassDB, __FILE__, __LINE__);
//loadFn(&g_itemSubClassMaskDB, __FILE__, __LINE__);
//loadFn(&g_itemVisualEffectsDB, __FILE__, __LINE__);
//loadFn(&g_itemVisualsDB, __FILE__, __LINE__);
//loadFn(&g_lFGDungeonExpansionDB, __FILE__, __LINE__);
//loadFn(&g_lFGDungeonGroupDB, __FILE__, __LINE__);
//loadFn(&g_lFGDungeonsDB, __FILE__, __LINE__);
//loadFn(&g_languageWordsDB, __FILE__, __LINE__);
//loadFn(&g_languagesDB, __FILE__, __LINE__);
//loadFn(&g_lightDB, __FILE__, __LINE__);
//loadFn(&g_lightFloatBandDB, __FILE__, __LINE__);
//loadFn(&g_lightIntBandDB, __FILE__, __LINE__);
//loadFn(&g_lightParamsDB, __FILE__, __LINE__);
//loadFn(&g_lightSkyboxDB, __FILE__, __LINE__);
//loadFn(&g_liquidMaterialDB, __FILE__, __LINE__);
//loadFn(&g_liquidObjectDB, __FILE__, __LINE__);
//loadFn(&g_liquidTypeDB, __FILE__, __LINE__);
//loadFn(&g_loadingScreenTaxiSplinesDB, __FILE__, __LINE__);
//loadFn(&g_loadingScreensDB, __FILE__, __LINE__);
//loadFn(&g_lockDB, __FILE__, __LINE__);
//loadFn(&g_lockTypeDB, __FILE__, __LINE__);
//loadFn(&g_mailTemplateDB, __FILE__, __LINE__);
//loadFn(&g_mapDB, __FILE__, __LINE__);
//loadFn(&g_mapDifficultyDB, __FILE__, __LINE__);
//loadFn(&g_materialDB, __FILE__, __LINE__);
//loadFn(&g_mountTypeDB, __FILE__, __LINE__);
//loadFn(&g_movieDB, __FILE__, __LINE__);
//loadFn(&g_movieFileDataDB, __FILE__, __LINE__);
//loadFn(&g_movieVariationDB, __FILE__, __LINE__);
//loadFn(&g_nPCSoundsDB, __FILE__, __LINE__);
//loadFn(&g_nameGenDB, __FILE__, __LINE__);
//loadFn(&g_namesProfanityDB, __FILE__, __LINE__);
//loadFn(&g_namesReservedDB, __FILE__, __LINE__);
//loadFn(&g_objectEffectDB, __FILE__, __LINE__);
//loadFn(&g_objectEffectGroupDB, __FILE__, __LINE__);
//loadFn(&g_objectEffectModifierDB, __FILE__, __LINE__);
//loadFn(&g_objectEffectPackageDB, __FILE__, __LINE__);
//loadFn(&g_objectEffectPackageElemDB, __FILE__, __LINE__);
//loadFn(&g_overrideSpellDataDB, __FILE__, __LINE__);
//loadFn(&g_pVPDifficultyDB, __FILE__, __LINE__);
//loadFn(&g_packageDB, __FILE__, __LINE__);
//loadFn(&g_pageTextMaterialDB, __FILE__, __LINE__);
//loadFn(&g_paperDollItemFrameDB, __FILE__, __LINE__);
//loadFn(&g_particleColorDB, __FILE__, __LINE__);
//loadFn(&g_petPersonalityDB, __FILE__, __LINE__);
//loadFn(&g_petitionTypeDB, __FILE__, __LINE__);
//loadFn(&g_phaseDB, __FILE__, __LINE__);
//loadFn(&g_phaseShiftZoneSoundsDB, __FILE__, __LINE__);
//loadFn(&g_phaseXPhaseGroupDB, __FILE__, __LINE__);
//loadFn(&g_powerDisplayDB, __FILE__, __LINE__);
//loadFn(&g_questFactionRewardDB, __FILE__, __LINE__);
//loadFn(&g_questInfoDB, __FILE__, __LINE__);
//loadFn(&g_questSortDB, __FILE__, __LINE__);
//loadFn(&g_questXPDB, __FILE__, __LINE__);
//loadFn(&g_randPropPointsDB, __FILE__, __LINE__);
//loadFn(&g_researchBranchDB, __FILE__, __LINE__);
//loadFn(&g_resistancesDB, __FILE__, __LINE__);
//loadFn(&g_scalingStatDistributionDB, __FILE__, __LINE__);
//loadFn(&g_scalingStatValuesDB, __FILE__, __LINE__);
//loadFn(&g_screenEffectDB, __FILE__, __LINE__);
//loadFn(&g_serverMessagesDB, __FILE__, __LINE__);
//loadFn(&g_sheatheSoundLookupsDB, __FILE__, __LINE__);
//loadFn(&g_skillCostsDataDB, __FILE__, __LINE__);
//loadFn(&g_skillLineDB, __FILE__, __LINE__);
//loadFn(&g_skillLineAbilityDB, __FILE__, __LINE__);
//loadFn(&g_skillLineCategoryDB, __FILE__, __LINE__);
//loadFn(&g_skillRaceClassInfoDB, __FILE__, __LINE__);
//loadFn(&g_skillTiersDB, __FILE__, __LINE__);
//loadFn(&g_soundAmbienceDB, __FILE__, __LINE__);
//loadFn(&g_soundEmittersDB, __FILE__, __LINE__);
//loadFn(&g_soundEntriesDB, __FILE__, __LINE__);
//loadFn(&g_soundEntriesAdvancedDB, __FILE__, __LINE__);
//loadFn(&g_soundFilterDB, __FILE__, __LINE__);
//loadFn(&g_soundFilterElemDB, __FILE__, __LINE__);
//loadFn(&g_soundProviderPreferencesDB, __FILE__, __LINE__);
//loadFn(&g_soundSamplePreferencesDB, __FILE__, __LINE__);
//loadFn(&g_soundWaterTypeDB, __FILE__, __LINE__);
//loadFn(&g_spamMessagesDB, __FILE__, __LINE__);
//loadFn(&g_spellDB, __FILE__, __LINE__);
//loadFn(&g_spellAuraOptionsDB, __FILE__, __LINE__);
//loadFn(&g_spellAuraRestrictionsDB, __FILE__, __LINE__);
//loadFn(&g_spellCastTimesDB, __FILE__, __LINE__);
//loadFn(&g_spellCastingRequirementsDB, __FILE__, __LINE__);
//loadFn(&g_spellCategoriesDB, __FILE__, __LINE__);
//loadFn(&g_spellCategoryDB, __FILE__, __LINE__);
//loadFn(&g_spellChainEffectsDB, __FILE__, __LINE__);
//loadFn(&g_spellClassOptionsDB, __FILE__, __LINE__);
//loadFn(&g_spellCooldownsDB, __FILE__, __LINE__);
//loadFn(&g_spellDescriptionVariablesDB, __FILE__, __LINE__);
//loadFn(&g_spellDifficultyDB, __FILE__, __LINE__);
//loadFn(&g_spellDispelTypeDB, __FILE__, __LINE__);
//loadFn(&g_spellDurationDB, __FILE__, __LINE__);
//loadFn(&g_spellEffectDB, __FILE__, __LINE__);
//loadFn(&g_spellEffectCameraShakesDB, __FILE__, __LINE__);
//loadFn(&g_spellEquippedItemsDB, __FILE__, __LINE__);
//loadFn(&g_spellFocusObjectDB, __FILE__, __LINE__);
//loadFn(&g_spellIconDB, __FILE__, __LINE__);
//loadFn(&g_spellInterruptsDB, __FILE__, __LINE__);
//loadFn(&g_spellItemEnchantmentDB, __FILE__, __LINE__);
//loadFn(&g_spellItemEnchantmentConditionDB, __FILE__, __LINE__);
//loadFn(&g_spellLevelsDB, __FILE__, __LINE__);
//loadFn(&g_spellMechanicDB, __FILE__, __LINE__);
//loadFn(&g_spellMissileDB, __FILE__, __LINE__);
//loadFn(&g_spellMissileMotionDB, __FILE__, __LINE__);
//loadFn(&g_spellPowerDB, __FILE__, __LINE__);
//loadFn(&g_spellRadiusDB, __FILE__, __LINE__);
//loadFn(&g_spellRangeDB, __FILE__, __LINE__);
//loadFn(&g_spellReagentsDB, __FILE__, __LINE__);
//loadFn(&g_spellRuneCostDB, __FILE__, __LINE__);
//loadFn(&g_spellScalingDB, __FILE__, __LINE__);
//loadFn(&g_spellShapeshiftDB, __FILE__, __LINE__);
//loadFn(&g_spellShapeshiftFormDB, __FILE__, __LINE__);
//loadFn(&g_spellTargetRestrictionsDB, __FILE__, __LINE__);
//loadFn(&g_spellTotemsDB, __FILE__, __LINE__);
//loadFn(&g_spellVisualDB, __FILE__, __LINE__);
//loadFn(&g_spellVisualEffectNameDB, __FILE__, __LINE__);
//loadFn(&g_spellVisualKitDB, __FILE__, __LINE__);
//loadFn(&g_spellVisualKitAreaModelDB, __FILE__, __LINE__);
//loadFn(&g_spellVisualKitModelAttachDB, __FILE__, __LINE__);
//loadFn(&g_spellVisualPrecastTransitionsDB, __FILE__, __LINE__);
//loadFn(&g_stableSlotPricesDB, __FILE__, __LINE__);
//loadFn(&g_stationeryDB, __FILE__, __LINE__);
//loadFn(&g_stringLookupsDB, __FILE__, __LINE__);
//loadFn(&g_summonPropertiesDB, __FILE__, __LINE__);
//loadFn(&g_talentDB, __FILE__, __LINE__);
//loadFn(&g_talentTabDB, __FILE__, __LINE__);
//loadFn(&g_taxiNodesDB, __FILE__, __LINE__);
//loadFn(&g_taxiPathDB, __FILE__, __LINE__);
//loadFn(&g_taxiPathNodeDB, __FILE__, __LINE__);
//loadFn(&g_teamContributionPointsDB, __FILE__, __LINE__);
//loadFn(&g_terrainMaterialDB, __FILE__, __LINE__);
//loadFn(&g_terrainTypeDB, __FILE__, __LINE__);
//loadFn(&g_terrainTypeSoundsDB, __FILE__, __LINE__);
//loadFn(&g_totemCategoryDB, __FILE__, __LINE__);
//loadFn(&g_transportAnimationDB, __FILE__, __LINE__);
//loadFn(&g_transportPhysicsDB, __FILE__, __LINE__);
//loadFn(&g_transportRotationDB, __FILE__, __LINE__);
//loadFn(&g_uISoundLookupsDB, __FILE__, __LINE__);
//loadFn(&g_unitBloodDB, __FILE__, __LINE__);
//loadFn(&g_unitBloodLevelsDB, __FILE__, __LINE__);
//loadFn(&g_vehicleDB, __FILE__, __LINE__);
//loadFn(&g_vehicleSeatDB, __FILE__, __LINE__);
//loadFn(&g_vehicleUIIndSeatDB, __FILE__, __LINE__);
//loadFn(&g_vehicleUIIndicatorDB, __FILE__, __LINE__);
//loadFn(&g_videoHardwareDB, __FILE__, __LINE__);
//loadFn(&g_vocalUISoundsDB, __FILE__, __LINE__);
//loadFn(&g_wMOAreaTableDB, __FILE__, __LINE__);
//loadFn(&g_weaponImpactSoundsDB, __FILE__, __LINE__);
//loadFn(&g_weaponSwingSounds2DB, __FILE__, __LINE__);
//loadFn(&g_weatherDB, __FILE__, __LINE__);
//loadFn(&g_worldChunkSoundsDB, __FILE__, __LINE__);
//loadFn(&g_worldMapAreaDB, __FILE__, __LINE__);
//loadFn(&g_worldMapContinentDB, __FILE__, __LINE__);
//loadFn(&g_worldMapOverlayDB, __FILE__, __LINE__);
//loadFn(&g_worldMapTransformsDB, __FILE__, __LINE__);
//loadFn(&g_worldSafeLocsDB, __FILE__, __LINE__);
//loadFn(&g_worldStateUIDB, __FILE__, __LINE__);
//loadFn(&g_worldStateZoneSoundsDB, __FILE__, __LINE__);
//loadFn(&g_wowError_StringsDB, __FILE__, __LINE__);
//loadFn(&g_zoneIntroMusicTableDB, __FILE__, __LINE__);
//loadFn(&g_zoneLightDB, __FILE__, __LINE__);
//loadFn(&g_zoneLightPointDB, __FILE__, __LINE__);
//loadFn(&g_zoneMusicDB, __FILE__, __LINE__);
//loadFn(&g_gtBarberShopCostBaseDB, __FILE__, __LINE__);
//loadFn(&g_gtChanceToMeleeCritDB, __FILE__, __LINE__);
//loadFn(&g_gtChanceToMeleeCritBaseDB, __FILE__, __LINE__);
//loadFn(&g_gtChanceToSpellCritDB, __FILE__, __LINE__);
//loadFn(&g_gtChanceToSpellCritBaseDB, __FILE__, __LINE__);
//loadFn(&g_gtCombatRatingsDB, __FILE__, __LINE__);
//loadFn(&g_gtNPCManaCostScalerDB, __FILE__, __LINE__);
//loadFn(&g_gtOCTClassCombatRatingScalarDB, __FILE__, __LINE__);
//loadFn(&g_gtOCTRegenHPDB, __FILE__, __LINE__);
//loadFn(&g_gtOCTRegenMPDB, __FILE__, __LINE__);
//loadFn(&g_gtRegenHPPerSptDB, __FILE__, __LINE__);
//loadFn(&g_gtRegenMPPerSptDB, __FILE__, __LINE__);
//loadFn(&g_gtSpellScalingDB, __FILE__, __LINE__);
}

607
src/db/StaticDb.hpp Normal file
View File

@ -0,0 +1,607 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_STATIC_DB_HPP
#define DB_STATIC_DB_HPP
#include "db/WowClientDB_Base.hpp"
#include "db/WowClientDB.hpp"
#include "db/rec/AchievementRec.hpp"
#include "db/rec/Achievement_CategoryRec.hpp"
#include "db/rec/Achievement_CriteriaRec.hpp"
#include "db/rec/AnimKitRec.hpp"
#include "db/rec/AnimKitBoneSetRec.hpp"
#include "db/rec/AnimKitBoneSetAliasRec.hpp"
#include "db/rec/AnimKitConfigRec.hpp"
#include "db/rec/AnimKitConfigBoneSetRec.hpp"
#include "db/rec/AnimKitPriorityRec.hpp"
#include "db/rec/AnimKitSegmentRec.hpp"
#include "db/rec/AnimReplacementRec.hpp"
#include "db/rec/AnimReplacementSetRec.hpp"
#include "db/rec/AnimationDataRec.hpp"
#include "db/rec/AreaAssignmentRec.hpp"
#include "db/rec/AreaGroupRec.hpp"
#include "db/rec/AreaPOIRec.hpp"
#include "db/rec/AreaTableRec.hpp"
#include "db/rec/AreaTriggerRec.hpp"
#include "db/rec/ArmorLocationRec.hpp"
#include "db/rec/AttackAnimKitsRec.hpp"
#include "db/rec/AttackAnimTypesRec.hpp"
#include "db/rec/AuctionHouseRec.hpp"
#include "db/rec/BankBagSlotPricesRec.hpp"
#include "db/rec/BannedAddonsRec.hpp"
#include "db/rec/BarberShopStyleRec.hpp"
#include "db/rec/BattlemasterListRec.hpp"
#include "db/rec/CameraModeRec.hpp"
#include "db/rec/CameraShakesRec.hpp"
#include "db/rec/Cfg_CategoriesRec.hpp"
#include "db/rec/Cfg_ConfigsRec.hpp"
#include "db/rec/CharBaseInfoRec.hpp"
#include "db/rec/CharHairGeosetsRec.hpp"
#include "db/rec/CharHairTexturesRec.hpp"
#include "db/rec/CharSectionsRec.hpp"
#include "db/rec/CharStartOutfitRec.hpp"
#include "db/rec/CharTitlesRec.hpp"
#include "db/rec/CharVariationsRec.hpp"
#include "db/rec/CharacterFacialHairStylesRec.hpp"
#include "db/rec/ChatChannelsRec.hpp"
#include "db/rec/ChatProfanityRec.hpp"
#include "db/rec/ChrClassesRec.hpp"
#include "db/rec/ChrRacesRec.hpp"
#include "db/rec/CinematicCameraRec.hpp"
#include "db/rec/CinematicSequencesRec.hpp"
#include "db/rec/CreatureDisplayInfoRec.hpp"
#include "db/rec/CreatureDisplayInfoExtraRec.hpp"
#include "db/rec/CreatureFamilyRec.hpp"
#include "db/rec/CreatureModelDataRec.hpp"
#include "db/rec/CreatureMovementInfoRec.hpp"
#include "db/rec/CreatureSoundDataRec.hpp"
#include "db/rec/CreatureSpellDataRec.hpp"
#include "db/rec/CreatureTypeRec.hpp"
#include "db/rec/CurrencyCategoryRec.hpp"
#include "db/rec/CurrencyTypesRec.hpp"
#include "db/rec/DanceMovesRec.hpp"
#include "db/rec/DeathThudLookupsRec.hpp"
#include "db/rec/DeclinedWordRec.hpp"
#include "db/rec/DeclinedWordCasesRec.hpp"
#include "db/rec/DestructibleModelDataRec.hpp"
#include "db/rec/DungeonEncounterRec.hpp"
#include "db/rec/DungeonMapRec.hpp"
#include "db/rec/DungeonMapChunkRec.hpp"
#include "db/rec/DurabilityCostsRec.hpp"
#include "db/rec/DurabilityQualityRec.hpp"
#include "db/rec/EmotesRec.hpp"
#include "db/rec/EmotesTextRec.hpp"
#include "db/rec/EmotesTextDataRec.hpp"
#include "db/rec/EmotesTextSoundRec.hpp"
#include "db/rec/EnvironmentalDamageRec.hpp"
#include "db/rec/ExhaustionRec.hpp"
#include "db/rec/FactionRec.hpp"
#include "db/rec/FactionGroupRec.hpp"
#include "db/rec/FactionTemplateRec.hpp"
#include "db/rec/FileDataRec.hpp"
#include "db/rec/FootprintTexturesRec.hpp"
#include "db/rec/FootstepTerrainLookupRec.hpp"
#include "db/rec/GMSurveyAnswersRec.hpp"
#include "db/rec/GMSurveyCurrentSurveyRec.hpp"
#include "db/rec/GMSurveyQuestionsRec.hpp"
#include "db/rec/GMSurveySurveysRec.hpp"
#include "db/rec/GMTicketCategoryRec.hpp"
#include "db/rec/GameObjectArtKitRec.hpp"
#include "db/rec/GameObjectDisplayInfoRec.hpp"
#include "db/rec/GameTablesRec.hpp"
#include "db/rec/GameTipsRec.hpp"
#include "db/rec/GemPropertiesRec.hpp"
#include "db/rec/GlueScreenEmoteRec.hpp"
#include "db/rec/GlyphPropertiesRec.hpp"
#include "db/rec/GlyphSlotRec.hpp"
#include "db/rec/GroundEffectDoodadRec.hpp"
#include "db/rec/GroundEffectTextureRec.hpp"
#include "db/rec/GuildPerkSpellsRec.hpp"
#include "db/rec/HelmetGeosetVisDataRec.hpp"
#include "db/rec/HolidayDescriptionsRec.hpp"
#include "db/rec/HolidayNamesRec.hpp"
#include "db/rec/HolidaysRec.hpp"
#include "db/rec/ItemRec.hpp"
#include "db/rec/ItemArmorQualityRec.hpp"
#include "db/rec/ItemArmorShieldRec.hpp"
#include "db/rec/ItemArmorTotalRec.hpp"
#include "db/rec/ItemBagFamilyRec.hpp"
#include "db/rec/ItemClassRec.hpp"
#include "db/rec/ItemCondExtCostsRec.hpp"
#include "db/rec/ItemDamageAmmoRec.hpp"
#include "db/rec/ItemDamageOneHandRec.hpp"
#include "db/rec/ItemDamageOneHandCasterRec.hpp"
#include "db/rec/ItemDamageRangedRec.hpp"
#include "db/rec/ItemDamageThrownRec.hpp"
#include "db/rec/ItemDamageTwoHandRec.hpp"
#include "db/rec/ItemDamageTwoHandCasterRec.hpp"
#include "db/rec/ItemDamageWandRec.hpp"
#include "db/rec/ItemDisplayInfoRec.hpp"
#include "db/rec/ItemExtendedCostRec.hpp"
#include "db/rec/ItemGroupSoundsRec.hpp"
#include "db/rec/ItemLimitCategoryRec.hpp"
#include "db/rec/ItemPetFoodRec.hpp"
#include "db/rec/ItemPurchaseGroupRec.hpp"
#include "db/rec/ItemRandomPropertiesRec.hpp"
#include "db/rec/ItemRandomSuffixRec.hpp"
#include "db/rec/ItemReforgeRec.hpp"
#include "db/rec/ItemSetRec.hpp"
#include "db/rec/ItemSubClassRec.hpp"
#include "db/rec/ItemSubClassMaskRec.hpp"
#include "db/rec/ItemVisualEffectsRec.hpp"
#include "db/rec/ItemVisualsRec.hpp"
#include "db/rec/LFGDungeonExpansionRec.hpp"
#include "db/rec/LFGDungeonGroupRec.hpp"
#include "db/rec/LFGDungeonsRec.hpp"
#include "db/rec/LanguageWordsRec.hpp"
#include "db/rec/LanguagesRec.hpp"
#include "db/rec/LightRec.hpp"
#include "db/rec/LightFloatBandRec.hpp"
#include "db/rec/LightIntBandRec.hpp"
#include "db/rec/LightParamsRec.hpp"
#include "db/rec/LightSkyboxRec.hpp"
#include "db/rec/LiquidMaterialRec.hpp"
#include "db/rec/LiquidObjectRec.hpp"
#include "db/rec/LiquidTypeRec.hpp"
#include "db/rec/LoadingScreenTaxiSplinesRec.hpp"
#include "db/rec/LoadingScreensRec.hpp"
#include "db/rec/LockRec.hpp"
#include "db/rec/LockTypeRec.hpp"
#include "db/rec/MailTemplateRec.hpp"
#include "db/rec/MapRec.hpp"
#include "db/rec/MapDifficultyRec.hpp"
#include "db/rec/MaterialRec.hpp"
#include "db/rec/MountTypeRec.hpp"
#include "db/rec/MovieRec.hpp"
#include "db/rec/MovieFileDataRec.hpp"
#include "db/rec/MovieVariationRec.hpp"
#include "db/rec/NPCSoundsRec.hpp"
#include "db/rec/NameGenRec.hpp"
#include "db/rec/NamesProfanityRec.hpp"
#include "db/rec/NamesReservedRec.hpp"
#include "db/rec/ObjectEffectRec.hpp"
#include "db/rec/ObjectEffectGroupRec.hpp"
#include "db/rec/ObjectEffectModifierRec.hpp"
#include "db/rec/ObjectEffectPackageRec.hpp"
#include "db/rec/ObjectEffectPackageElemRec.hpp"
#include "db/rec/OverrideSpellDataRec.hpp"
#include "db/rec/PVPDifficultyRec.hpp"
#include "db/rec/PackageRec.hpp"
#include "db/rec/PageTextMaterialRec.hpp"
#include "db/rec/PaperDollItemFrameRec.hpp"
#include "db/rec/ParticleColorRec.hpp"
#include "db/rec/PetPersonalityRec.hpp"
#include "db/rec/PetitionTypeRec.hpp"
#include "db/rec/PhaseRec.hpp"
#include "db/rec/PhaseShiftZoneSoundsRec.hpp"
#include "db/rec/PhaseXPhaseGroupRec.hpp"
#include "db/rec/PowerDisplayRec.hpp"
#include "db/rec/QuestFactionRewardRec.hpp"
#include "db/rec/QuestInfoRec.hpp"
#include "db/rec/QuestSortRec.hpp"
#include "db/rec/QuestXPRec.hpp"
#include "db/rec/RandPropPointsRec.hpp"
#include "db/rec/ResearchBranchRec.hpp"
#include "db/rec/ResistancesRec.hpp"
#include "db/rec/ScalingStatDistributionRec.hpp"
#include "db/rec/ScalingStatValuesRec.hpp"
#include "db/rec/ScreenEffectRec.hpp"
#include "db/rec/ServerMessagesRec.hpp"
#include "db/rec/SheatheSoundLookupsRec.hpp"
#include "db/rec/SkillCostsDataRec.hpp"
#include "db/rec/SkillLineRec.hpp"
#include "db/rec/SkillLineAbilityRec.hpp"
#include "db/rec/SkillLineCategoryRec.hpp"
#include "db/rec/SkillRaceClassInfoRec.hpp"
#include "db/rec/SkillTiersRec.hpp"
#include "db/rec/SoundAmbienceRec.hpp"
#include "db/rec/SoundEmittersRec.hpp"
#include "db/rec/SoundEntriesRec.hpp"
#include "db/rec/SoundEntriesAdvancedRec.hpp"
#include "db/rec/SoundFilterRec.hpp"
#include "db/rec/SoundFilterElemRec.hpp"
#include "db/rec/SoundProviderPreferencesRec.hpp"
#include "db/rec/SoundSamplePreferencesRec.hpp"
#include "db/rec/SoundWaterTypeRec.hpp"
#include "db/rec/SpamMessagesRec.hpp"
#include "db/rec/SpellRec.hpp"
#include "db/rec/SpellAuraOptionsRec.hpp"
#include "db/rec/SpellAuraRestrictionsRec.hpp"
#include "db/rec/SpellCastTimesRec.hpp"
#include "db/rec/SpellCastingRequirementsRec.hpp"
#include "db/rec/SpellCategoriesRec.hpp"
#include "db/rec/SpellCategoryRec.hpp"
#include "db/rec/SpellChainEffectsRec.hpp"
#include "db/rec/SpellClassOptionsRec.hpp"
#include "db/rec/SpellCooldownsRec.hpp"
#include "db/rec/SpellDescriptionVariablesRec.hpp"
#include "db/rec/SpellDifficultyRec.hpp"
#include "db/rec/SpellDispelTypeRec.hpp"
#include "db/rec/SpellDurationRec.hpp"
#include "db/rec/SpellEffectRec.hpp"
#include "db/rec/SpellEffectCameraShakesRec.hpp"
#include "db/rec/SpellEquippedItemsRec.hpp"
#include "db/rec/SpellFocusObjectRec.hpp"
#include "db/rec/SpellIconRec.hpp"
#include "db/rec/SpellInterruptsRec.hpp"
#include "db/rec/SpellItemEnchantmentRec.hpp"
#include "db/rec/SpellItemEnchantmentConditionRec.hpp"
#include "db/rec/SpellLevelsRec.hpp"
#include "db/rec/SpellMechanicRec.hpp"
#include "db/rec/SpellMissileRec.hpp"
#include "db/rec/SpellMissileMotionRec.hpp"
#include "db/rec/SpellPowerRec.hpp"
#include "db/rec/SpellRadiusRec.hpp"
#include "db/rec/SpellRangeRec.hpp"
#include "db/rec/SpellReagentsRec.hpp"
#include "db/rec/SpellRuneCostRec.hpp"
#include "db/rec/SpellScalingRec.hpp"
#include "db/rec/SpellShapeshiftRec.hpp"
#include "db/rec/SpellShapeshiftFormRec.hpp"
#include "db/rec/SpellTargetRestrictionsRec.hpp"
#include "db/rec/SpellTotemsRec.hpp"
#include "db/rec/SpellVisualRec.hpp"
#include "db/rec/SpellVisualEffectNameRec.hpp"
#include "db/rec/SpellVisualKitRec.hpp"
#include "db/rec/SpellVisualKitAreaModelRec.hpp"
#include "db/rec/SpellVisualKitModelAttachRec.hpp"
#include "db/rec/SpellVisualPrecastTransitionsRec.hpp"
#include "db/rec/StableSlotPricesRec.hpp"
#include "db/rec/Startup_StringsRec.hpp"
#include "db/rec/StationeryRec.hpp"
#include "db/rec/StringLookupsRec.hpp"
#include "db/rec/SummonPropertiesRec.hpp"
#include "db/rec/TalentRec.hpp"
#include "db/rec/TalentTabRec.hpp"
#include "db/rec/TaxiNodesRec.hpp"
#include "db/rec/TaxiPathRec.hpp"
#include "db/rec/TaxiPathNodeRec.hpp"
#include "db/rec/TeamContributionPointsRec.hpp"
#include "db/rec/TerrainMaterialRec.hpp"
#include "db/rec/TerrainTypeRec.hpp"
#include "db/rec/TerrainTypeSoundsRec.hpp"
#include "db/rec/TotemCategoryRec.hpp"
#include "db/rec/TransportAnimationRec.hpp"
#include "db/rec/TransportPhysicsRec.hpp"
#include "db/rec/TransportRotationRec.hpp"
#include "db/rec/UISoundLookupsRec.hpp"
#include "db/rec/UnitBloodRec.hpp"
#include "db/rec/UnitBloodLevelsRec.hpp"
#include "db/rec/VehicleRec.hpp"
#include "db/rec/VehicleSeatRec.hpp"
#include "db/rec/VehicleUIIndSeatRec.hpp"
#include "db/rec/VehicleUIIndicatorRec.hpp"
#include "db/rec/VideoHardwareRec.hpp"
#include "db/rec/VocalUISoundsRec.hpp"
#include "db/rec/WMOAreaTableRec.hpp"
#include "db/rec/WeaponImpactSoundsRec.hpp"
#include "db/rec/WeaponSwingSounds2Rec.hpp"
#include "db/rec/WeatherRec.hpp"
#include "db/rec/WorldChunkSoundsRec.hpp"
#include "db/rec/WorldMapAreaRec.hpp"
#include "db/rec/WorldMapContinentRec.hpp"
#include "db/rec/WorldMapOverlayRec.hpp"
#include "db/rec/WorldMapTransformsRec.hpp"
#include "db/rec/WorldSafeLocsRec.hpp"
#include "db/rec/WorldStateUIRec.hpp"
#include "db/rec/WorldStateZoneSoundsRec.hpp"
#include "db/rec/WowError_StringsRec.hpp"
#include "db/rec/ZoneIntroMusicTableRec.hpp"
#include "db/rec/ZoneLightRec.hpp"
#include "db/rec/ZoneLightPointRec.hpp"
#include "db/rec/ZoneMusicRec.hpp"
#include "db/rec/gtBarberShopCostBaseRec.hpp"
#include "db/rec/gtChanceToMeleeCritRec.hpp"
#include "db/rec/gtChanceToMeleeCritBaseRec.hpp"
#include "db/rec/gtChanceToSpellCritRec.hpp"
#include "db/rec/gtChanceToSpellCritBaseRec.hpp"
#include "db/rec/gtCombatRatingsRec.hpp"
#include "db/rec/gtNPCManaCostScalerRec.hpp"
#include "db/rec/gtOCTClassCombatRatingScalarRec.hpp"
#include "db/rec/gtOCTRegenHPRec.hpp"
#include "db/rec/gtOCTRegenMPRec.hpp"
#include "db/rec/gtRegenHPPerSptRec.hpp"
#include "db/rec/gtRegenMPPerSptRec.hpp"
#include "db/rec/gtSpellScalingRec.hpp"
extern WowClientDB<AchievementRec> g_achievementDB;
extern WowClientDB<Achievement_CategoryRec> g_achievement_CategoryDB;
extern WowClientDB<Achievement_CriteriaRec> g_achievement_CriteriaDB;
extern WowClientDB<AnimKitRec> g_animKitDB;
extern WowClientDB<AnimKitBoneSetRec> g_animKitBoneSetDB;
extern WowClientDB<AnimKitBoneSetAliasRec> g_animKitBoneSetAliasDB;
extern WowClientDB<AnimKitConfigRec> g_animKitConfigDB;
extern WowClientDB<AnimKitConfigBoneSetRec> g_animKitConfigBoneSetDB;
extern WowClientDB<AnimKitPriorityRec> g_animKitPriorityDB;
extern WowClientDB<AnimKitSegmentRec> g_animKitSegmentDB;
extern WowClientDB<AnimReplacementRec> g_animReplacementDB;
extern WowClientDB<AnimReplacementSetRec> g_animReplacementSetDB;
extern WowClientDB<AnimationDataRec> g_animationDataDB;
extern WowClientDB<AreaAssignmentRec> g_areaAssignmentDB;
extern WowClientDB<AreaGroupRec> g_areaGroupDB;
extern WowClientDB<AreaPOIRec> g_areaPOIDB;
extern WowClientDB<AreaTableRec> g_areaTableDB;
extern WowClientDB<AreaTriggerRec> g_areaTriggerDB;
extern WowClientDB<ArmorLocationRec> g_armorLocationDB;
extern WowClientDB<AttackAnimKitsRec> g_attackAnimKitsDB;
extern WowClientDB<AttackAnimTypesRec> g_attackAnimTypesDB;
extern WowClientDB<AuctionHouseRec> g_auctionHouseDB;
extern WowClientDB<BankBagSlotPricesRec> g_bankBagSlotPricesDB;
extern WowClientDB<BannedAddonsRec> g_bannedAddonsDB;
extern WowClientDB<BarberShopStyleRec> g_barberShopStyleDB;
extern WowClientDB<BattlemasterListRec> g_battlemasterListDB;
extern WowClientDB<CameraModeRec> g_cameraModeDB;
extern WowClientDB<CameraShakesRec> g_cameraShakesDB;
extern WowClientDB<Cfg_CategoriesRec> g_cfg_CategoriesDB;
extern WowClientDB<Cfg_ConfigsRec> g_cfg_ConfigsDB;
extern WowClientDB<CharBaseInfoRec> g_charBaseInfoDB;
extern WowClientDB<CharHairGeosetsRec> g_charHairGeosetsDB;
extern WowClientDB<CharHairTexturesRec> g_charHairTexturesDB;
extern WowClientDB<CharSectionsRec> g_charSectionsDB;
extern WowClientDB<CharStartOutfitRec> g_charStartOutfitDB;
extern WowClientDB<CharTitlesRec> g_charTitlesDB;
extern WowClientDB<CharVariationsRec> g_charVariationsDB;
extern WowClientDB<CharacterFacialHairStylesRec> g_characterFacialHairStylesDB;
extern WowClientDB<ChatChannelsRec> g_chatChannelsDB;
extern WowClientDB<ChatProfanityRec> g_chatProfanityDB;
extern WowClientDB<ChrClassesRec> g_chrClassesDB;
extern WowClientDB<ChrRacesRec> g_chrRacesDB;
extern WowClientDB<CinematicCameraRec> g_cinematicCameraDB;
extern WowClientDB<CinematicSequencesRec> g_cinematicSequencesDB;
extern WowClientDB<CreatureDisplayInfoRec> g_creatureDisplayInfoDB;
extern WowClientDB<CreatureDisplayInfoExtraRec> g_creatureDisplayInfoExtraDB;
extern WowClientDB<CreatureFamilyRec> g_creatureFamilyDB;
extern WowClientDB<CreatureModelDataRec> g_creatureModelDataDB;
extern WowClientDB<CreatureMovementInfoRec> g_creatureMovementInfoDB;
extern WowClientDB<CreatureSoundDataRec> g_creatureSoundDataDB;
extern WowClientDB<CreatureSpellDataRec> g_creatureSpellDataDB;
extern WowClientDB<CreatureTypeRec> g_creatureTypeDB;
extern WowClientDB<CurrencyCategoryRec> g_currencyCategoryDB;
extern WowClientDB<CurrencyTypesRec> g_currencyTypesDB;
extern WowClientDB<DanceMovesRec> g_danceMovesDB;
extern WowClientDB<DeathThudLookupsRec> g_deathThudLookupsDB;
extern WowClientDB<DeclinedWordRec> g_declinedWordDB;
extern WowClientDB<DeclinedWordCasesRec> g_declinedWordCasesDB;
extern WowClientDB<DestructibleModelDataRec> g_destructibleModelDataDB;
extern WowClientDB<DungeonEncounterRec> g_dungeonEncounterDB;
extern WowClientDB<DungeonMapRec> g_dungeonMapDB;
extern WowClientDB<DungeonMapChunkRec> g_dungeonMapChunkDB;
extern WowClientDB<DurabilityCostsRec> g_durabilityCostsDB;
extern WowClientDB<DurabilityQualityRec> g_durabilityQualityDB;
extern WowClientDB<EmotesRec> g_emotesDB;
extern WowClientDB<EmotesTextRec> g_emotesTextDB;
extern WowClientDB<EmotesTextDataRec> g_emotesTextDataDB;
extern WowClientDB<EmotesTextSoundRec> g_emotesTextSoundDB;
extern WowClientDB<EnvironmentalDamageRec> g_environmentalDamageDB;
extern WowClientDB<ExhaustionRec> g_exhaustionDB;
extern WowClientDB<FactionRec> g_factionDB;
extern WowClientDB<FactionGroupRec> g_factionGroupDB;
extern WowClientDB<FactionTemplateRec> g_factionTemplateDB;
extern WowClientDB<FileDataRec> g_fileDataDB;
extern WowClientDB<FootprintTexturesRec> g_footprintTexturesDB;
extern WowClientDB<FootstepTerrainLookupRec> g_footstepTerrainLookupDB;
extern WowClientDB<GMSurveyAnswersRec> g_gMSurveyAnswersDB;
extern WowClientDB<GMSurveyCurrentSurveyRec> g_gMSurveyCurrentSurveyDB;
extern WowClientDB<GMSurveyQuestionsRec> g_gMSurveyQuestionsDB;
extern WowClientDB<GMSurveySurveysRec> g_gMSurveySurveysDB;
extern WowClientDB<GMTicketCategoryRec> g_gMTicketCategoryDB;
extern WowClientDB<GameObjectArtKitRec> g_gameObjectArtKitDB;
extern WowClientDB<GameObjectDisplayInfoRec> g_gameObjectDisplayInfoDB;
extern WowClientDB<GameTablesRec> g_gameTablesDB;
extern WowClientDB<GameTipsRec> g_gameTipsDB;
extern WowClientDB<GemPropertiesRec> g_gemPropertiesDB;
extern WowClientDB<GlueScreenEmoteRec> g_glueScreenEmoteDB;
extern WowClientDB<GlyphPropertiesRec> g_glyphPropertiesDB;
extern WowClientDB<GlyphSlotRec> g_glyphSlotDB;
extern WowClientDB<GroundEffectDoodadRec> g_groundEffectDoodadDB;
extern WowClientDB<GroundEffectTextureRec> g_groundEffectTextureDB;
extern WowClientDB<GuildPerkSpellsRec> g_guildPerkSpellsDB;
extern WowClientDB<HelmetGeosetVisDataRec> g_helmetGeosetVisDataDB;
extern WowClientDB<HolidayDescriptionsRec> g_holidayDescriptionsDB;
extern WowClientDB<HolidayNamesRec> g_holidayNamesDB;
extern WowClientDB<HolidaysRec> g_holidaysDB;
extern WowClientDB<ItemRec> g_itemDB;
extern WowClientDB<ItemArmorQualityRec> g_itemArmorQualityDB;
extern WowClientDB<ItemArmorShieldRec> g_itemArmorShieldDB;
extern WowClientDB<ItemArmorTotalRec> g_itemArmorTotalDB;
extern WowClientDB<ItemBagFamilyRec> g_itemBagFamilyDB;
extern WowClientDB<ItemClassRec> g_itemClassDB;
extern WowClientDB<ItemCondExtCostsRec> g_itemCondExtCostsDB;
extern WowClientDB<ItemDamageAmmoRec> g_itemDamageAmmoDB;
extern WowClientDB<ItemDamageOneHandRec> g_itemDamageOneHandDB;
extern WowClientDB<ItemDamageOneHandCasterRec> g_itemDamageOneHandCasterDB;
extern WowClientDB<ItemDamageRangedRec> g_itemDamageRangedDB;
extern WowClientDB<ItemDamageThrownRec> g_itemDamageThrownDB;
extern WowClientDB<ItemDamageTwoHandRec> g_itemDamageTwoHandDB;
extern WowClientDB<ItemDamageTwoHandCasterRec> g_itemDamageTwoHandCasterDB;
extern WowClientDB<ItemDamageWandRec> g_itemDamageWandDB;
extern WowClientDB<ItemDisplayInfoRec> g_itemDisplayInfoDB;
extern WowClientDB<ItemExtendedCostRec> g_itemExtendedCostDB;
extern WowClientDB<ItemGroupSoundsRec> g_itemGroupSoundsDB;
extern WowClientDB<ItemLimitCategoryRec> g_itemLimitCategoryDB;
extern WowClientDB<ItemPetFoodRec> g_itemPetFoodDB;
extern WowClientDB<ItemPurchaseGroupRec> g_itemPurchaseGroupDB;
extern WowClientDB<ItemRandomPropertiesRec> g_itemRandomPropertiesDB;
extern WowClientDB<ItemRandomSuffixRec> g_itemRandomSuffixDB;
extern WowClientDB<ItemReforgeRec> g_itemReforgeDB;
extern WowClientDB<ItemSetRec> g_itemSetDB;
extern WowClientDB<ItemSubClassRec> g_itemSubClassDB;
extern WowClientDB<ItemSubClassMaskRec> g_itemSubClassMaskDB;
extern WowClientDB<ItemVisualEffectsRec> g_itemVisualEffectsDB;
extern WowClientDB<ItemVisualsRec> g_itemVisualsDB;
extern WowClientDB<LFGDungeonExpansionRec> g_lFGDungeonExpansionDB;
extern WowClientDB<LFGDungeonGroupRec> g_lFGDungeonGroupDB;
extern WowClientDB<LFGDungeonsRec> g_lFGDungeonsDB;
extern WowClientDB<LanguageWordsRec> g_languageWordsDB;
extern WowClientDB<LanguagesRec> g_languagesDB;
extern WowClientDB<LightRec> g_lightDB;
extern WowClientDB<LightFloatBandRec> g_lightFloatBandDB;
extern WowClientDB<LightIntBandRec> g_lightIntBandDB;
extern WowClientDB<LightParamsRec> g_lightParamsDB;
extern WowClientDB<LightSkyboxRec> g_lightSkyboxDB;
extern WowClientDB<LiquidMaterialRec> g_liquidMaterialDB;
extern WowClientDB<LiquidObjectRec> g_liquidObjectDB;
extern WowClientDB<LiquidTypeRec> g_liquidTypeDB;
extern WowClientDB<LoadingScreenTaxiSplinesRec> g_loadingScreenTaxiSplinesDB;
extern WowClientDB<LoadingScreensRec> g_loadingScreensDB;
extern WowClientDB<LockRec> g_lockDB;
extern WowClientDB<LockTypeRec> g_lockTypeDB;
extern WowClientDB<MailTemplateRec> g_mailTemplateDB;
extern WowClientDB<MapRec> g_mapDB;
extern WowClientDB<MapDifficultyRec> g_mapDifficultyDB;
extern WowClientDB<MaterialRec> g_materialDB;
extern WowClientDB<MountTypeRec> g_mountTypeDB;
extern WowClientDB<MovieRec> g_movieDB;
extern WowClientDB<MovieFileDataRec> g_movieFileDataDB;
extern WowClientDB<MovieVariationRec> g_movieVariationDB;
extern WowClientDB<NPCSoundsRec> g_nPCSoundsDB;
extern WowClientDB<NameGenRec> g_nameGenDB;
extern WowClientDB<NamesProfanityRec> g_namesProfanityDB;
extern WowClientDB<NamesReservedRec> g_namesReservedDB;
extern WowClientDB<ObjectEffectRec> g_objectEffectDB;
extern WowClientDB<ObjectEffectGroupRec> g_objectEffectGroupDB;
extern WowClientDB<ObjectEffectModifierRec> g_objectEffectModifierDB;
extern WowClientDB<ObjectEffectPackageRec> g_objectEffectPackageDB;
extern WowClientDB<ObjectEffectPackageElemRec> g_objectEffectPackageElemDB;
extern WowClientDB<OverrideSpellDataRec> g_overrideSpellDataDB;
extern WowClientDB<PVPDifficultyRec> g_pVPDifficultyDB;
extern WowClientDB<PackageRec> g_packageDB;
extern WowClientDB<PageTextMaterialRec> g_pageTextMaterialDB;
extern WowClientDB<PaperDollItemFrameRec> g_paperDollItemFrameDB;
extern WowClientDB<ParticleColorRec> g_particleColorDB;
extern WowClientDB<PetPersonalityRec> g_petPersonalityDB;
extern WowClientDB<PetitionTypeRec> g_petitionTypeDB;
extern WowClientDB<PhaseRec> g_phaseDB;
extern WowClientDB<PhaseShiftZoneSoundsRec> g_phaseShiftZoneSoundsDB;
extern WowClientDB<PhaseXPhaseGroupRec> g_phaseXPhaseGroupDB;
extern WowClientDB<PowerDisplayRec> g_powerDisplayDB;
extern WowClientDB<QuestFactionRewardRec> g_questFactionRewardDB;
extern WowClientDB<QuestInfoRec> g_questInfoDB;
extern WowClientDB<QuestSortRec> g_questSortDB;
extern WowClientDB<QuestXPRec> g_questXPDB;
extern WowClientDB<RandPropPointsRec> g_randPropPointsDB;
extern WowClientDB<ResearchBranchRec> g_researchBranchDB;
extern WowClientDB<ResistancesRec> g_resistancesDB;
extern WowClientDB<ScalingStatDistributionRec> g_scalingStatDistributionDB;
extern WowClientDB<ScalingStatValuesRec> g_scalingStatValuesDB;
extern WowClientDB<ScreenEffectRec> g_screenEffectDB;
extern WowClientDB<ServerMessagesRec> g_serverMessagesDB;
extern WowClientDB<SheatheSoundLookupsRec> g_sheatheSoundLookupsDB;
extern WowClientDB<SkillCostsDataRec> g_skillCostsDataDB;
extern WowClientDB<SkillLineRec> g_skillLineDB;
extern WowClientDB<SkillLineAbilityRec> g_skillLineAbilityDB;
extern WowClientDB<SkillLineCategoryRec> g_skillLineCategoryDB;
extern WowClientDB<SkillRaceClassInfoRec> g_skillRaceClassInfoDB;
extern WowClientDB<SkillTiersRec> g_skillTiersDB;
extern WowClientDB<SoundAmbienceRec> g_soundAmbienceDB;
extern WowClientDB<SoundEmittersRec> g_soundEmittersDB;
extern WowClientDB<SoundEntriesRec> g_soundEntriesDB;
extern WowClientDB<SoundEntriesAdvancedRec> g_soundEntriesAdvancedDB;
extern WowClientDB<SoundFilterRec> g_soundFilterDB;
extern WowClientDB<SoundFilterElemRec> g_soundFilterElemDB;
extern WowClientDB<SoundProviderPreferencesRec> g_soundProviderPreferencesDB;
extern WowClientDB<SoundSamplePreferencesRec> g_soundSamplePreferencesDB;
extern WowClientDB<SoundWaterTypeRec> g_soundWaterTypeDB;
extern WowClientDB<SpamMessagesRec> g_spamMessagesDB;
extern WowClientDB<SpellRec> g_spellDB;
extern WowClientDB<SpellAuraOptionsRec> g_spellAuraOptionsDB;
extern WowClientDB<SpellAuraRestrictionsRec> g_spellAuraRestrictionsDB;
extern WowClientDB<SpellCastTimesRec> g_spellCastTimesDB;
extern WowClientDB<SpellCastingRequirementsRec> g_spellCastingRequirementsDB;
extern WowClientDB<SpellCategoriesRec> g_spellCategoriesDB;
extern WowClientDB<SpellCategoryRec> g_spellCategoryDB;
extern WowClientDB<SpellChainEffectsRec> g_spellChainEffectsDB;
extern WowClientDB<SpellClassOptionsRec> g_spellClassOptionsDB;
extern WowClientDB<SpellCooldownsRec> g_spellCooldownsDB;
extern WowClientDB<SpellDescriptionVariablesRec> g_spellDescriptionVariablesDB;
extern WowClientDB<SpellDifficultyRec> g_spellDifficultyDB;
extern WowClientDB<SpellDispelTypeRec> g_spellDispelTypeDB;
extern WowClientDB<SpellDurationRec> g_spellDurationDB;
extern WowClientDB<SpellEffectRec> g_spellEffectDB;
extern WowClientDB<SpellEffectCameraShakesRec> g_spellEffectCameraShakesDB;
extern WowClientDB<SpellEquippedItemsRec> g_spellEquippedItemsDB;
extern WowClientDB<SpellFocusObjectRec> g_spellFocusObjectDB;
extern WowClientDB<SpellIconRec> g_spellIconDB;
extern WowClientDB<SpellInterruptsRec> g_spellInterruptsDB;
extern WowClientDB<SpellItemEnchantmentRec> g_spellItemEnchantmentDB;
extern WowClientDB<SpellItemEnchantmentConditionRec> g_spellItemEnchantmentConditionDB;
extern WowClientDB<SpellLevelsRec> g_spellLevelsDB;
extern WowClientDB<SpellMechanicRec> g_spellMechanicDB;
extern WowClientDB<SpellMissileRec> g_spellMissileDB;
extern WowClientDB<SpellMissileMotionRec> g_spellMissileMotionDB;
extern WowClientDB<SpellPowerRec> g_spellPowerDB;
extern WowClientDB<SpellRadiusRec> g_spellRadiusDB;
extern WowClientDB<SpellRangeRec> g_spellRangeDB;
extern WowClientDB<SpellReagentsRec> g_spellReagentsDB;
extern WowClientDB<SpellRuneCostRec> g_spellRuneCostDB;
extern WowClientDB<SpellScalingRec> g_spellScalingDB;
extern WowClientDB<SpellShapeshiftRec> g_spellShapeshiftDB;
extern WowClientDB<SpellShapeshiftFormRec> g_spellShapeshiftFormDB;
extern WowClientDB<SpellTargetRestrictionsRec> g_spellTargetRestrictionsDB;
extern WowClientDB<SpellTotemsRec> g_spellTotemsDB;
extern WowClientDB<SpellVisualRec> g_spellVisualDB;
extern WowClientDB<SpellVisualEffectNameRec> g_spellVisualEffectNameDB;
extern WowClientDB<SpellVisualKitRec> g_spellVisualKitDB;
extern WowClientDB<SpellVisualKitAreaModelRec> g_spellVisualKitAreaModelDB;
extern WowClientDB<SpellVisualKitModelAttachRec> g_spellVisualKitModelAttachDB;
extern WowClientDB<SpellVisualPrecastTransitionsRec> g_spellVisualPrecastTransitionsDB;
extern WowClientDB<StableSlotPricesRec> g_stableSlotPricesDB;
extern WowClientDB<Startup_StringsRec> g_startup_StringsDB;
extern WowClientDB<StationeryRec> g_stationeryDB;
extern WowClientDB<StringLookupsRec> g_stringLookupsDB;
extern WowClientDB<SummonPropertiesRec> g_summonPropertiesDB;
extern WowClientDB<TalentRec> g_talentDB;
extern WowClientDB<TalentTabRec> g_talentTabDB;
extern WowClientDB<TaxiNodesRec> g_taxiNodesDB;
extern WowClientDB<TaxiPathRec> g_taxiPathDB;
extern WowClientDB<TaxiPathNodeRec> g_taxiPathNodeDB;
extern WowClientDB<TeamContributionPointsRec> g_teamContributionPointsDB;
extern WowClientDB<TerrainMaterialRec> g_terrainMaterialDB;
extern WowClientDB<TerrainTypeRec> g_terrainTypeDB;
extern WowClientDB<TerrainTypeSoundsRec> g_terrainTypeSoundsDB;
extern WowClientDB<TotemCategoryRec> g_totemCategoryDB;
extern WowClientDB<TransportAnimationRec> g_transportAnimationDB;
extern WowClientDB<TransportPhysicsRec> g_transportPhysicsDB;
extern WowClientDB<TransportRotationRec> g_transportRotationDB;
extern WowClientDB<UISoundLookupsRec> g_uISoundLookupsDB;
extern WowClientDB<UnitBloodRec> g_unitBloodDB;
extern WowClientDB<UnitBloodLevelsRec> g_unitBloodLevelsDB;
extern WowClientDB<VehicleRec> g_vehicleDB;
extern WowClientDB<VehicleSeatRec> g_vehicleSeatDB;
extern WowClientDB<VehicleUIIndSeatRec> g_vehicleUIIndSeatDB;
extern WowClientDB<VehicleUIIndicatorRec> g_vehicleUIIndicatorDB;
extern WowClientDB<VideoHardwareRec> g_videoHardwareDB;
extern WowClientDB<VocalUISoundsRec> g_vocalUISoundsDB;
extern WowClientDB<WMOAreaTableRec> g_wMOAreaTableDB;
extern WowClientDB<WeaponImpactSoundsRec> g_weaponImpactSoundsDB;
extern WowClientDB<WeaponSwingSounds2Rec> g_weaponSwingSounds2DB;
extern WowClientDB<WeatherRec> g_weatherDB;
extern WowClientDB<WorldChunkSoundsRec> g_worldChunkSoundsDB;
extern WowClientDB<WorldMapAreaRec> g_worldMapAreaDB;
extern WowClientDB<WorldMapContinentRec> g_worldMapContinentDB;
extern WowClientDB<WorldMapOverlayRec> g_worldMapOverlayDB;
extern WowClientDB<WorldMapTransformsRec> g_worldMapTransformsDB;
extern WowClientDB<WorldSafeLocsRec> g_worldSafeLocsDB;
extern WowClientDB<WorldStateUIRec> g_worldStateUIDB;
extern WowClientDB<WorldStateZoneSoundsRec> g_worldStateZoneSoundsDB;
extern WowClientDB<WowError_StringsRec> g_wowError_StringsDB;
extern WowClientDB<ZoneIntroMusicTableRec> g_zoneIntroMusicTableDB;
extern WowClientDB<ZoneLightRec> g_zoneLightDB;
extern WowClientDB<ZoneLightPointRec> g_zoneLightPointDB;
extern WowClientDB<ZoneMusicRec> g_zoneMusicDB;
extern WowClientDB<gtBarberShopCostBaseRec> g_gtBarberShopCostBaseDB;
extern WowClientDB<gtChanceToMeleeCritRec> g_gtChanceToMeleeCritDB;
extern WowClientDB<gtChanceToMeleeCritBaseRec> g_gtChanceToMeleeCritBaseDB;
extern WowClientDB<gtChanceToSpellCritRec> g_gtChanceToSpellCritDB;
extern WowClientDB<gtChanceToSpellCritBaseRec> g_gtChanceToSpellCritBaseDB;
extern WowClientDB<gtCombatRatingsRec> g_gtCombatRatingsDB;
extern WowClientDB<gtNPCManaCostScalerRec> g_gtNPCManaCostScalerDB;
extern WowClientDB<gtOCTClassCombatRatingScalarRec> g_gtOCTClassCombatRatingScalarDB;
extern WowClientDB<gtOCTRegenHPRec> g_gtOCTRegenHPDB;
extern WowClientDB<gtOCTRegenMPRec> g_gtOCTRegenMPDB;
extern WowClientDB<gtRegenHPPerSptRec> g_gtRegenHPPerSptDB;
extern WowClientDB<gtRegenMPPerSptRec> g_gtRegenMPPerSptDB;
extern WowClientDB<gtSpellScalingRec> g_gtSpellScalingDB;
void StaticDBLoadAll(void (*loadFn)(WowClientDB_Base*, const char*, int32_t));
#endif

View File

@ -1,3 +1,4 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AchievementRec.hpp"
#include "util/SFile.hpp"
@ -13,10 +14,18 @@ uint32_t AchievementRec::GetRowSize() {
return 248;
}
bool AchievementRec::NeedIDAssigned() {
return false;
}
int32_t AchievementRec::GetID() {
return this->m_ID;
}
void AchievementRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AchievementRec::Read(SFile* f, const char* stringBuffer) {
uint32_t titleOfs[16];
uint32_t titleMask;
@ -30,62 +39,62 @@ bool AchievementRec::Read(SFile* f, const char* stringBuffer) {
|| !SFile::Read(f, &this->m_faction, sizeof(this->m_faction), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_instanceID, sizeof(this->m_instanceID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_supercedes, sizeof(this->m_supercedes), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[0], sizeof(titleOfs[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[1], sizeof(titleOfs[1]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[2], sizeof(titleOfs[2]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[3], sizeof(titleOfs[3]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[4], sizeof(titleOfs[4]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[5], sizeof(titleOfs[5]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[6], sizeof(titleOfs[6]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[7], sizeof(titleOfs[7]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[8], sizeof(titleOfs[8]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[9], sizeof(titleOfs[9]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[10], sizeof(titleOfs[10]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[11], sizeof(titleOfs[11]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[12], sizeof(titleOfs[12]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[13], sizeof(titleOfs[13]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[14], sizeof(titleOfs[14]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[15], sizeof(titleOfs[15]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleMask, sizeof(titleMask), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[0], sizeof(descriptionOfs[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[1], sizeof(descriptionOfs[1]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[2], sizeof(descriptionOfs[2]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[3], sizeof(descriptionOfs[3]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[4], sizeof(descriptionOfs[4]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[5], sizeof(descriptionOfs[5]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[6], sizeof(descriptionOfs[6]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[7], sizeof(descriptionOfs[7]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[8], sizeof(descriptionOfs[8]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[9], sizeof(descriptionOfs[9]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[10], sizeof(descriptionOfs[10]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[11], sizeof(descriptionOfs[11]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[12], sizeof(descriptionOfs[12]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[13], sizeof(descriptionOfs[13]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[14], sizeof(descriptionOfs[14]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[15], sizeof(descriptionOfs[15]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionMask, sizeof(descriptionMask), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &titleMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_category, sizeof(this->m_category), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_points, sizeof(this->m_points), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_uiOrder, sizeof(this->m_uiOrder), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_flags, sizeof(this->m_flags), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_iconID, sizeof(this->m_iconID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[0], sizeof(rewardOfs[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[1], sizeof(rewardOfs[1]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[2], sizeof(rewardOfs[2]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[3], sizeof(rewardOfs[3]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[4], sizeof(rewardOfs[4]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[5], sizeof(rewardOfs[5]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[6], sizeof(rewardOfs[6]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[7], sizeof(rewardOfs[7]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[8], sizeof(rewardOfs[8]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[9], sizeof(rewardOfs[9]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[10], sizeof(rewardOfs[10]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[11], sizeof(rewardOfs[11]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[12], sizeof(rewardOfs[12]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[13], sizeof(rewardOfs[13]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[14], sizeof(rewardOfs[14]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[15], sizeof(rewardOfs[15]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardMask, sizeof(rewardMask), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &rewardMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_minimumCriteria, sizeof(this->m_minimumCriteria), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_sharesCriteria, sizeof(this->m_sharesCriteria), nullptr, nullptr, nullptr)
) {
@ -93,9 +102,9 @@ bool AchievementRec::Read(SFile* f, const char* stringBuffer) {
}
if (stringBuffer) {
this->m_title = &stringBuffer[titleOfs[0]];
this->m_description = &stringBuffer[descriptionOfs[0]];
this->m_reward = &stringBuffer[rewardOfs[0]];
this->m_title = &stringBuffer[titleOfs[CURRENT_LANGUAGE]];
this->m_description = &stringBuffer[descriptionOfs[CURRENT_LANGUAGE]];
this->m_reward = &stringBuffer[rewardOfs[CURRENT_LANGUAGE]];
} else {
this->m_title = "";
this->m_description = "";

View File

@ -1,3 +1,4 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_ACHIEVEMENT_REC_HPP
#define DB_REC_ACHIEVEMENT_REC_HPP
@ -25,9 +26,10 @@ class AchievementRec {
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif
#endif

View File

@ -0,0 +1,65 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/Achievement_CategoryRec.hpp"
#include "util/SFile.hpp"
const char* Achievement_CategoryRec::GetFilename() {
return "DBFilesClient\\Achievement_Category.dbc";
}
uint32_t Achievement_CategoryRec::GetNumColumns() {
return 20;
}
uint32_t Achievement_CategoryRec::GetRowSize() {
return 80;
}
bool Achievement_CategoryRec::NeedIDAssigned() {
return false;
}
int32_t Achievement_CategoryRec::GetID() {
return this->m_ID;
}
void Achievement_CategoryRec::SetID(int32_t id) {
this->m_ID = id;
}
bool Achievement_CategoryRec::Read(SFile* f, const char* stringBuffer) {
uint32_t nameOfs[16];
uint32_t nameMask;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_parent, sizeof(this->m_parent), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_uiOrder, sizeof(this->m_uiOrder), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_name = &stringBuffer[nameOfs[CURRENT_LANGUAGE]];
} else {
this->m_name = "";
}
return true;
}

View File

@ -0,0 +1,25 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_ACHIEVEMENT_CATEGORY_REC_HPP
#define DB_REC_ACHIEVEMENT_CATEGORY_REC_HPP
#include <cstdint>
class SFile;
class Achievement_CategoryRec {
public:
int32_t m_ID;
int32_t m_parent;
const char* m_name;
int32_t m_uiOrder;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,76 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/Achievement_CriteriaRec.hpp"
#include "util/SFile.hpp"
const char* Achievement_CriteriaRec::GetFilename() {
return "DBFilesClient\\Achievement_Criteria.dbc";
}
uint32_t Achievement_CriteriaRec::GetNumColumns() {
return 31;
}
uint32_t Achievement_CriteriaRec::GetRowSize() {
return 124;
}
bool Achievement_CriteriaRec::NeedIDAssigned() {
return false;
}
int32_t Achievement_CriteriaRec::GetID() {
return this->m_ID;
}
void Achievement_CriteriaRec::SetID(int32_t id) {
this->m_ID = id;
}
bool Achievement_CriteriaRec::Read(SFile* f, const char* stringBuffer) {
uint32_t descriptionOfs[16];
uint32_t descriptionMask;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_achievementID, sizeof(this->m_achievementID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_type, sizeof(this->m_type), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_assetID, sizeof(this->m_assetID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_quantity, sizeof(this->m_quantity), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_startEvent, sizeof(this->m_startEvent), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_startAsset, sizeof(this->m_startAsset), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_failEvent, sizeof(this->m_failEvent), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_failAsset, sizeof(this->m_failAsset), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_flags, sizeof(this->m_flags), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_timerStartEvent, sizeof(this->m_timerStartEvent), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_timerAssetID, sizeof(this->m_timerAssetID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_timerTime, sizeof(this->m_timerTime), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_uiOrder, sizeof(this->m_uiOrder), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_description = &stringBuffer[descriptionOfs[CURRENT_LANGUAGE]];
} else {
this->m_description = "";
}
return true;
}

View File

@ -0,0 +1,36 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_ACHIEVEMENT_CRITERIA_REC_HPP
#define DB_REC_ACHIEVEMENT_CRITERIA_REC_HPP
#include <cstdint>
class SFile;
class Achievement_CriteriaRec {
public:
int32_t m_ID;
int32_t m_achievementID;
int32_t m_type;
int32_t m_assetID;
int32_t m_quantity;
int32_t m_startEvent;
int32_t m_startAsset;
int32_t m_failEvent;
int32_t m_failAsset;
const char* m_description;
int32_t m_flags;
int32_t m_timerStartEvent;
int32_t m_timerAssetID;
int32_t m_timerTime;
int32_t m_uiOrder;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,39 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AnimKitBoneSetAliasRec.hpp"
#include "util/SFile.hpp"
const char* AnimKitBoneSetAliasRec::GetFilename() {
return "DBFilesClient\\AnimKitBoneSetAlias.dbc";
}
uint32_t AnimKitBoneSetAliasRec::GetNumColumns() {
return 3;
}
uint32_t AnimKitBoneSetAliasRec::GetRowSize() {
return 12;
}
bool AnimKitBoneSetAliasRec::NeedIDAssigned() {
return false;
}
int32_t AnimKitBoneSetAliasRec::GetID() {
return this->m_ID;
}
void AnimKitBoneSetAliasRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AnimKitBoneSetAliasRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_boneDataID, sizeof(this->m_boneDataID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_animKitBoneSetID, sizeof(this->m_animKitBoneSetID), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,24 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_ANIM_KIT_BONE_SET_ALIAS_REC_HPP
#define DB_REC_ANIM_KIT_BONE_SET_ALIAS_REC_HPP
#include <cstdint>
class SFile;
class AnimKitBoneSetAliasRec {
public:
int32_t m_ID;
int32_t m_boneDataID;
int32_t m_animKitBoneSetID;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,50 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AnimKitBoneSetRec.hpp"
#include "util/SFile.hpp"
const char* AnimKitBoneSetRec::GetFilename() {
return "DBFilesClient\\AnimKitBoneSet.dbc";
}
uint32_t AnimKitBoneSetRec::GetNumColumns() {
return 6;
}
uint32_t AnimKitBoneSetRec::GetRowSize() {
return 24;
}
bool AnimKitBoneSetRec::NeedIDAssigned() {
return false;
}
int32_t AnimKitBoneSetRec::GetID() {
return this->m_ID;
}
void AnimKitBoneSetRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AnimKitBoneSetRec::Read(SFile* f, const char* stringBuffer) {
uint32_t nameOfs;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_boneDataID, sizeof(this->m_boneDataID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_parentAnimKitBoneSetID, sizeof(this->m_parentAnimKitBoneSetID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_extraBoneCount, sizeof(this->m_extraBoneCount), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_altAnimKitBoneSetID, sizeof(this->m_altAnimKitBoneSetID), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_name = &stringBuffer[nameOfs];
} else {
this->m_name = "";
}
return true;
}

View File

@ -0,0 +1,27 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_ANIM_KIT_BONE_SET_REC_HPP
#define DB_REC_ANIM_KIT_BONE_SET_REC_HPP
#include <cstdint>
class SFile;
class AnimKitBoneSetRec {
public:
int32_t m_ID;
const char* m_name;
int32_t m_boneDataID;
int32_t m_parentAnimKitBoneSetID;
int32_t m_extraBoneCount;
int32_t m_altAnimKitBoneSetID;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,40 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AnimKitConfigBoneSetRec.hpp"
#include "util/SFile.hpp"
const char* AnimKitConfigBoneSetRec::GetFilename() {
return "DBFilesClient\\AnimKitConfigBoneSet.dbc";
}
uint32_t AnimKitConfigBoneSetRec::GetNumColumns() {
return 4;
}
uint32_t AnimKitConfigBoneSetRec::GetRowSize() {
return 16;
}
bool AnimKitConfigBoneSetRec::NeedIDAssigned() {
return false;
}
int32_t AnimKitConfigBoneSetRec::GetID() {
return this->m_ID;
}
void AnimKitConfigBoneSetRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AnimKitConfigBoneSetRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_parentAnimKitConfigID, sizeof(this->m_parentAnimKitConfigID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_animKitBoneSetID, sizeof(this->m_animKitBoneSetID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_animKitPriorityID, sizeof(this->m_animKitPriorityID), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,25 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_ANIM_KIT_CONFIG_BONE_SET_REC_HPP
#define DB_REC_ANIM_KIT_CONFIG_BONE_SET_REC_HPP
#include <cstdint>
class SFile;
class AnimKitConfigBoneSetRec {
public:
int32_t m_ID;
int32_t m_parentAnimKitConfigID;
int32_t m_animKitBoneSetID;
int32_t m_animKitPriorityID;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,38 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AnimKitConfigRec.hpp"
#include "util/SFile.hpp"
const char* AnimKitConfigRec::GetFilename() {
return "DBFilesClient\\AnimKitConfig.dbc";
}
uint32_t AnimKitConfigRec::GetNumColumns() {
return 2;
}
uint32_t AnimKitConfigRec::GetRowSize() {
return 8;
}
bool AnimKitConfigRec::NeedIDAssigned() {
return false;
}
int32_t AnimKitConfigRec::GetID() {
return this->m_ID;
}
void AnimKitConfigRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AnimKitConfigRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_configFlags, sizeof(this->m_configFlags), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,23 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_ANIM_KIT_CONFIG_REC_HPP
#define DB_REC_ANIM_KIT_CONFIG_REC_HPP
#include <cstdint>
class SFile;
class AnimKitConfigRec {
public:
int32_t m_ID;
int32_t m_configFlags;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,38 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AnimKitPriorityRec.hpp"
#include "util/SFile.hpp"
const char* AnimKitPriorityRec::GetFilename() {
return "DBFilesClient\\AnimKitPriority.dbc";
}
uint32_t AnimKitPriorityRec::GetNumColumns() {
return 2;
}
uint32_t AnimKitPriorityRec::GetRowSize() {
return 8;
}
bool AnimKitPriorityRec::NeedIDAssigned() {
return false;
}
int32_t AnimKitPriorityRec::GetID() {
return this->m_ID;
}
void AnimKitPriorityRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AnimKitPriorityRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_priority, sizeof(this->m_priority), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,23 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_ANIM_KIT_PRIORITY_REC_HPP
#define DB_REC_ANIM_KIT_PRIORITY_REC_HPP
#include <cstdint>
class SFile;
class AnimKitPriorityRec {
public:
int32_t m_ID;
int32_t m_priority;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

39
src/db/rec/AnimKitRec.cpp Normal file
View File

@ -0,0 +1,39 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AnimKitRec.hpp"
#include "util/SFile.hpp"
const char* AnimKitRec::GetFilename() {
return "DBFilesClient\\AnimKit.dbc";
}
uint32_t AnimKitRec::GetNumColumns() {
return 3;
}
uint32_t AnimKitRec::GetRowSize() {
return 12;
}
bool AnimKitRec::NeedIDAssigned() {
return false;
}
int32_t AnimKitRec::GetID() {
return this->m_ID;
}
void AnimKitRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AnimKitRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_oneShotDuration, sizeof(this->m_oneShotDuration), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_oneShotStopAnimKitID, sizeof(this->m_oneShotStopAnimKitID), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

24
src/db/rec/AnimKitRec.hpp Normal file
View File

@ -0,0 +1,24 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_ANIM_KIT_REC_HPP
#define DB_REC_ANIM_KIT_REC_HPP
#include <cstdint>
class SFile;
class AnimKitRec {
public:
int32_t m_ID;
int32_t m_oneShotDuration;
int32_t m_oneShotStopAnimKitID;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,52 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AnimKitSegmentRec.hpp"
#include "util/SFile.hpp"
const char* AnimKitSegmentRec::GetFilename() {
return "DBFilesClient\\AnimKitSegment.dbc";
}
uint32_t AnimKitSegmentRec::GetNumColumns() {
return 16;
}
uint32_t AnimKitSegmentRec::GetRowSize() {
return 64;
}
bool AnimKitSegmentRec::NeedIDAssigned() {
return false;
}
int32_t AnimKitSegmentRec::GetID() {
return this->m_ID;
}
void AnimKitSegmentRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AnimKitSegmentRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_parentAnimKitID, sizeof(this->m_parentAnimKitID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_animID, sizeof(this->m_animID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_animStartTime, sizeof(this->m_animStartTime), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_animKitConfigID, sizeof(this->m_animKitConfigID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_startCondition, sizeof(this->m_startCondition), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_startConditionParam, sizeof(this->m_startConditionParam), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_startConditionDelay, sizeof(this->m_startConditionDelay), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_endCondition, sizeof(this->m_endCondition), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_endConditionParam, sizeof(this->m_endConditionParam), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_endConditionDelay, sizeof(this->m_endConditionDelay), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_speed, sizeof(this->m_speed), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_segmentFlags, sizeof(this->m_segmentFlags), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_forcedVariation, sizeof(this->m_forcedVariation), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_overrideConfigFlags, sizeof(this->m_overrideConfigFlags), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_loopToSegmentIndex, sizeof(this->m_loopToSegmentIndex), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,37 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_ANIM_KIT_SEGMENT_REC_HPP
#define DB_REC_ANIM_KIT_SEGMENT_REC_HPP
#include <cstdint>
class SFile;
class AnimKitSegmentRec {
public:
int32_t m_ID;
int32_t m_parentAnimKitID;
int32_t m_animID;
int32_t m_animStartTime;
int32_t m_animKitConfigID;
int32_t m_startCondition;
int32_t m_startConditionParam;
int32_t m_startConditionDelay;
int32_t m_endCondition;
int32_t m_endConditionParam;
int32_t m_endConditionDelay;
float m_speed;
int32_t m_segmentFlags;
int32_t m_forcedVariation;
int32_t m_overrideConfigFlags;
int32_t m_loopToSegmentIndex;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,40 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AnimReplacementRec.hpp"
#include "util/SFile.hpp"
const char* AnimReplacementRec::GetFilename() {
return "DBFilesClient\\AnimReplacement.dbc";
}
uint32_t AnimReplacementRec::GetNumColumns() {
return 4;
}
uint32_t AnimReplacementRec::GetRowSize() {
return 16;
}
bool AnimReplacementRec::NeedIDAssigned() {
return false;
}
int32_t AnimReplacementRec::GetID() {
return this->m_ID;
}
void AnimReplacementRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AnimReplacementRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_srcAnimID, sizeof(this->m_srcAnimID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_dstAnimID, sizeof(this->m_dstAnimID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_parentAnimReplacementSetID, sizeof(this->m_parentAnimReplacementSetID), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,25 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_ANIM_REPLACEMENT_REC_HPP
#define DB_REC_ANIM_REPLACEMENT_REC_HPP
#include <cstdint>
class SFile;
class AnimReplacementRec {
public:
int32_t m_ID;
int32_t m_srcAnimID;
int32_t m_dstAnimID;
int32_t m_parentAnimReplacementSetID;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,38 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AnimReplacementSetRec.hpp"
#include "util/SFile.hpp"
const char* AnimReplacementSetRec::GetFilename() {
return "DBFilesClient\\AnimReplacementSet.dbc";
}
uint32_t AnimReplacementSetRec::GetNumColumns() {
return 2;
}
uint32_t AnimReplacementSetRec::GetRowSize() {
return 8;
}
bool AnimReplacementSetRec::NeedIDAssigned() {
return false;
}
int32_t AnimReplacementSetRec::GetID() {
return this->m_ID;
}
void AnimReplacementSetRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AnimReplacementSetRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_execOrder, sizeof(this->m_execOrder), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,23 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_ANIM_REPLACEMENT_SET_REC_HPP
#define DB_REC_ANIM_REPLACEMENT_SET_REC_HPP
#include <cstdint>
class SFile;
class AnimReplacementSetRec {
public:
int32_t m_ID;
int32_t m_execOrder;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,52 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AnimationDataRec.hpp"
#include "util/SFile.hpp"
const char* AnimationDataRec::GetFilename() {
return "DBFilesClient\\AnimationData.dbc";
}
uint32_t AnimationDataRec::GetNumColumns() {
return 8;
}
uint32_t AnimationDataRec::GetRowSize() {
return 32;
}
bool AnimationDataRec::NeedIDAssigned() {
return false;
}
int32_t AnimationDataRec::GetID() {
return this->m_ID;
}
void AnimationDataRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AnimationDataRec::Read(SFile* f, const char* stringBuffer) {
uint32_t nameOfs;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_weaponflags, sizeof(this->m_weaponflags), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_bodyflags, sizeof(this->m_bodyflags), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_flags, sizeof(this->m_flags), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_fallback, sizeof(this->m_fallback), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_behaviorID, sizeof(this->m_behaviorID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_behaviorTier, sizeof(this->m_behaviorTier), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_name = &stringBuffer[nameOfs];
} else {
this->m_name = "";
}
return true;
}

View File

@ -0,0 +1,29 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_ANIMATION_DATA_REC_HPP
#define DB_REC_ANIMATION_DATA_REC_HPP
#include <cstdint>
class SFile;
class AnimationDataRec {
public:
int32_t m_ID;
const char* m_name;
int32_t m_weaponflags;
int32_t m_bodyflags;
int32_t m_flags;
int32_t m_fallback;
int32_t m_behaviorID;
int32_t m_behaviorTier;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,41 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AreaAssignmentRec.hpp"
#include "util/SFile.hpp"
const char* AreaAssignmentRec::GetFilename() {
return "DBFilesClient\\AreaAssignment.dbc";
}
uint32_t AreaAssignmentRec::GetNumColumns() {
return 5;
}
uint32_t AreaAssignmentRec::GetRowSize() {
return 20;
}
bool AreaAssignmentRec::NeedIDAssigned() {
return false;
}
int32_t AreaAssignmentRec::GetID() {
return this->m_ID;
}
void AreaAssignmentRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AreaAssignmentRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_mapID, sizeof(this->m_mapID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_areaID, sizeof(this->m_areaID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_chunkX, sizeof(this->m_chunkX), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_chunkY, sizeof(this->m_chunkY), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,26 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_AREA_ASSIGNMENT_REC_HPP
#define DB_REC_AREA_ASSIGNMENT_REC_HPP
#include <cstdint>
class SFile;
class AreaAssignmentRec {
public:
int32_t m_ID;
int32_t m_mapID;
int32_t m_areaID;
int32_t m_chunkX;
int32_t m_chunkY;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,44 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AreaGroupRec.hpp"
#include "util/SFile.hpp"
const char* AreaGroupRec::GetFilename() {
return "DBFilesClient\\AreaGroup.dbc";
}
uint32_t AreaGroupRec::GetNumColumns() {
return 8;
}
uint32_t AreaGroupRec::GetRowSize() {
return 32;
}
bool AreaGroupRec::NeedIDAssigned() {
return false;
}
int32_t AreaGroupRec::GetID() {
return this->m_ID;
}
void AreaGroupRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AreaGroupRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_areaID[0], sizeof(m_areaID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_areaID[1], sizeof(m_areaID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_areaID[2], sizeof(m_areaID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_areaID[3], sizeof(m_areaID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_areaID[4], sizeof(m_areaID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_areaID[5], sizeof(m_areaID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_nextAreaID, sizeof(this->m_nextAreaID), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,24 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_AREA_GROUP_REC_HPP
#define DB_REC_AREA_GROUP_REC_HPP
#include <cstdint>
class SFile;
class AreaGroupRec {
public:
int32_t m_ID;
int32_t m_areaID[6];
int32_t m_nextAreaID;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

103
src/db/rec/AreaPOIRec.cpp Normal file
View File

@ -0,0 +1,103 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AreaPOIRec.hpp"
#include "util/SFile.hpp"
const char* AreaPOIRec::GetFilename() {
return "DBFilesClient\\AreaPOI.dbc";
}
uint32_t AreaPOIRec::GetNumColumns() {
return 54;
}
uint32_t AreaPOIRec::GetRowSize() {
return 216;
}
bool AreaPOIRec::NeedIDAssigned() {
return false;
}
int32_t AreaPOIRec::GetID() {
return this->m_ID;
}
void AreaPOIRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AreaPOIRec::Read(SFile* f, const char* stringBuffer) {
uint32_t nameOfs[16];
uint32_t nameMask;
uint32_t descriptionOfs[16];
uint32_t descriptionMask;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_importance, sizeof(this->m_importance), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_icon[0], sizeof(m_icon[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_icon[1], sizeof(m_icon[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_icon[2], sizeof(m_icon[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_icon[3], sizeof(m_icon[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_icon[4], sizeof(m_icon[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_icon[5], sizeof(m_icon[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_icon[6], sizeof(m_icon[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_icon[7], sizeof(m_icon[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_icon[8], sizeof(m_icon[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_factionID, sizeof(this->m_factionID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_pos[0], sizeof(m_pos[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_pos[1], sizeof(m_pos[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_pos[2], sizeof(m_pos[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_continentID, sizeof(this->m_continentID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_flags, sizeof(this->m_flags), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_areaID, sizeof(this->m_areaID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_worldStateID, sizeof(this->m_worldStateID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_worldMapLink, sizeof(this->m_worldMapLink), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_name = &stringBuffer[nameOfs[CURRENT_LANGUAGE]];
this->m_description = &stringBuffer[descriptionOfs[CURRENT_LANGUAGE]];
} else {
this->m_name = "";
this->m_description = "";
}
return true;
}

33
src/db/rec/AreaPOIRec.hpp Normal file
View File

@ -0,0 +1,33 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_AREA_POI_REC_HPP
#define DB_REC_AREA_POI_REC_HPP
#include <cstdint>
class SFile;
class AreaPOIRec {
public:
int32_t m_ID;
int32_t m_importance;
int32_t m_icon[9];
int32_t m_factionID;
float m_pos[3];
int32_t m_continentID;
int32_t m_flags;
int32_t m_areaID;
const char* m_name;
const char* m_description;
int32_t m_worldStateID;
int32_t m_worldMapLink;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,81 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AreaTableRec.hpp"
#include "util/SFile.hpp"
const char* AreaTableRec::GetFilename() {
return "DBFilesClient\\AreaTable.dbc";
}
uint32_t AreaTableRec::GetNumColumns() {
return 36;
}
uint32_t AreaTableRec::GetRowSize() {
return 144;
}
bool AreaTableRec::NeedIDAssigned() {
return false;
}
int32_t AreaTableRec::GetID() {
return this->m_ID;
}
void AreaTableRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AreaTableRec::Read(SFile* f, const char* stringBuffer) {
uint32_t areaNameOfs[16];
uint32_t areaNameMask;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_continentID, sizeof(this->m_continentID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_parentAreaID, sizeof(this->m_parentAreaID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_areaBit, sizeof(this->m_areaBit), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_flags, sizeof(this->m_flags), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_soundProviderPref, sizeof(this->m_soundProviderPref), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_soundProviderPrefUnderwater, sizeof(this->m_soundProviderPrefUnderwater), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_ambienceID, sizeof(this->m_ambienceID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_zoneMusic, sizeof(this->m_zoneMusic), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_introSound, sizeof(this->m_introSound), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_explorationLevel, sizeof(this->m_explorationLevel), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &areaNameMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_factionGroupMask, sizeof(this->m_factionGroupMask), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_liquidTypeID[0], sizeof(m_liquidTypeID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_liquidTypeID[1], sizeof(m_liquidTypeID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_liquidTypeID[2], sizeof(m_liquidTypeID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_liquidTypeID[3], sizeof(m_liquidTypeID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_minElevation, sizeof(this->m_minElevation), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_ambientMultiplier, sizeof(this->m_ambientMultiplier), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_lightID, sizeof(this->m_lightID), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_areaName = &stringBuffer[areaNameOfs[CURRENT_LANGUAGE]];
} else {
this->m_areaName = "";
}
return true;
}

View File

@ -0,0 +1,38 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_AREA_TABLE_REC_HPP
#define DB_REC_AREA_TABLE_REC_HPP
#include <cstdint>
class SFile;
class AreaTableRec {
public:
int32_t m_ID;
int32_t m_continentID;
int32_t m_parentAreaID;
int32_t m_areaBit;
int32_t m_flags;
int32_t m_soundProviderPref;
int32_t m_soundProviderPrefUnderwater;
int32_t m_ambienceID;
int32_t m_zoneMusic;
int32_t m_introSound;
int32_t m_explorationLevel;
const char* m_areaName;
int32_t m_factionGroupMask;
int32_t m_liquidTypeID[4];
float m_minElevation;
float m_ambientMultiplier;
int32_t m_lightID;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,46 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AreaTriggerRec.hpp"
#include "util/SFile.hpp"
const char* AreaTriggerRec::GetFilename() {
return "DBFilesClient\\AreaTrigger.dbc";
}
uint32_t AreaTriggerRec::GetNumColumns() {
return 10;
}
uint32_t AreaTriggerRec::GetRowSize() {
return 40;
}
bool AreaTriggerRec::NeedIDAssigned() {
return false;
}
int32_t AreaTriggerRec::GetID() {
return this->m_ID;
}
void AreaTriggerRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AreaTriggerRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_continentID, sizeof(this->m_continentID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_pos[0], sizeof(m_pos[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_pos[1], sizeof(m_pos[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_pos[2], sizeof(m_pos[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_radius, sizeof(this->m_radius), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_boxLength, sizeof(this->m_boxLength), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_boxWidth, sizeof(this->m_boxWidth), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_boxHeight, sizeof(this->m_boxHeight), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_boxYaw, sizeof(this->m_boxYaw), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,29 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_AREA_TRIGGER_REC_HPP
#define DB_REC_AREA_TRIGGER_REC_HPP
#include <cstdint>
class SFile;
class AreaTriggerRec {
public:
int32_t m_ID;
int32_t m_continentID;
float m_pos[3];
float m_radius;
float m_boxLength;
float m_boxWidth;
float m_boxHeight;
float m_boxYaw;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,42 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/ArmorLocationRec.hpp"
#include "util/SFile.hpp"
const char* ArmorLocationRec::GetFilename() {
return "DBFilesClient\\ArmorLocation.dbc";
}
uint32_t ArmorLocationRec::GetNumColumns() {
return 6;
}
uint32_t ArmorLocationRec::GetRowSize() {
return 24;
}
bool ArmorLocationRec::NeedIDAssigned() {
return false;
}
int32_t ArmorLocationRec::GetID() {
return this->m_ID;
}
void ArmorLocationRec::SetID(int32_t id) {
this->m_ID = id;
}
bool ArmorLocationRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_clothmodifier, sizeof(this->m_clothmodifier), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_leathermodifier, sizeof(this->m_leathermodifier), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_chainmodifier, sizeof(this->m_chainmodifier), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_platemodifier, sizeof(this->m_platemodifier), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_modifier, sizeof(this->m_modifier), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,27 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_ARMOR_LOCATION_REC_HPP
#define DB_REC_ARMOR_LOCATION_REC_HPP
#include <cstdint>
class SFile;
class ArmorLocationRec {
public:
int32_t m_ID;
float m_clothmodifier;
float m_leathermodifier;
float m_chainmodifier;
float m_platemodifier;
float m_modifier;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,41 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AttackAnimKitsRec.hpp"
#include "util/SFile.hpp"
const char* AttackAnimKitsRec::GetFilename() {
return "DBFilesClient\\AttackAnimKits.dbc";
}
uint32_t AttackAnimKitsRec::GetNumColumns() {
return 5;
}
uint32_t AttackAnimKitsRec::GetRowSize() {
return 20;
}
bool AttackAnimKitsRec::NeedIDAssigned() {
return false;
}
int32_t AttackAnimKitsRec::GetID() {
return this->m_ID;
}
void AttackAnimKitsRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AttackAnimKitsRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemSubclassID, sizeof(this->m_itemSubclassID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_animTypeID, sizeof(this->m_animTypeID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_animFrequency, sizeof(this->m_animFrequency), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_whichHand, sizeof(this->m_whichHand), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,26 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_ATTACK_ANIM_KITS_REC_HPP
#define DB_REC_ATTACK_ANIM_KITS_REC_HPP
#include <cstdint>
class SFile;
class AttackAnimKitsRec {
public:
int32_t m_ID;
int32_t m_itemSubclassID;
int32_t m_animTypeID;
int32_t m_animFrequency;
int32_t m_whichHand;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,46 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AttackAnimTypesRec.hpp"
#include "util/SFile.hpp"
const char* AttackAnimTypesRec::GetFilename() {
return "DBFilesClient\\AttackAnimTypes.dbc";
}
uint32_t AttackAnimTypesRec::GetNumColumns() {
return 2;
}
uint32_t AttackAnimTypesRec::GetRowSize() {
return 8;
}
bool AttackAnimTypesRec::NeedIDAssigned() {
return true;
}
int32_t AttackAnimTypesRec::GetID() {
return this->m_generatedID;
}
void AttackAnimTypesRec::SetID(int32_t id) {
this->m_generatedID = id;
}
bool AttackAnimTypesRec::Read(SFile* f, const char* stringBuffer) {
uint32_t animNameOfs;
if (
!SFile::Read(f, &this->m_animID, sizeof(this->m_animID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &animNameOfs, sizeof(uint32_t), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_animName = &stringBuffer[animNameOfs];
} else {
this->m_animName = "";
}
return true;
}

View File

@ -0,0 +1,24 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_ATTACK_ANIM_TYPES_REC_HPP
#define DB_REC_ATTACK_ANIM_TYPES_REC_HPP
#include <cstdint>
class SFile;
class AttackAnimTypesRec {
public:
int32_t m_animID;
const char* m_animName;
int32_t m_generatedID;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,66 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/AuctionHouseRec.hpp"
#include "util/SFile.hpp"
const char* AuctionHouseRec::GetFilename() {
return "DBFilesClient\\AuctionHouse.dbc";
}
uint32_t AuctionHouseRec::GetNumColumns() {
return 21;
}
uint32_t AuctionHouseRec::GetRowSize() {
return 84;
}
bool AuctionHouseRec::NeedIDAssigned() {
return false;
}
int32_t AuctionHouseRec::GetID() {
return this->m_ID;
}
void AuctionHouseRec::SetID(int32_t id) {
this->m_ID = id;
}
bool AuctionHouseRec::Read(SFile* f, const char* stringBuffer) {
uint32_t nameOfs[16];
uint32_t nameMask;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_factionID, sizeof(this->m_factionID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_depositRate, sizeof(this->m_depositRate), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_consignmentRate, sizeof(this->m_consignmentRate), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_name = &stringBuffer[nameOfs[CURRENT_LANGUAGE]];
} else {
this->m_name = "";
}
return true;
}

View File

@ -0,0 +1,26 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_AUCTION_HOUSE_REC_HPP
#define DB_REC_AUCTION_HOUSE_REC_HPP
#include <cstdint>
class SFile;
class AuctionHouseRec {
public:
int32_t m_ID;
int32_t m_factionID;
int32_t m_depositRate;
int32_t m_consignmentRate;
const char* m_name;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,38 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/BankBagSlotPricesRec.hpp"
#include "util/SFile.hpp"
const char* BankBagSlotPricesRec::GetFilename() {
return "DBFilesClient\\BankBagSlotPrices.dbc";
}
uint32_t BankBagSlotPricesRec::GetNumColumns() {
return 2;
}
uint32_t BankBagSlotPricesRec::GetRowSize() {
return 8;
}
bool BankBagSlotPricesRec::NeedIDAssigned() {
return false;
}
int32_t BankBagSlotPricesRec::GetID() {
return this->m_ID;
}
void BankBagSlotPricesRec::SetID(int32_t id) {
this->m_ID = id;
}
bool BankBagSlotPricesRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_cost, sizeof(this->m_cost), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,23 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_BANK_BAG_SLOT_PRICES_REC_HPP
#define DB_REC_BANK_BAG_SLOT_PRICES_REC_HPP
#include <cstdint>
class SFile;
class BankBagSlotPricesRec {
public:
int32_t m_ID;
int32_t m_cost;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,47 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/BannedAddonsRec.hpp"
#include "util/SFile.hpp"
const char* BannedAddonsRec::GetFilename() {
return "DBFilesClient\\BannedAddons.dbc";
}
uint32_t BannedAddonsRec::GetNumColumns() {
return 11;
}
uint32_t BannedAddonsRec::GetRowSize() {
return 44;
}
bool BannedAddonsRec::NeedIDAssigned() {
return false;
}
int32_t BannedAddonsRec::GetID() {
return this->m_ID;
}
void BannedAddonsRec::SetID(int32_t id) {
this->m_ID = id;
}
bool BannedAddonsRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_nameMd5[0], sizeof(m_nameMd5[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_nameMd5[1], sizeof(m_nameMd5[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_nameMd5[2], sizeof(m_nameMd5[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_nameMd5[3], sizeof(m_nameMd5[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_versionMd5[0], sizeof(m_versionMd5[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_versionMd5[1], sizeof(m_versionMd5[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_versionMd5[2], sizeof(m_versionMd5[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_versionMd5[3], sizeof(m_versionMd5[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_lastModified, sizeof(this->m_lastModified), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_flags, sizeof(this->m_flags), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,26 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_BANNED_ADDONS_REC_HPP
#define DB_REC_BANNED_ADDONS_REC_HPP
#include <cstdint>
class SFile;
class BannedAddonsRec {
public:
int32_t m_ID;
int32_t m_nameMd5[4];
int32_t m_versionMd5[4];
int32_t m_lastModified;
int32_t m_flags;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,89 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/BarberShopStyleRec.hpp"
#include "util/SFile.hpp"
const char* BarberShopStyleRec::GetFilename() {
return "DBFilesClient\\BarberShopStyle.dbc";
}
uint32_t BarberShopStyleRec::GetNumColumns() {
return 40;
}
uint32_t BarberShopStyleRec::GetRowSize() {
return 160;
}
bool BarberShopStyleRec::NeedIDAssigned() {
return false;
}
int32_t BarberShopStyleRec::GetID() {
return this->m_ID;
}
void BarberShopStyleRec::SetID(int32_t id) {
this->m_ID = id;
}
bool BarberShopStyleRec::Read(SFile* f, const char* stringBuffer) {
uint32_t displayNameOfs[16];
uint32_t displayNameMask;
uint32_t descriptionOfs[16];
uint32_t descriptionMask;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_type, sizeof(this->m_type), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &displayNameMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &descriptionMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_costModifier, sizeof(this->m_costModifier), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_race, sizeof(this->m_race), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_sex, sizeof(this->m_sex), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_data, sizeof(this->m_data), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_displayName = &stringBuffer[displayNameOfs[CURRENT_LANGUAGE]];
this->m_description = &stringBuffer[descriptionOfs[CURRENT_LANGUAGE]];
} else {
this->m_displayName = "";
this->m_description = "";
}
return true;
}

View File

@ -0,0 +1,29 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_BARBER_SHOP_STYLE_REC_HPP
#define DB_REC_BARBER_SHOP_STYLE_REC_HPP
#include <cstdint>
class SFile;
class BarberShopStyleRec {
public:
int32_t m_ID;
int32_t m_type;
const char* m_displayName;
const char* m_description;
float m_costModifier;
int32_t m_race;
int32_t m_sex;
int32_t m_data;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,77 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/BattlemasterListRec.hpp"
#include "util/SFile.hpp"
const char* BattlemasterListRec::GetFilename() {
return "DBFilesClient\\BattlemasterList.dbc";
}
uint32_t BattlemasterListRec::GetNumColumns() {
return 32;
}
uint32_t BattlemasterListRec::GetRowSize() {
return 128;
}
bool BattlemasterListRec::NeedIDAssigned() {
return false;
}
int32_t BattlemasterListRec::GetID() {
return this->m_ID;
}
void BattlemasterListRec::SetID(int32_t id) {
this->m_ID = id;
}
bool BattlemasterListRec::Read(SFile* f, const char* stringBuffer) {
uint32_t nameOfs[16];
uint32_t nameMask;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_mapID[0], sizeof(m_mapID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_mapID[1], sizeof(m_mapID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_mapID[2], sizeof(m_mapID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_mapID[3], sizeof(m_mapID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_mapID[4], sizeof(m_mapID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_mapID[5], sizeof(m_mapID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_mapID[6], sizeof(m_mapID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_mapID[7], sizeof(m_mapID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_instanceType, sizeof(this->m_instanceType), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_groupsAllowed, sizeof(this->m_groupsAllowed), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_maxGroupSize, sizeof(this->m_maxGroupSize), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_holidayWorldState, sizeof(this->m_holidayWorldState), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_minLevel, sizeof(this->m_minLevel), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_maxLevel, sizeof(this->m_maxLevel), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_name = &stringBuffer[nameOfs[CURRENT_LANGUAGE]];
} else {
this->m_name = "";
}
return true;
}

View File

@ -0,0 +1,30 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_BATTLEMASTER_LIST_REC_HPP
#define DB_REC_BATTLEMASTER_LIST_REC_HPP
#include <cstdint>
class SFile;
class BattlemasterListRec {
public:
int32_t m_ID;
int32_t m_mapID[8];
int32_t m_instanceType;
int32_t m_groupsAllowed;
const char* m_name;
int32_t m_maxGroupSize;
int32_t m_holidayWorldState;
int32_t m_minLevel;
int32_t m_maxLevel;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,61 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/CameraModeRec.hpp"
#include "util/SFile.hpp"
const char* CameraModeRec::GetFilename() {
return "DBFilesClient\\CameraMode.dbc";
}
uint32_t CameraModeRec::GetNumColumns() {
return 17;
}
uint32_t CameraModeRec::GetRowSize() {
return 68;
}
bool CameraModeRec::NeedIDAssigned() {
return false;
}
int32_t CameraModeRec::GetID() {
return this->m_ID;
}
void CameraModeRec::SetID(int32_t id) {
this->m_ID = id;
}
bool CameraModeRec::Read(SFile* f, const char* stringBuffer) {
uint32_t nameOfs;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_type, sizeof(this->m_type), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_flags, sizeof(this->m_flags), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_positionOffset[0], sizeof(m_positionOffset[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_positionOffset[1], sizeof(m_positionOffset[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_positionOffset[2], sizeof(m_positionOffset[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_targetOffset[0], sizeof(m_targetOffset[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_targetOffset[1], sizeof(m_targetOffset[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_targetOffset[2], sizeof(m_targetOffset[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_positionSmoothing, sizeof(this->m_positionSmoothing), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_rotationSmoothing, sizeof(this->m_rotationSmoothing), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_fieldOfView, sizeof(this->m_fieldOfView), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_lockedPositionOffsetBase, sizeof(this->m_lockedPositionOffsetBase), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_lockedPositionOffsetDirection, sizeof(this->m_lockedPositionOffsetDirection), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_lockedTargetOffsetBase, sizeof(this->m_lockedTargetOffsetBase), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_lockedTargetOffsetDirection, sizeof(this->m_lockedTargetOffsetDirection), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_name = &stringBuffer[nameOfs];
} else {
this->m_name = "";
}
return true;
}

View File

@ -0,0 +1,34 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CAMERA_MODE_REC_HPP
#define DB_REC_CAMERA_MODE_REC_HPP
#include <cstdint>
class SFile;
class CameraModeRec {
public:
int32_t m_ID;
const char* m_name;
int32_t m_type;
int32_t m_flags;
float m_positionOffset[3];
float m_targetOffset[3];
float m_positionSmoothing;
float m_rotationSmoothing;
float m_fieldOfView;
int32_t m_lockedPositionOffsetBase;
int32_t m_lockedPositionOffsetDirection;
int32_t m_lockedTargetOffsetBase;
int32_t m_lockedTargetOffsetDirection;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,44 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/CameraShakesRec.hpp"
#include "util/SFile.hpp"
const char* CameraShakesRec::GetFilename() {
return "DBFilesClient\\CameraShakes.dbc";
}
uint32_t CameraShakesRec::GetNumColumns() {
return 8;
}
uint32_t CameraShakesRec::GetRowSize() {
return 32;
}
bool CameraShakesRec::NeedIDAssigned() {
return false;
}
int32_t CameraShakesRec::GetID() {
return this->m_ID;
}
void CameraShakesRec::SetID(int32_t id) {
this->m_ID = id;
}
bool CameraShakesRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_shakeType, sizeof(this->m_shakeType), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_direction, sizeof(this->m_direction), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_amplitude, sizeof(this->m_amplitude), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_frequency, sizeof(this->m_frequency), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_duration, sizeof(this->m_duration), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_phase, sizeof(this->m_phase), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_coefficient, sizeof(this->m_coefficient), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,29 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CAMERA_SHAKES_REC_HPP
#define DB_REC_CAMERA_SHAKES_REC_HPP
#include <cstdint>
class SFile;
class CameraShakesRec {
public:
int32_t m_ID;
int32_t m_shakeType;
int32_t m_direction;
float m_amplitude;
float m_frequency;
float m_duration;
float m_phase;
float m_coefficient;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -1,3 +1,4 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/Cfg_CategoriesRec.hpp"
#include "util/SFile.hpp"
@ -13,10 +14,18 @@ uint32_t Cfg_CategoriesRec::GetRowSize() {
return 84;
}
bool Cfg_CategoriesRec::NeedIDAssigned() {
return false;
}
int32_t Cfg_CategoriesRec::GetID() {
return this->m_ID;
}
void Cfg_CategoriesRec::SetID(int32_t id) {
this->m_ID = id;
}
bool Cfg_CategoriesRec::Read(SFile* f, const char* stringBuffer) {
uint32_t nameOfs[16];
uint32_t nameMask;
@ -26,29 +35,29 @@ bool Cfg_CategoriesRec::Read(SFile* f, const char* stringBuffer) {
|| !SFile::Read(f, &this->m_localeMask, sizeof(this->m_localeMask), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_createCharsetMask, sizeof(this->m_createCharsetMask), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_flags, sizeof(this->m_flags), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[0], sizeof(nameOfs[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[1], sizeof(nameOfs[1]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[2], sizeof(nameOfs[2]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[3], sizeof(nameOfs[3]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[4], sizeof(nameOfs[4]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[5], sizeof(nameOfs[5]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[6], sizeof(nameOfs[6]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[7], sizeof(nameOfs[7]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[8], sizeof(nameOfs[8]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[9], sizeof(nameOfs[9]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[10], sizeof(nameOfs[10]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[11], sizeof(nameOfs[11]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[12], sizeof(nameOfs[12]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[13], sizeof(nameOfs[13]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[14], sizeof(nameOfs[14]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[15], sizeof(nameOfs[15]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMask, sizeof(nameMask), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_name = &stringBuffer[nameOfs[0]];
this->m_name = &stringBuffer[nameOfs[CURRENT_LANGUAGE]];
} else {
this->m_name = "";
}

View File

@ -1,3 +1,4 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CFG_CATEGORIES_REC_HPP
#define DB_REC_CFG_CATEGORIES_REC_HPP
@ -11,14 +12,15 @@ class Cfg_CategoriesRec {
int32_t m_localeMask;
int32_t m_createCharsetMask;
int32_t m_flags;
const char *m_name;
const char* m_name;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif
#endif

View File

@ -1,3 +1,4 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/Cfg_ConfigsRec.hpp"
#include "util/SFile.hpp"
@ -13,10 +14,18 @@ uint32_t Cfg_ConfigsRec::GetRowSize() {
return 16;
}
bool Cfg_ConfigsRec::NeedIDAssigned() {
return false;
}
int32_t Cfg_ConfigsRec::GetID() {
return this->m_ID;
}
void Cfg_ConfigsRec::SetID(int32_t id) {
this->m_ID = id;
}
bool Cfg_ConfigsRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)

View File

@ -1,3 +1,4 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CFG_CONFIGS_REC_HPP
#define DB_REC_CFG_CONFIGS_REC_HPP
@ -15,9 +16,10 @@ class Cfg_ConfigsRec {
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif
#endif

View File

@ -0,0 +1,38 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/CharBaseInfoRec.hpp"
#include "util/SFile.hpp"
const char* CharBaseInfoRec::GetFilename() {
return "DBFilesClient\\CharBaseInfo.dbc";
}
uint32_t CharBaseInfoRec::GetNumColumns() {
return 2;
}
uint32_t CharBaseInfoRec::GetRowSize() {
return 2;
}
bool CharBaseInfoRec::NeedIDAssigned() {
return true;
}
int32_t CharBaseInfoRec::GetID() {
return this->m_generatedID;
}
void CharBaseInfoRec::SetID(int32_t id) {
this->m_generatedID = id;
}
bool CharBaseInfoRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_raceID, sizeof(this->m_raceID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_classID, sizeof(this->m_classID), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,24 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CHAR_BASE_INFO_REC_HPP
#define DB_REC_CHAR_BASE_INFO_REC_HPP
#include <cstdint>
class SFile;
class CharBaseInfoRec {
public:
int8_t m_raceID;
int8_t m_classID;
int32_t m_generatedID;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,42 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/CharHairGeosetsRec.hpp"
#include "util/SFile.hpp"
const char* CharHairGeosetsRec::GetFilename() {
return "DBFilesClient\\CharHairGeosets.dbc";
}
uint32_t CharHairGeosetsRec::GetNumColumns() {
return 6;
}
uint32_t CharHairGeosetsRec::GetRowSize() {
return 24;
}
bool CharHairGeosetsRec::NeedIDAssigned() {
return false;
}
int32_t CharHairGeosetsRec::GetID() {
return this->m_ID;
}
void CharHairGeosetsRec::SetID(int32_t id) {
this->m_ID = id;
}
bool CharHairGeosetsRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_raceID, sizeof(this->m_raceID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_sexID, sizeof(this->m_sexID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_variationID, sizeof(this->m_variationID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_geosetID, sizeof(this->m_geosetID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_showscalp, sizeof(this->m_showscalp), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,27 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CHAR_HAIR_GEOSETS_REC_HPP
#define DB_REC_CHAR_HAIR_GEOSETS_REC_HPP
#include <cstdint>
class SFile;
class CharHairGeosetsRec {
public:
int32_t m_ID;
int32_t m_raceID;
int32_t m_sexID;
int32_t m_variationID;
int32_t m_geosetID;
int32_t m_showscalp;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,44 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/CharHairTexturesRec.hpp"
#include "util/SFile.hpp"
const char* CharHairTexturesRec::GetFilename() {
return "DBFilesClient\\CharHairTextures.dbc";
}
uint32_t CharHairTexturesRec::GetNumColumns() {
return 8;
}
uint32_t CharHairTexturesRec::GetRowSize() {
return 32;
}
bool CharHairTexturesRec::NeedIDAssigned() {
return false;
}
int32_t CharHairTexturesRec::GetID() {
return this->m_ID;
}
void CharHairTexturesRec::SetID(int32_t id) {
this->m_ID = id;
}
bool CharHairTexturesRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_field_0_5_3_3368_001_race, sizeof(this->m_field_0_5_3_3368_001_race), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_field_0_5_3_3368_002_gender, sizeof(this->m_field_0_5_3_3368_002_gender), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_field_0_5_3_3368_003, sizeof(this->m_field_0_5_3_3368_003), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_field_0_5_3_3368_004_mayberacemask, sizeof(this->m_field_0_5_3_3368_004_mayberacemask), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_field_0_5_3_3368_005_the_x_in_hair_xy_blp, sizeof(this->m_field_0_5_3_3368_005_the_x_in_hair_xy_blp), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_field_0_5_3_3368_006, sizeof(this->m_field_0_5_3_3368_006), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_field_0_5_3_3368_007, sizeof(this->m_field_0_5_3_3368_007), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,29 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CHAR_HAIR_TEXTURES_REC_HPP
#define DB_REC_CHAR_HAIR_TEXTURES_REC_HPP
#include <cstdint>
class SFile;
class CharHairTexturesRec {
public:
int32_t m_ID;
int32_t m_field_0_5_3_3368_001_race; // unconfirmed
int32_t m_field_0_5_3_3368_002_gender; // unconfirmed
int32_t m_field_0_5_3_3368_003; // unconfirmed
int32_t m_field_0_5_3_3368_004_mayberacemask; // unconfirmed
int32_t m_field_0_5_3_3368_005_the_x_in_hair_xy_blp; // unconfirmed
int32_t m_field_0_5_3_3368_006; // unconfirmed
int32_t m_field_0_5_3_3368_007; // unconfirmed
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,58 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/CharSectionsRec.hpp"
#include "util/SFile.hpp"
const char* CharSectionsRec::GetFilename() {
return "DBFilesClient\\CharSections.dbc";
}
uint32_t CharSectionsRec::GetNumColumns() {
return 10;
}
uint32_t CharSectionsRec::GetRowSize() {
return 40;
}
bool CharSectionsRec::NeedIDAssigned() {
return false;
}
int32_t CharSectionsRec::GetID() {
return this->m_ID;
}
void CharSectionsRec::SetID(int32_t id) {
this->m_ID = id;
}
bool CharSectionsRec::Read(SFile* f, const char* stringBuffer) {
uint32_t textureNameOfs[3];
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_raceID, sizeof(this->m_raceID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_sexID, sizeof(this->m_sexID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_baseSection, sizeof(this->m_baseSection), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &textureNameOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &textureNameOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &textureNameOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_flags, sizeof(this->m_flags), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_variationIndex, sizeof(this->m_variationIndex), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_colorIndex, sizeof(this->m_colorIndex), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_textureName[0] = &stringBuffer[textureNameOfs[0]];
this->m_textureName[1] = &stringBuffer[textureNameOfs[1]];
this->m_textureName[2] = &stringBuffer[textureNameOfs[2]];
} else {
this->m_textureName[0] = "";
this->m_textureName[1] = "";
this->m_textureName[2] = "";
}
return true;
}

View File

@ -0,0 +1,29 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CHAR_SECTIONS_REC_HPP
#define DB_REC_CHAR_SECTIONS_REC_HPP
#include <cstdint>
class SFile;
class CharSectionsRec {
public:
int32_t m_ID;
int32_t m_raceID;
int32_t m_sexID;
int32_t m_baseSection;
const char* m_textureName[3];
int32_t m_flags;
int32_t m_variationIndex;
int32_t m_colorIndex;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,113 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/CharStartOutfitRec.hpp"
#include "util/SFile.hpp"
const char* CharStartOutfitRec::GetFilename() {
return "DBFilesClient\\CharStartOutfit.dbc";
}
uint32_t CharStartOutfitRec::GetNumColumns() {
return 77;
}
uint32_t CharStartOutfitRec::GetRowSize() {
return 296;
}
bool CharStartOutfitRec::NeedIDAssigned() {
return false;
}
int32_t CharStartOutfitRec::GetID() {
return this->m_ID;
}
void CharStartOutfitRec::SetID(int32_t id) {
this->m_ID = id;
}
bool CharStartOutfitRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_raceID, sizeof(this->m_raceID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_classID, sizeof(this->m_classID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_sexID, sizeof(this->m_sexID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_outfitID, sizeof(this->m_outfitID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[0], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[1], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[2], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[3], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[4], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[5], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[6], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[7], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[8], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[9], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[10], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[11], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[12], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[13], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[14], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[15], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[16], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[17], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[18], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[19], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[20], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[21], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[22], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_itemID[23], sizeof(m_itemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[0], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[1], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[2], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[3], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[4], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[5], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[6], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[7], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[8], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[9], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[10], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[11], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[12], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[13], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[14], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[15], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[16], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[17], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[18], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[19], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[20], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[21], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[22], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayItemID[23], sizeof(m_displayItemID[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[0], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[1], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[2], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[3], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[4], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[5], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[6], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[7], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[8], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[9], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[10], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[11], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[12], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[13], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[14], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[15], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[16], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[17], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[18], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[19], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[20], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[21], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[22], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_inventoryType[23], sizeof(m_inventoryType[0]), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,29 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CHAR_START_OUTFIT_REC_HPP
#define DB_REC_CHAR_START_OUTFIT_REC_HPP
#include <cstdint>
class SFile;
class CharStartOutfitRec {
public:
int32_t m_ID;
int8_t m_raceID;
int8_t m_classID;
int8_t m_sexID;
int8_t m_outfitID;
int32_t m_itemID[24];
int32_t m_displayItemID[24];
int32_t m_inventoryType[24];
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,86 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/CharTitlesRec.hpp"
#include "util/SFile.hpp"
const char* CharTitlesRec::GetFilename() {
return "DBFilesClient\\CharTitles.dbc";
}
uint32_t CharTitlesRec::GetNumColumns() {
return 37;
}
uint32_t CharTitlesRec::GetRowSize() {
return 148;
}
bool CharTitlesRec::NeedIDAssigned() {
return false;
}
int32_t CharTitlesRec::GetID() {
return this->m_ID;
}
void CharTitlesRec::SetID(int32_t id) {
this->m_ID = id;
}
bool CharTitlesRec::Read(SFile* f, const char* stringBuffer) {
uint32_t nameOfs[16];
uint32_t nameMask;
uint32_t name1Ofs[16];
uint32_t name1Mask;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_conditionID, sizeof(this->m_conditionID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Ofs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Ofs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Ofs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Ofs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Ofs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Ofs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Ofs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Ofs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Ofs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Ofs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Ofs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Ofs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Ofs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Ofs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Ofs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Ofs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &name1Mask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_maskID, sizeof(this->m_maskID), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_name = &stringBuffer[nameOfs[CURRENT_LANGUAGE]];
this->m_name1 = &stringBuffer[name1Ofs[CURRENT_LANGUAGE]];
} else {
this->m_name = "";
this->m_name1 = "";
}
return true;
}

View File

@ -0,0 +1,26 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CHAR_TITLES_REC_HPP
#define DB_REC_CHAR_TITLES_REC_HPP
#include <cstdint>
class SFile;
class CharTitlesRec {
public:
int32_t m_ID;
int32_t m_conditionID;
const char* m_name;
const char* m_name1;
int32_t m_maskID;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,42 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/CharVariationsRec.hpp"
#include "util/SFile.hpp"
const char* CharVariationsRec::GetFilename() {
return "DBFilesClient\\CharVariations.dbc";
}
uint32_t CharVariationsRec::GetNumColumns() {
return 6;
}
uint32_t CharVariationsRec::GetRowSize() {
return 24;
}
bool CharVariationsRec::NeedIDAssigned() {
return true;
}
int32_t CharVariationsRec::GetID() {
return this->m_generatedID;
}
void CharVariationsRec::SetID(int32_t id) {
this->m_generatedID = id;
}
bool CharVariationsRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_raceID, sizeof(this->m_raceID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_sexID, sizeof(this->m_sexID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_textureHoldLayer[0], sizeof(m_textureHoldLayer[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_textureHoldLayer[1], sizeof(m_textureHoldLayer[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_textureHoldLayer[2], sizeof(m_textureHoldLayer[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_textureHoldLayer[3], sizeof(m_textureHoldLayer[0]), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,25 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CHAR_VARIATIONS_REC_HPP
#define DB_REC_CHAR_VARIATIONS_REC_HPP
#include <cstdint>
class SFile;
class CharVariationsRec {
public:
int32_t m_raceID;
int32_t m_sexID;
int32_t m_textureHoldLayer[4];
int32_t m_generatedID;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,44 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/CharacterFacialHairStylesRec.hpp"
#include "util/SFile.hpp"
const char* CharacterFacialHairStylesRec::GetFilename() {
return "DBFilesClient\\CharacterFacialHairStyles.dbc";
}
uint32_t CharacterFacialHairStylesRec::GetNumColumns() {
return 8;
}
uint32_t CharacterFacialHairStylesRec::GetRowSize() {
return 32;
}
bool CharacterFacialHairStylesRec::NeedIDAssigned() {
return true;
}
int32_t CharacterFacialHairStylesRec::GetID() {
return this->m_generatedID;
}
void CharacterFacialHairStylesRec::SetID(int32_t id) {
this->m_generatedID = id;
}
bool CharacterFacialHairStylesRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_raceID, sizeof(this->m_raceID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_sexID, sizeof(this->m_sexID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_variationID, sizeof(this->m_variationID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_geoset[0], sizeof(m_geoset[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_geoset[1], sizeof(m_geoset[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_geoset[2], sizeof(m_geoset[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_geoset[3], sizeof(m_geoset[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_geoset[4], sizeof(m_geoset[0]), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,26 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CHARACTER_FACIAL_HAIR_STYLES_REC_HPP
#define DB_REC_CHARACTER_FACIAL_HAIR_STYLES_REC_HPP
#include <cstdint>
class SFile;
class CharacterFacialHairStylesRec {
public:
int32_t m_raceID;
int32_t m_sexID;
int32_t m_variationID;
int32_t m_geoset[5];
int32_t m_generatedID;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,86 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/ChatChannelsRec.hpp"
#include "util/SFile.hpp"
const char* ChatChannelsRec::GetFilename() {
return "DBFilesClient\\ChatChannels.dbc";
}
uint32_t ChatChannelsRec::GetNumColumns() {
return 37;
}
uint32_t ChatChannelsRec::GetRowSize() {
return 148;
}
bool ChatChannelsRec::NeedIDAssigned() {
return false;
}
int32_t ChatChannelsRec::GetID() {
return this->m_ID;
}
void ChatChannelsRec::SetID(int32_t id) {
this->m_ID = id;
}
bool ChatChannelsRec::Read(SFile* f, const char* stringBuffer) {
uint32_t nameOfs[16];
uint32_t nameMask;
uint32_t shortcutOfs[16];
uint32_t shortcutMask;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_flags, sizeof(this->m_flags), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_factionGroup, sizeof(this->m_factionGroup), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &shortcutMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_name = &stringBuffer[nameOfs[CURRENT_LANGUAGE]];
this->m_shortcut = &stringBuffer[shortcutOfs[CURRENT_LANGUAGE]];
} else {
this->m_name = "";
this->m_shortcut = "";
}
return true;
}

View File

@ -0,0 +1,26 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CHAT_CHANNELS_REC_HPP
#define DB_REC_CHAT_CHANNELS_REC_HPP
#include <cstdint>
class SFile;
class ChatChannelsRec {
public:
int32_t m_ID;
int32_t m_flags;
int32_t m_factionGroup;
const char* m_name;
const char* m_shortcut;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,47 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/ChatProfanityRec.hpp"
#include "util/SFile.hpp"
const char* ChatProfanityRec::GetFilename() {
return "DBFilesClient\\ChatProfanity.dbc";
}
uint32_t ChatProfanityRec::GetNumColumns() {
return 3;
}
uint32_t ChatProfanityRec::GetRowSize() {
return 12;
}
bool ChatProfanityRec::NeedIDAssigned() {
return false;
}
int32_t ChatProfanityRec::GetID() {
return this->m_ID;
}
void ChatProfanityRec::SetID(int32_t id) {
this->m_ID = id;
}
bool ChatProfanityRec::Read(SFile* f, const char* stringBuffer) {
uint32_t textOfs;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &textOfs, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_language, sizeof(this->m_language), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_text = &stringBuffer[textOfs];
} else {
this->m_text = "";
}
return true;
}

View File

@ -0,0 +1,24 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CHAT_PROFANITY_REC_HPP
#define DB_REC_CHAT_PROFANITY_REC_HPP
#include <cstdint>
class SFile;
class ChatProfanityRec {
public:
int32_t m_ID;
const char* m_text;
int32_t m_language;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,119 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/ChrClassesRec.hpp"
#include "util/SFile.hpp"
const char* ChrClassesRec::GetFilename() {
return "DBFilesClient\\ChrClasses.dbc";
}
uint32_t ChrClassesRec::GetNumColumns() {
return 60;
}
uint32_t ChrClassesRec::GetRowSize() {
return 240;
}
bool ChrClassesRec::NeedIDAssigned() {
return false;
}
int32_t ChrClassesRec::GetID() {
return this->m_ID;
}
void ChrClassesRec::SetID(int32_t id) {
this->m_ID = id;
}
bool ChrClassesRec::Read(SFile* f, const char* stringBuffer) {
uint32_t petNameTokenOfs;
uint32_t nameOfs[16];
uint32_t nameMask;
uint32_t nameFemaleOfs[16];
uint32_t nameFemaleMask;
uint32_t nameMaleOfs[16];
uint32_t nameMaleMask;
uint32_t filenameOfs;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_damageBonusStat, sizeof(this->m_damageBonusStat), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayPower, sizeof(this->m_displayPower), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &petNameTokenOfs, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameFemaleMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMaleMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &filenameOfs, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_spellClassSet, sizeof(this->m_spellClassSet), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_flags, sizeof(this->m_flags), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_cinematicSequenceID, sizeof(this->m_cinematicSequenceID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_requiredExpansion, sizeof(this->m_requiredExpansion), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_petNameToken = &stringBuffer[petNameTokenOfs];
this->m_name = &stringBuffer[nameOfs[CURRENT_LANGUAGE]];
this->m_nameFemale = &stringBuffer[nameFemaleOfs[CURRENT_LANGUAGE]];
this->m_nameMale = &stringBuffer[nameMaleOfs[CURRENT_LANGUAGE]];
this->m_filename = &stringBuffer[filenameOfs];
} else {
this->m_petNameToken = "";
this->m_name = "";
this->m_nameFemale = "";
this->m_nameMale = "";
this->m_filename = "";
}
return true;
}

View File

@ -0,0 +1,33 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CHR_CLASSES_REC_HPP
#define DB_REC_CHR_CLASSES_REC_HPP
#include <cstdint>
class SFile;
class ChrClassesRec {
public:
int32_t m_ID;
int32_t m_damageBonusStat;
int32_t m_displayPower;
const char* m_petNameToken;
const char* m_name;
const char* m_nameFemale;
const char* m_nameMale;
const char* m_filename;
int32_t m_spellClassSet;
int32_t m_flags;
int32_t m_cinematicSequenceID;
int32_t m_requiredExpansion;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -115,9 +115,9 @@ bool ChrRacesRec::Read(SFile* f, const char* stringBuffer) {
if (stringBuffer) {
this->m_clientPrefix = &stringBuffer[clientPrefixOfs];
this->m_clientFileString = &stringBuffer[clientFileStringOfs];
this->m_name = &stringBuffer[nameOfs[0]];
this->m_nameFemale = &stringBuffer[nameFemaleOfs[0]];
this->m_nameMale = &stringBuffer[nameMaleOfs[0]];
this->m_name = &stringBuffer[nameOfs[CURRENT_LANGUAGE]];
this->m_nameFemale = &stringBuffer[nameFemaleOfs[CURRENT_LANGUAGE]];
this->m_nameMale = &stringBuffer[nameMaleOfs[CURRENT_LANGUAGE]];
this->m_facialHairCustomization[0] = &stringBuffer[facialHairCustomizationOfs[0]];
this->m_facialHairCustomization[1] = &stringBuffer[facialHairCustomizationOfs[1]];
this->m_hairCustomization = &stringBuffer[hairCustomizationOfs];

View File

@ -38,4 +38,4 @@ class ChrRacesRec {
bool Read(SFile* f, const char* stringBuffer);
};
#endif
#endif

View File

@ -0,0 +1,51 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/CinematicCameraRec.hpp"
#include "util/SFile.hpp"
const char* CinematicCameraRec::GetFilename() {
return "DBFilesClient\\CinematicCamera.dbc";
}
uint32_t CinematicCameraRec::GetNumColumns() {
return 7;
}
uint32_t CinematicCameraRec::GetRowSize() {
return 28;
}
bool CinematicCameraRec::NeedIDAssigned() {
return false;
}
int32_t CinematicCameraRec::GetID() {
return this->m_ID;
}
void CinematicCameraRec::SetID(int32_t id) {
this->m_ID = id;
}
bool CinematicCameraRec::Read(SFile* f, const char* stringBuffer) {
uint32_t modelOfs;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &modelOfs, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_soundID, sizeof(this->m_soundID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_origin[0], sizeof(m_origin[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_origin[1], sizeof(m_origin[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_origin[2], sizeof(m_origin[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_originFacing, sizeof(this->m_originFacing), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_model = &stringBuffer[modelOfs];
} else {
this->m_model = "";
}
return true;
}

View File

@ -0,0 +1,26 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CINEMATIC_CAMERA_REC_HPP
#define DB_REC_CINEMATIC_CAMERA_REC_HPP
#include <cstdint>
class SFile;
class CinematicCameraRec {
public:
int32_t m_ID;
const char* m_model;
int32_t m_soundID;
float m_origin[3];
float m_originFacing;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,46 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/CinematicSequencesRec.hpp"
#include "util/SFile.hpp"
const char* CinematicSequencesRec::GetFilename() {
return "DBFilesClient\\CinematicSequences.dbc";
}
uint32_t CinematicSequencesRec::GetNumColumns() {
return 10;
}
uint32_t CinematicSequencesRec::GetRowSize() {
return 40;
}
bool CinematicSequencesRec::NeedIDAssigned() {
return false;
}
int32_t CinematicSequencesRec::GetID() {
return this->m_ID;
}
void CinematicSequencesRec::SetID(int32_t id) {
this->m_ID = id;
}
bool CinematicSequencesRec::Read(SFile* f, const char* stringBuffer) {
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_soundID, sizeof(this->m_soundID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_camera[0], sizeof(m_camera[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_camera[1], sizeof(m_camera[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_camera[2], sizeof(m_camera[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_camera[3], sizeof(m_camera[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_camera[4], sizeof(m_camera[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_camera[5], sizeof(m_camera[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_camera[6], sizeof(m_camera[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_camera[7], sizeof(m_camera[0]), nullptr, nullptr, nullptr)
) {
return false;
}
return true;
}

View File

@ -0,0 +1,24 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CINEMATIC_SEQUENCES_REC_HPP
#define DB_REC_CINEMATIC_SEQUENCES_REC_HPP
#include <cstdint>
class SFile;
class CinematicSequencesRec {
public:
int32_t m_ID;
int32_t m_soundID;
int32_t m_camera[8];
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,65 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/CreatureDisplayInfoExtraRec.hpp"
#include "util/SFile.hpp"
const char* CreatureDisplayInfoExtraRec::GetFilename() {
return "DBFilesClient\\CreatureDisplayInfoExtra.dbc";
}
uint32_t CreatureDisplayInfoExtraRec::GetNumColumns() {
return 21;
}
uint32_t CreatureDisplayInfoExtraRec::GetRowSize() {
return 84;
}
bool CreatureDisplayInfoExtraRec::NeedIDAssigned() {
return false;
}
int32_t CreatureDisplayInfoExtraRec::GetID() {
return this->m_ID;
}
void CreatureDisplayInfoExtraRec::SetID(int32_t id) {
this->m_ID = id;
}
bool CreatureDisplayInfoExtraRec::Read(SFile* f, const char* stringBuffer) {
uint32_t bakeNameOfs;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displayRaceID, sizeof(this->m_displayRaceID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_displaySexID, sizeof(this->m_displaySexID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_skinID, sizeof(this->m_skinID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_faceID, sizeof(this->m_faceID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_hairStyleID, sizeof(this->m_hairStyleID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_hairColorID, sizeof(this->m_hairColorID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_facialHairID, sizeof(this->m_facialHairID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_npcitemDisplay[0], sizeof(m_npcitemDisplay[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_npcitemDisplay[1], sizeof(m_npcitemDisplay[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_npcitemDisplay[2], sizeof(m_npcitemDisplay[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_npcitemDisplay[3], sizeof(m_npcitemDisplay[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_npcitemDisplay[4], sizeof(m_npcitemDisplay[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_npcitemDisplay[5], sizeof(m_npcitemDisplay[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_npcitemDisplay[6], sizeof(m_npcitemDisplay[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_npcitemDisplay[7], sizeof(m_npcitemDisplay[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_npcitemDisplay[8], sizeof(m_npcitemDisplay[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_npcitemDisplay[9], sizeof(m_npcitemDisplay[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_npcitemDisplay[10], sizeof(m_npcitemDisplay[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_flags, sizeof(this->m_flags), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &bakeNameOfs, sizeof(uint32_t), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_bakeName = &stringBuffer[bakeNameOfs];
} else {
this->m_bakeName = "";
}
return true;
}

View File

@ -0,0 +1,32 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CREATURE_DISPLAY_INFO_EXTRA_REC_HPP
#define DB_REC_CREATURE_DISPLAY_INFO_EXTRA_REC_HPP
#include <cstdint>
class SFile;
class CreatureDisplayInfoExtraRec {
public:
int32_t m_ID;
int32_t m_displayRaceID;
int32_t m_displaySexID;
int32_t m_skinID;
int32_t m_faceID;
int32_t m_hairStyleID;
int32_t m_hairColorID;
int32_t m_facialHairID;
int32_t m_npcitemDisplay[11];
int32_t m_flags;
const char* m_bakeName;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,67 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/CreatureDisplayInfoRec.hpp"
#include "util/SFile.hpp"
const char* CreatureDisplayInfoRec::GetFilename() {
return "DBFilesClient\\CreatureDisplayInfo.dbc";
}
uint32_t CreatureDisplayInfoRec::GetNumColumns() {
return 16;
}
uint32_t CreatureDisplayInfoRec::GetRowSize() {
return 64;
}
bool CreatureDisplayInfoRec::NeedIDAssigned() {
return false;
}
int32_t CreatureDisplayInfoRec::GetID() {
return this->m_ID;
}
void CreatureDisplayInfoRec::SetID(int32_t id) {
this->m_ID = id;
}
bool CreatureDisplayInfoRec::Read(SFile* f, const char* stringBuffer) {
uint32_t textureVariationOfs[3];
uint32_t portraitTextureNameOfs;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_modelID, sizeof(this->m_modelID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_soundID, sizeof(this->m_soundID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_extendedDisplayInfoID, sizeof(this->m_extendedDisplayInfoID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_creatureModelScale, sizeof(this->m_creatureModelScale), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_creatureModelAlpha, sizeof(this->m_creatureModelAlpha), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &textureVariationOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &textureVariationOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &textureVariationOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &portraitTextureNameOfs, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_sizeClass, sizeof(this->m_sizeClass), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_bloodID, sizeof(this->m_bloodID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_npcsoundID, sizeof(this->m_npcsoundID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_particleColorID, sizeof(this->m_particleColorID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_creatureGeosetData, sizeof(this->m_creatureGeosetData), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_objectEffectPackageID, sizeof(this->m_objectEffectPackageID), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_textureVariation[0] = &stringBuffer[textureVariationOfs[0]];
this->m_textureVariation[1] = &stringBuffer[textureVariationOfs[1]];
this->m_textureVariation[2] = &stringBuffer[textureVariationOfs[2]];
this->m_portraitTextureName = &stringBuffer[portraitTextureNameOfs];
} else {
this->m_textureVariation[0] = "";
this->m_textureVariation[1] = "";
this->m_textureVariation[2] = "";
this->m_portraitTextureName = "";
}
return true;
}

View File

@ -0,0 +1,35 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CREATURE_DISPLAY_INFO_REC_HPP
#define DB_REC_CREATURE_DISPLAY_INFO_REC_HPP
#include <cstdint>
class SFile;
class CreatureDisplayInfoRec {
public:
int32_t m_ID;
int32_t m_modelID;
int32_t m_soundID;
int32_t m_extendedDisplayInfoID;
float m_creatureModelScale;
int32_t m_creatureModelAlpha;
const char* m_textureVariation[3];
const char* m_portraitTextureName;
int32_t m_sizeClass;
int32_t m_bloodID;
int32_t m_npcsoundID;
int32_t m_particleColorID;
int32_t m_creatureGeosetData;
int32_t m_objectEffectPackageID;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

View File

@ -0,0 +1,76 @@
// DO NOT EDIT: generated by whoa-autocode
#include "db/rec/CreatureFamilyRec.hpp"
#include "util/SFile.hpp"
const char* CreatureFamilyRec::GetFilename() {
return "DBFilesClient\\CreatureFamily.dbc";
}
uint32_t CreatureFamilyRec::GetNumColumns() {
return 28;
}
uint32_t CreatureFamilyRec::GetRowSize() {
return 112;
}
bool CreatureFamilyRec::NeedIDAssigned() {
return false;
}
int32_t CreatureFamilyRec::GetID() {
return this->m_ID;
}
void CreatureFamilyRec::SetID(int32_t id) {
this->m_ID = id;
}
bool CreatureFamilyRec::Read(SFile* f, const char* stringBuffer) {
uint32_t nameOfs[16];
uint32_t nameMask;
uint32_t iconFileOfs;
if (
!SFile::Read(f, &this->m_ID, sizeof(this->m_ID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_minScale, sizeof(this->m_minScale), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_minScaleLevel, sizeof(this->m_minScaleLevel), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_maxScale, sizeof(this->m_maxScale), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_maxScaleLevel, sizeof(this->m_maxScaleLevel), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_skillLine[0], sizeof(m_skillLine[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_skillLine[1], sizeof(m_skillLine[0]), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_petFoodMask, sizeof(this->m_petFoodMask), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_petTalentType, sizeof(this->m_petTalentType), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &this->m_categoryEnumID, sizeof(this->m_categoryEnumID), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[0], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[1], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[2], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[3], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[4], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[5], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[6], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[7], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[8], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[9], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[10], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[11], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[12], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[13], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[14], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameOfs[15], sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &nameMask, sizeof(uint32_t), nullptr, nullptr, nullptr)
|| !SFile::Read(f, &iconFileOfs, sizeof(uint32_t), nullptr, nullptr, nullptr)
) {
return false;
}
if (stringBuffer) {
this->m_name = &stringBuffer[nameOfs[CURRENT_LANGUAGE]];
this->m_iconFile = &stringBuffer[iconFileOfs];
} else {
this->m_name = "";
this->m_iconFile = "";
}
return true;
}

View File

@ -0,0 +1,32 @@
// DO NOT EDIT: generated by whoa-autocode
#ifndef DB_REC_CREATURE_FAMILY_REC_HPP
#define DB_REC_CREATURE_FAMILY_REC_HPP
#include <cstdint>
class SFile;
class CreatureFamilyRec {
public:
int32_t m_ID;
float m_minScale;
int32_t m_minScaleLevel;
float m_maxScale;
int32_t m_maxScaleLevel;
int32_t m_skillLine[2];
int32_t m_petFoodMask;
int32_t m_petTalentType;
int32_t m_categoryEnumID;
const char* m_name;
const char* m_iconFile;
static const char* GetFilename();
static uint32_t GetNumColumns();
static uint32_t GetRowSize();
static bool NeedIDAssigned();
int32_t GetID();
void SetID(int32_t id);
bool Read(SFile* f, const char* stringBuffer);
};
#endif

Some files were not shown because too many files have changed in this diff Show More