Add dummy implementation of bag sorting which simply responds with sort done to prevent locking all bags clientside
This commit is contained in:
@@ -1123,5 +1123,28 @@ namespace Game
|
|||||||
_player.ModifyCurrency((CurrencyTypes)itemUpgradeEntry.CurrencyID, -(int)itemUpgradeEntry.CurrencyCost);
|
_player.ModifyCurrency((CurrencyTypes)itemUpgradeEntry.CurrencyID, -(int)itemUpgradeEntry.CurrencyCost);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[WorldPacketHandler(ClientOpcodes.SortBags)]
|
||||||
|
void HandleSortBags(SortBags sortBags)
|
||||||
|
{
|
||||||
|
// TODO: Implement sorting
|
||||||
|
// Placeholder to prevent completely locking out bags clientside
|
||||||
|
SendPacket(new SortBagsResult());
|
||||||
|
}
|
||||||
|
|
||||||
|
[WorldPacketHandler(ClientOpcodes.SortBankBags)]
|
||||||
|
void HandleSortBankBags(SortBankBags sortBankBags)
|
||||||
|
{
|
||||||
|
// TODO: Implement sorting
|
||||||
|
// Placeholder to prevent completely locking out bags clientside
|
||||||
|
SendPacket(new SortBagsResult());
|
||||||
|
}
|
||||||
|
|
||||||
|
[WorldPacketHandler(ClientOpcodes.SortReagentBankBags)]
|
||||||
|
void HandleSortReagentBankBags(SortReagentBankBags sortReagentBankBags)
|
||||||
|
{
|
||||||
|
// TODO: Implement sorting
|
||||||
|
// Placeholder to prevent completely locking out bags clientside
|
||||||
|
SendPacket(new SortBagsResult());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ using Framework.Dynamic;
|
|||||||
using Game.Entities;
|
using Game.Entities;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace Game.Network.Packets
|
namespace Game.Network.Packets
|
||||||
{
|
{
|
||||||
@@ -663,6 +664,38 @@ namespace Game.Network.Packets
|
|||||||
public ObjectGuid Item;
|
public ObjectGuid Item;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class SortBags : ClientPacket
|
||||||
|
{
|
||||||
|
public SortBags(WorldPacket packet) : base(packet) { }
|
||||||
|
|
||||||
|
public override void Read() { }
|
||||||
|
}
|
||||||
|
|
||||||
|
class SortBankBags : ClientPacket
|
||||||
|
{
|
||||||
|
public SortBankBags(WorldPacket packet) : base(packet) { }
|
||||||
|
|
||||||
|
public override void Read() { }
|
||||||
|
}
|
||||||
|
|
||||||
|
class SortReagentBankBags : ClientPacket
|
||||||
|
{
|
||||||
|
public SortReagentBankBags(WorldPacket packet) : base(packet) { }
|
||||||
|
|
||||||
|
public override void Read() { }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
class SortBagsResult : ServerPacket
|
||||||
|
{
|
||||||
|
public SortBagsResult() : base(ServerOpcodes.SortBagsResult, ConnectionType.Instance) { }
|
||||||
|
|
||||||
|
public override void Write()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//Structs
|
//Structs
|
||||||
public class ItemBonusInstanceData
|
public class ItemBonusInstanceData
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user