Core/DataStores: Load UnitCondition.db2
Port From (https://github.com/TrinityCore/TrinityCore/commit/f2bde40922bf59b95bba74c77390d9d51c750065)
This commit is contained in:
@@ -1227,6 +1227,10 @@ namespace Framework.Database
|
||||
PrepareStatement(HotfixStatements.SEL_UI_SPLASH_SCREEN_LOCALE, "SELECT ID, Header_lang, TopLeftFeatureTitle_lang, TopLeftFeatureDesc_lang, " +
|
||||
"BottomLeftFeatureTitle_lang, BottomLeftFeatureDesc_lang, RightFeatureTitle_lang, RightFeatureDesc_lang FROM ui_splash_screen_locale WHERE locale = ?");
|
||||
|
||||
// UnitCondition.db2
|
||||
PrepareStatement(HotfixStatements.SEL_UNIT_CONDITION, "SELECT ID, Flags, Variable1, Variable2, Variable3, Variable4, Variable5, Variable6, Variable7, " +
|
||||
"Variable8, Op1, Op2, Op3, Op4, Op5, Op6, Op7, Op8, Value1, Value2, Value3, Value4, Value5, Value6, Value7, Value8 FROM unit_condition");
|
||||
|
||||
// UnitPowerBar.db2
|
||||
PrepareStatement(HotfixStatements.SEL_UNIT_POWER_BAR, "SELECT ID, Name, Cost, OutOfError, ToolTip, MinPower, MaxPower, StartPower, CenterPower, " +
|
||||
"RegenerationPeace, RegenerationCombat, BarType, Flags, StartInset, EndInset, FileDataID1, FileDataID2, FileDataID3, FileDataID4, " +
|
||||
@@ -1926,6 +1930,8 @@ namespace Framework.Database
|
||||
SEL_UI_SPLASH_SCREEN,
|
||||
SEL_UI_SPLASH_SCREEN_LOCALE,
|
||||
|
||||
SEL_UNIT_CONDITION,
|
||||
|
||||
SEL_UNIT_POWER_BAR,
|
||||
SEL_UNIT_POWER_BAR_LOCALE,
|
||||
|
||||
|
||||
@@ -335,6 +335,7 @@ namespace Game.DataStorage
|
||||
UiMapLinkStorage = ReadDB2<UiMapLinkRecord>("UiMapLink.db2", HotfixStatements.SEL_UI_MAP_LINK);
|
||||
UiMapXMapArtStorage = ReadDB2<UiMapXMapArtRecord>("UiMapXMapArt.db2", HotfixStatements.SEL_UI_MAP_X_MAP_ART);
|
||||
UISplashScreenStorage = ReadDB2<UISplashScreenRecord>("UISplashScreen.db2", HotfixStatements.SEL_UI_SPLASH_SCREEN, HotfixStatements.SEL_UI_SPLASH_SCREEN_LOCALE);
|
||||
UnitConditionStorage = ReadDB2<UnitConditionRecord>("UnitCondition.db2", HotfixStatements.SEL_UNIT_CONDITION);
|
||||
UnitPowerBarStorage = ReadDB2<UnitPowerBarRecord>("UnitPowerBar.db2", HotfixStatements.SEL_UNIT_POWER_BAR, HotfixStatements.SEL_UNIT_POWER_BAR_LOCALE);
|
||||
VehicleStorage = ReadDB2<VehicleRecord>("Vehicle.db2", HotfixStatements.SEL_VEHICLE);
|
||||
VehicleSeatStorage = ReadDB2<VehicleSeatRecord>("VehicleSeat.db2", HotfixStatements.SEL_VEHICLE_SEAT);
|
||||
@@ -724,6 +725,7 @@ namespace Game.DataStorage
|
||||
public static DB6Storage<UiMapLinkRecord> UiMapLinkStorage;
|
||||
public static DB6Storage<UiMapXMapArtRecord> UiMapXMapArtStorage;
|
||||
public static DB6Storage<UISplashScreenRecord> UISplashScreenStorage;
|
||||
public static DB6Storage<UnitConditionRecord> sUnitConditionStorage;
|
||||
public static DB6Storage<UnitPowerBarRecord> UnitPowerBarStorage;
|
||||
public static DB6Storage<VehicleRecord> VehicleStorage;
|
||||
public static DB6Storage<VehicleSeatRecord> VehicleSeatStorage;
|
||||
|
||||
@@ -94,6 +94,15 @@ namespace Game.DataStorage
|
||||
public int RequiredTimeEventPassed; // serverside TimeEvent table, see ModifierTreeType::HasTimeEventPassed
|
||||
}
|
||||
|
||||
public sealed class UnitConditionRecord
|
||||
{
|
||||
public uint Id;
|
||||
public byte Flags;
|
||||
public byte[] Variable = new byte[8];
|
||||
public sbyte[] Op = new sbyte[8];
|
||||
public int[] Value = new int[8];
|
||||
};
|
||||
|
||||
public sealed class UnitPowerBarRecord
|
||||
{
|
||||
public uint Id;
|
||||
|
||||
Reference in New Issue
Block a user