mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 19:11:32 +00:00
21 lines
571 B
C#
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);
|
|
} |