quantum-space-buddies/QSB/ItemSync/WorldObjects/Sockets/QSBItemSocket.cs
2022-03-23 14:27:20 -07:00

21 lines
571 B
C#

using QSB.ItemSync.WorldObjects.Items;
using QSB.Patches;
using QSB.WorldSync;
namespace QSB.ItemSync.WorldObjects.Sockets;
internal class QSBItemSocket : WorldObject<OWItemSocket>
{
public override void SendInitialState(uint to)
{
// todo SendInitialState
}
public bool IsSocketOccupied() => AttachedObject.IsSocketOccupied();
public void PlaceIntoSocket(IQSBItem item)
=> QSBPatch.RemoteCall(() => AttachedObject.PlaceIntoSocket((OWItem)item.AttachedObject));
public void RemoveFromSocket()
=> QSBPatch.RemoteCall(AttachedObject.RemoveFromSocket);
}