mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +00:00
items: prepare for remote call stuff
This commit is contained in:
parent
c3168aa694
commit
e44b6aebdf
@ -1,6 +1,7 @@
|
||||
using HarmonyLib;
|
||||
using OWML.Common;
|
||||
using QSB.ItemSync.Messages;
|
||||
using QSB.ItemSync.WorldObjects;
|
||||
using QSB.ItemSync.WorldObjects.Items;
|
||||
using QSB.ItemSync.WorldObjects.Sockets;
|
||||
using QSB.Messaging;
|
||||
|
@ -3,7 +3,6 @@ using QSB.ItemSync.WorldObjects.Sockets;
|
||||
using QSB.Patches;
|
||||
using QSB.Player;
|
||||
using QSB.SectorSync.WorldObjects;
|
||||
using QSB.Utility;
|
||||
using QSB.WorldSync;
|
||||
using System.Threading;
|
||||
using UnityEngine;
|
||||
@ -75,8 +74,7 @@ internal class QSBItem<T> : WorldObject<T>, IQSBItem
|
||||
// todo SendInitialState
|
||||
}
|
||||
|
||||
public ItemType GetItemType()
|
||||
=> QSBPatch.RemoteCall(AttachedObject.GetItemType);
|
||||
public ItemType GetItemType() => AttachedObject.GetItemType();
|
||||
|
||||
public void PickUpItem(Transform holdTransform)
|
||||
=> QSBPatch.RemoteCall(() => AttachedObject.PickUpItem(holdTransform));
|
||||
|
@ -1,4 +1,5 @@
|
||||
using QSB.ItemSync.WorldObjects.Items;
|
||||
using QSB.Patches;
|
||||
using QSB.WorldSync;
|
||||
|
||||
namespace QSB.ItemSync.WorldObjects.Sockets;
|
||||
@ -10,12 +11,11 @@ internal class QSBItemSocket : WorldObject<OWItemSocket>
|
||||
// todo SendInitialState
|
||||
}
|
||||
|
||||
public bool IsSocketOccupied()
|
||||
=> AttachedObject.IsSocketOccupied();
|
||||
public bool IsSocketOccupied() => AttachedObject.IsSocketOccupied();
|
||||
|
||||
public void PlaceIntoSocket(IQSBItem item)
|
||||
=> AttachedObject.PlaceIntoSocket((OWItem)item.AttachedObject);
|
||||
=> QSBPatch.RemoteCall(() => AttachedObject.PlaceIntoSocket((OWItem)item.AttachedObject));
|
||||
|
||||
public void RemoveFromSocket()
|
||||
=> AttachedObject.RemoveFromSocket();
|
||||
=> QSBPatch.RemoteCall(AttachedObject.RemoveFromSocket);
|
||||
}
|
Loading…
Reference in New Issue
Block a user