7d351406f5
Port From (https://github.com/TrinityCore/TrinityCore/commit/68db469ee1f992bcdc81de64d6af1007d303be05)
25 lines
758 B
C#
25 lines
758 B
C#
// Copyright (c) CypherCore <http://github.com/CypherCore> All rights reserved.
|
|
// Licensed under the GNU GENERAL PUBLIC LICENSE. See LICENSE file in the project root for full license information.
|
|
|
|
using Framework.Constants;
|
|
|
|
namespace Game.Networking.Packets
|
|
{
|
|
public class UpdateObject : ServerPacket
|
|
{
|
|
public UpdateObject() : base(ServerOpcodes.UpdateObject, ConnectionType.Instance) { }
|
|
|
|
public override void Write()
|
|
{
|
|
_worldPacket.WriteUInt16(MapID);
|
|
_worldPacket.WriteUInt32(NumObjUpdates);
|
|
_worldPacket.WriteBit(true); // unk
|
|
_worldPacket.WriteBytes(Data);
|
|
}
|
|
|
|
public uint NumObjUpdates;
|
|
public ushort MapID;
|
|
public byte[] Data;
|
|
}
|
|
}
|