First try at updating command system to be like TC. Still needs alot of testing/work
This commit is contained in:
@@ -57,7 +57,7 @@ namespace Game
|
||||
AuctionListBucketsResult listBucketsResult = new();
|
||||
if (!browseQuery.ItemClassFilters.Empty())
|
||||
{
|
||||
classFilters.HasValue = true;
|
||||
classFilters.Value = new();
|
||||
|
||||
foreach (var classFilter in browseQuery.ItemClassFilters)
|
||||
{
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace Game
|
||||
|
||||
if (code == BattlenetRpcErrorCode.Ok)
|
||||
{
|
||||
response.SuccessInfo.HasValue = true;
|
||||
response.SuccessInfo.Value = new();
|
||||
|
||||
response.SuccessInfo.Value = new AuthResponse.AuthSuccessInfo();
|
||||
response.SuccessInfo.Value.ActiveExpansionLevel = (byte)GetExpansion();
|
||||
@@ -51,7 +51,7 @@ namespace Game
|
||||
|
||||
if (queued)
|
||||
{
|
||||
response.WaitInfo.HasValue = true;
|
||||
response.WaitInfo.Value = new();
|
||||
response.WaitInfo.Value.WaitCount = queuePos;
|
||||
}
|
||||
|
||||
|
||||
@@ -1091,7 +1091,7 @@ namespace Game
|
||||
features.VoiceEnabled = false;
|
||||
features.BrowserEnabled = false; // Has to be false, otherwise client will crash if "Customer Support" is opened
|
||||
|
||||
features.EuropaTicketSystemStatus.HasValue = true;
|
||||
features.EuropaTicketSystemStatus.Value = new();
|
||||
features.EuropaTicketSystemStatus.Value.ThrottleState.MaxTries = 10;
|
||||
features.EuropaTicketSystemStatus.Value.ThrottleState.PerMilliseconds = 60000;
|
||||
features.EuropaTicketSystemStatus.Value.ThrottleState.TryCount = 1;
|
||||
@@ -2533,7 +2533,7 @@ namespace Game
|
||||
|
||||
if (result == ResponseCodes.Success)
|
||||
{
|
||||
packet.Display.HasValue = true;
|
||||
packet.Display.Value = new();
|
||||
packet.Display.Value.Name = factionChangeInfo.Name;
|
||||
packet.Display.Value.SexID = (byte)factionChangeInfo.SexID;
|
||||
packet.Display.Value.Customizations = factionChangeInfo.Customizations;
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace Game
|
||||
Guild guild = Global.GuildMgr.GetGuildById(player.GetGuildId());
|
||||
if (guild)
|
||||
{
|
||||
inspectResult.GuildData.HasValue = true;
|
||||
inspectResult.GuildData.Value = new();
|
||||
|
||||
InspectGuildData guildData;
|
||||
guildData.GuildGUID = guild.GetGUID();
|
||||
|
||||
@@ -533,7 +533,7 @@ namespace Game
|
||||
item.Item.ItemID = vendorItem.item;
|
||||
if (!vendorItem.BonusListIDs.Empty())
|
||||
{
|
||||
item.Item.ItemBonus.HasValue = true;
|
||||
item.Item.ItemBonus.Value = new();
|
||||
item.Item.ItemBonus.Value.BonusListIDs = vendorItem.BonusListIDs;
|
||||
}
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ namespace Game
|
||||
GetPlayer().SetTaxiCheater(true); // Grimwing in Ebon Hold, special case. NOTE: Not perfect, Zul'Aman should not be included according to WoWhead, and I think taxicheat includes it.
|
||||
|
||||
ShowTaxiNodes data = new();
|
||||
data.WindowInfo.HasValue = true;
|
||||
data.WindowInfo.Value = new();
|
||||
data.WindowInfo.Value.UnitGUID = unit.GetGUID();
|
||||
data.WindowInfo.Value.CurrentNode = (int)curloc;
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace Game
|
||||
tradeItem.GiftCreator = item.GetGiftCreator();
|
||||
if (!item.IsWrapped())
|
||||
{
|
||||
tradeItem.Unwrapped.HasValue = true;
|
||||
tradeItem.Unwrapped.Value = new();
|
||||
TradeUpdated.UnwrappedTradeItem unwrappedItem = tradeItem.Unwrapped.Value;
|
||||
unwrappedItem.EnchantID = (int)item.GetEnchantmentId(EnchantmentSlot.Perm);
|
||||
unwrappedItem.OnUseEnchantmentID = (int)item.GetEnchantmentId(EnchantmentSlot.Use);
|
||||
|
||||
Reference in New Issue
Block a user