Predict inventory slot interactions. (#6033)

This commit is contained in:
Leon Friedrich
2022-01-30 13:50:10 +13:00
committed by GitHub
parent c465715273
commit 47e597ca47
9 changed files with 138 additions and 140 deletions

View File

@@ -7,12 +7,12 @@ namespace Content.Shared.Inventory.Events;
[NetSerializable, Serializable]
public class UseSlotNetworkMessage : EntityEventArgs
{
public readonly EntityUid Uid;
// The slot-owner is implicitly the client that is sending this message.
// Otherwise clients could start forcefully undressing other clients.
public readonly string Slot;
public UseSlotNetworkMessage(EntityUid uid, string slot)
public UseSlotNetworkMessage(string slot)
{
Uid = uid;
Slot = slot;
}
}