UiChromieTimeExpansionInfo.db2
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
DROP TABLE `ui_chromie_time_expansion_info`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `ui_chromie_time_expansion_info` (
|
||||
`ID` int unsigned NOT NULL DEFAULT '0',
|
||||
`Name` text,
|
||||
`Description` text,
|
||||
`AllianceOverrideDesc` text,
|
||||
`HordeOverrideDesc` text,
|
||||
`SpellID` int NOT NULL DEFAULT '0',
|
||||
`MapAtlasElement` int NOT NULL DEFAULT '0',
|
||||
`PreviewAtlasElement` int NOT NULL DEFAULT '0',
|
||||
`ShowPlayerConditionID` int NOT NULL DEFAULT '0',
|
||||
`ExpansionMask` int NOT NULL DEFAULT '0',
|
||||
`ContentTuningID` int NOT NULL DEFAULT '0',
|
||||
`CompletedPlayerConditionID` int NOT NULL DEFAULT '0',
|
||||
`SortPriority` int NOT NULL DEFAULT '0',
|
||||
`RecommendPlayerConditionID` int NOT NULL DEFAULT '0',
|
||||
`VerifiedBuild` int NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`ID`,`VerifiedBuild`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
LOCK TABLES `ui_chromie_time_expansion_info` WRITE;
|
||||
/*!40000 ALTER TABLE `ui_chromie_time_expansion_info` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `ui_chromie_time_expansion_info` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
DROP TABLE `ui_chromie_time_expansion_info_locale`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!50503 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `ui_chromie_time_expansion_info_locale` (
|
||||
`ID` int unsigned NOT NULL DEFAULT '0',
|
||||
`locale` varchar(4) NOT NULL,
|
||||
`Name_lang` text,
|
||||
`Description_lang` text,
|
||||
`AllianceOverrideDesc_lang` text,
|
||||
`HordeOverrideDesc_lang` text,
|
||||
`VerifiedBuild` int NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`ID`,`locale`,`VerifiedBuild`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
|
||||
/*!50500 PARTITION BY LIST COLUMNS(locale)
|
||||
(PARTITION deDE VALUES IN ('deDE') ENGINE = InnoDB,
|
||||
PARTITION esES VALUES IN ('esES') ENGINE = InnoDB,
|
||||
PARTITION esMX VALUES IN ('esMX') ENGINE = InnoDB,
|
||||
PARTITION frFR VALUES IN ('frFR') ENGINE = InnoDB,
|
||||
PARTITION itIT VALUES IN ('itIT') ENGINE = InnoDB,
|
||||
PARTITION koKR VALUES IN ('koKR') ENGINE = InnoDB,
|
||||
PARTITION ptBR VALUES IN ('ptBR') ENGINE = InnoDB,
|
||||
PARTITION ruRU VALUES IN ('ruRU') ENGINE = InnoDB,
|
||||
PARTITION zhCN VALUES IN ('zhCN') ENGINE = InnoDB,
|
||||
PARTITION zhTW VALUES IN ('zhTW') ENGINE = InnoDB) */;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
LOCK TABLES `ui_chromie_time_expansion_info_locale` WRITE;
|
||||
/*!40000 ALTER TABLE `ui_chromie_time_expansion_info_locale` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `ui_chromie_time_expansion_info_locale` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
@@ -2670,6 +2670,14 @@ void HotfixDatabaseConnection::DoPrepareStatements()
|
||||
"Cost, UiModelSceneID, UiGroupInfo FROM perks_vendor_item WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH);
|
||||
PREPARE_MAX_ID_STMT(HOTFIX_SEL_PERKS_VENDOR_ITEM, "SELECT MAX(ID) + 1 FROM perks_vendor_item", CONNECTION_SYNCH);
|
||||
|
||||
// UiChromieTimeExpansionInfo.db2
|
||||
PrepareStatement(HOTFIX_SEL_UI_CHROMIE_TIME_EXPANSION_INFO, "SELECT ID, Name, Description, AllianceOverrideDesc, HordeOverrideDesc, SpellID, "
|
||||
"MapAtlasElement, PreviewAtlasElement, ShowPlayerConditionID, ExpansionMask, ContentTuningID, CompletedPlayerConditionID, SortPriority, "
|
||||
"RecommendPlayerConditionID FROM ui_chromie_time_expansion_info WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH);
|
||||
PREPARE_MAX_ID_STMT(HOTFIX_SEL_UI_CHROMIE_TIME_EXPANSION_INFO, "SELECT MAX(ID) + 1 FROM ui_chromie_time_expansion_info", CONNECTION_SYNCH);
|
||||
PREPARE_LOCALE_STMT(HOTFIX_SEL_UI_CHROMIE_TIME_EXPANSION_INFO, "SELECT ID, Name_lang, Description_lang, AllianceOverrideDesc_lang, "
|
||||
"HordeOverrideDesc_lang FROM ui_chromie_time_expansion_info_locale WHERE (`VerifiedBuild` > 0) = ? AND locale = ?", CONNECTION_SYNCH);
|
||||
|
||||
//WowCommunity end
|
||||
}
|
||||
|
||||
|
||||
@@ -1538,6 +1538,10 @@ enum HotfixDatabaseStatements : uint32
|
||||
|
||||
HOTFIX_SEL_DRIVE_CAPABILITY_TIER,
|
||||
HOTFIX_SEL_DRIVE_CAPABILITY_TIER_MAX_ID,
|
||||
|
||||
HOTFIX_SEL_UI_CHROMIE_TIME_EXPANSION_INFO,
|
||||
HOTFIX_SEL_UI_CHROMIE_TIME_EXPANSION_INFO_MAX_ID,
|
||||
HOTFIX_SEL_UI_CHROMIE_TIME_EXPANSION_INFO_LOCALE,
|
||||
//WowCommunity end
|
||||
MAX_HOTFIXDATABASE_STATEMENTS
|
||||
};
|
||||
|
||||
@@ -8637,7 +8637,29 @@ struct DriveCapabilityTierLoadInfo
|
||||
};
|
||||
|
||||
static constexpr DB2LoadInfo Instance{ Fields, 5, &DriveCapabilityTierMeta::Instance, HOTFIX_SEL_DRIVE_CAPABILITY_TIER };
|
||||
};
|
||||
|
||||
struct UiChromieTimeExpansionInfoLoadInfo
|
||||
{
|
||||
static constexpr DB2FieldMeta Fields[14] =
|
||||
{
|
||||
{.IsSigned = false, .Type = FT_INT, .Name = "ID" },
|
||||
{.IsSigned = false, .Type = FT_STRING, .Name = "Name" },
|
||||
{.IsSigned = false, .Type = FT_STRING, .Name = "Description" },
|
||||
{.IsSigned = false, .Type = FT_STRING, .Name = "AllianceOverrideDesc" },
|
||||
{.IsSigned = false, .Type = FT_STRING, .Name = "HordeOverrideDesc" },
|
||||
{.IsSigned = true, .Type = FT_INT, .Name = "SpellID" },
|
||||
{.IsSigned = true, .Type = FT_INT, .Name = "MapAtlasElement" },
|
||||
{.IsSigned = true, .Type = FT_INT, .Name = "PreviewAtlasElement" },
|
||||
{.IsSigned = true, .Type = FT_INT, .Name = "ShowPlayerConditionID" },
|
||||
{.IsSigned = true, .Type = FT_INT, .Name = "ExpansionMask" },
|
||||
{.IsSigned = true, .Type = FT_INT, .Name = "ContentTuningID" },
|
||||
{.IsSigned = true, .Type = FT_INT, .Name = "CompletedPlayerConditionID" },
|
||||
{.IsSigned = true, .Type = FT_INT, .Name = "SortPriority" },
|
||||
{.IsSigned = true, .Type = FT_INT, .Name = "RecommendPlayerConditionID" },
|
||||
};
|
||||
|
||||
static constexpr DB2LoadInfo Instance{ Fields, 14, &UIChromieTimeExpansionInfoMeta::Instance, HOTFIX_SEL_UI_CHROMIE_TIME_EXPANSION_INFO };
|
||||
//WowCommunity end
|
||||
};
|
||||
|
||||
|
||||
@@ -500,7 +500,7 @@ DB2Storage<RoomComponentOptionTextureEntry> sRoomComponentOptionTextureStore
|
||||
DB2Storage<RoomComponentTextureEntry> sRoomComponentTextureStore("RoomComponentTexture.db2", &RoomComponentTextureLoadInfo::Instance);
|
||||
DB2Storage<DriveCapabilityEntry> sDriveCapabilityStore("DriveCapability.db2", &DriveCapabilityLoadInfo::Instance);
|
||||
DB2Storage<DriveCapabilityTierEntry> sDriveCapabilityTierStore("DriveCapabilityTier.db2", &DriveCapabilityTierLoadInfo::Instance);
|
||||
|
||||
DB2Storage<UiChromieTimeExpansionInfoEntry> sUiChromieTimeExpansionInfoStore("UIChromieTimeExpansionInfo.db2", &UiChromieTimeExpansionInfoLoadInfo::Instance);
|
||||
//WowCommunity
|
||||
|
||||
TaxiMask sTaxiNodesMask;
|
||||
@@ -651,6 +651,7 @@ namespace
|
||||
//WowCommunity
|
||||
std::unordered_map<int32, std::vector<WarbandScenePlacementEntry const*>> _warbandScenePlacementsByScene;
|
||||
PerkProgramActivityXTag _activityXTag;
|
||||
std::unordered_map<uint32, UiChromieTimeExpansionInfoEntry const*> _chromieTimeExpansionInfo;
|
||||
//WowCommunity end
|
||||
}
|
||||
|
||||
@@ -1237,6 +1238,7 @@ uint32 DB2Manager::LoadStores(std::string const& dataPath, LocaleConstant defaul
|
||||
LOAD_DB2(sRoomComponentTextureStore);
|
||||
LOAD_DB2(sDriveCapabilityStore);
|
||||
LOAD_DB2(sDriveCapabilityTierStore);
|
||||
LOAD_DB2(sUiChromieTimeExpansionInfoStore);
|
||||
//WowCommunity
|
||||
// error checks
|
||||
|
||||
@@ -1793,6 +1795,9 @@ void DB2Manager::IndexLoadedStores()
|
||||
_transmogSetItemsByTransmogSet[transmogSetItem->TransmogSetID].push_back(transmogSetItem);
|
||||
}
|
||||
|
||||
for (UiChromieTimeExpansionInfoEntry const* uiChromieTimeExpansion : sUiChromieTimeExpansionInfoStore)
|
||||
_chromieTimeExpansionInfo.emplace(uiChromieTimeExpansion->ID, uiChromieTimeExpansion);
|
||||
|
||||
std::unordered_multimap<int32, UiMapAssignmentEntry const*> uiMapAssignmentByUiMap;
|
||||
for (UiMapAssignmentEntry const* uiMapAssignment : sUiMapAssignmentStore)
|
||||
{
|
||||
|
||||
@@ -422,6 +422,7 @@ TC_GAME_API extern DB2Storage<GarrUiAnimRaceInfoEntry> sGarrUiAnimR
|
||||
TC_GAME_API extern DB2Storage<GossipXGarrTalentTreesEntry> sGossipXGarrTalentTreesStore;
|
||||
TC_GAME_API extern DB2Storage<DriveCapabilityEntry> sDriveCapabilityStore;
|
||||
TC_GAME_API extern DB2Storage<DriveCapabilityTierEntry> sDriveCapabilityTierStore;
|
||||
TC_GAME_API extern DB2Storage<UiChromieTimeExpansionInfoEntry> sUiChromieTimeExpansionInfoStore;
|
||||
//WowCommunity
|
||||
|
||||
struct ContentTuningLevels
|
||||
|
||||
@@ -6079,6 +6079,24 @@ struct DriveCapabilityTierEntry
|
||||
int32 DriveCapabilityID; // Parent DriveCapability
|
||||
int32 OrderIndex; // Tier order
|
||||
};
|
||||
|
||||
struct UiChromieTimeExpansionInfoEntry
|
||||
{
|
||||
uint32 ID;
|
||||
LocalizedString Name;
|
||||
LocalizedString Description;
|
||||
LocalizedString AllianceOverrideDesc;
|
||||
LocalizedString HordeOverrideDesc;
|
||||
int32 SpellID;
|
||||
int32 MapAtlasElement;
|
||||
int32 PreviewAtlasElement;
|
||||
int32 ShowPlayerConditionID;
|
||||
int32 ExpansionMask;
|
||||
int32 ContentTuningID;
|
||||
int32 CompletedPlayerConditionID;
|
||||
int32 SortPriority;
|
||||
int32 RecommendPlayerConditionID;
|
||||
};
|
||||
//Wowcommunity end
|
||||
#pragma pack(pop)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user