21 lines
571 B
C#
Raw Normal View History

2021-11-01 15:49:00 +00:00
using QSB.ItemSync.WorldObjects.Items;
2022-03-23 14:27:20 -07:00
using QSB.Patches;
2021-02-25 14:53:34 +00:00
using QSB.WorldSync;
2021-02-23 14:42:18 +00:00
2022-03-02 19:46:33 -08:00
namespace QSB.ItemSync.WorldObjects.Sockets;
internal class QSBItemSocket : WorldObject<OWItemSocket>
2021-02-23 14:42:18 +00:00
{
2022-03-02 19:46:33 -08:00
public override void SendInitialState(uint to)
2021-02-23 14:42:18 +00:00
{
2022-03-02 19:46:33 -08:00
// todo SendInitialState
}
2022-03-23 14:27:20 -07:00
public bool IsSocketOccupied() => AttachedObject.IsSocketOccupied();
2021-03-26 20:56:57 +00:00
public void PlaceIntoSocket(IQSBItem item)
2022-03-23 14:27:20 -07:00
=> QSBPatch.RemoteCall(() => AttachedObject.PlaceIntoSocket((OWItem)item.AttachedObject));
2022-03-02 19:46:33 -08:00
public void RemoveFromSocket()
2022-03-23 14:27:20 -07:00
=> QSBPatch.RemoteCall(AttachedObject.RemoveFromSocket);
}