Core/GameObjects: Implemented per player gameobject state and visibility for looted non-consumable chests

Port From (https://github.com/TrinityCore/TrinityCore/commit/879c0cccfcb9224f9e15cbed926c57a4e010a070)
This commit is contained in:
hondacrx
2022-10-21 17:34:52 -04:00
parent cf7c183a51
commit 0b2621b348
6 changed files with 135 additions and 9 deletions
@@ -167,4 +167,18 @@ namespace Game.Networking.Packets
public ObjectGuid ActivatorGUID;
public uint SpellVisualID;
}
class GameObjectSetStateLocal : ServerPacket
{
public GameObjectSetStateLocal() : base(ServerOpcodes.GameObjectSetStateLocal, ConnectionType.Instance) { }
public override void Write()
{
_worldPacket.WritePackedGuid(ObjectGUID);
_worldPacket.WriteUInt8(State);
}
public ObjectGuid ObjectGUID;
public byte State;
}
}