Core: Updated to 10.0.2
Port From (https://github.com/TrinityCore/TrinityCore/commit/e98e1283ea0034baf6be9aa2ffb386eb5582801b)
This commit is contained in:
@@ -27,9 +27,11 @@ namespace Game.Networking.Packets
|
||||
public override void Read()
|
||||
{
|
||||
Guid = _worldPacket.ReadPackedGuid();
|
||||
IsSoftInteract = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public bool IsSoftInteract;
|
||||
}
|
||||
|
||||
public class GameObjReportUse : ClientPacket
|
||||
@@ -39,9 +41,11 @@ namespace Game.Networking.Packets
|
||||
public override void Read()
|
||||
{
|
||||
Guid = _worldPacket.ReadPackedGuid();
|
||||
IsSoftInteract = _worldPacket.HasBit();
|
||||
}
|
||||
|
||||
public ObjectGuid Guid;
|
||||
public bool IsSoftInteract;
|
||||
}
|
||||
|
||||
class GameObjectDespawn : ServerPacket
|
||||
@@ -136,22 +140,6 @@ namespace Game.Networking.Packets
|
||||
public bool PlayAsDespawn;
|
||||
}
|
||||
|
||||
class GameObjectUILink : ServerPacket
|
||||
{
|
||||
public GameObjectUILink() : base(ServerOpcodes.GameObjectUiLink, ConnectionType.Instance) { }
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WritePackedGuid(ObjectGUID);
|
||||
_worldPacket.WriteInt32(UILink);
|
||||
_worldPacket.WriteInt32(UIItemInteractionID);
|
||||
}
|
||||
|
||||
public ObjectGuid ObjectGUID;
|
||||
public int UILink;
|
||||
public int UIItemInteractionID;
|
||||
}
|
||||
|
||||
class GameObjectPlaySpellVisual : ServerPacket
|
||||
{
|
||||
public GameObjectPlaySpellVisual() : base(ServerOpcodes.GameObjectPlaySpellVisual) { }
|
||||
@@ -181,4 +169,29 @@ namespace Game.Networking.Packets
|
||||
public ObjectGuid ObjectGUID;
|
||||
public byte State;
|
||||
}
|
||||
|
||||
class GameObjectInteraction : ServerPacket
|
||||
{
|
||||
public ObjectGuid ObjectGUID;
|
||||
public PlayerInteractionType InteractionType;
|
||||
|
||||
public GameObjectInteraction() : base(ServerOpcodes.GameObjectInteraction) { }
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WritePackedGuid(ObjectGUID);
|
||||
_worldPacket.WriteInt32((int)InteractionType);
|
||||
}
|
||||
}
|
||||
class GameObjectCloseInteraction : ServerPacket
|
||||
{
|
||||
public PlayerInteractionType InteractionType;
|
||||
|
||||
public GameObjectCloseInteraction() : base(ServerOpcodes.GameObjectCloseInteraction) { }
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WriteInt32((int)InteractionType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user