mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-08 18:51:19 +00:00
remove QSBOWitemDoubleSocket
This commit is contained in:
parent
0a423a8ce6
commit
85343384dd
@ -1,28 +0,0 @@
|
||||
using QSB.ItemSync.WorldObjects.Items;
|
||||
using QSB.WorldSync;
|
||||
|
||||
namespace QSB.ItemSync.WorldObjects.Sockets
|
||||
{
|
||||
// todo make this QSBOWItemSocket since it's identical
|
||||
internal class QSBOWItemDoubleSocket<T> : WorldObject<T>, IQSBOWItemSocket
|
||||
where T : OWItemSocket
|
||||
{
|
||||
public override void SendResyncInfo(uint to) { }
|
||||
|
||||
public virtual bool AcceptsItem(IQSBOWItem item)
|
||||
{
|
||||
var itemType = item.GetItemType();
|
||||
var acceptableType = AttachedObject._acceptableType;
|
||||
return (itemType & acceptableType) == itemType;
|
||||
}
|
||||
|
||||
public virtual bool IsSocketOccupied()
|
||||
=> AttachedObject.IsSocketOccupied();
|
||||
|
||||
public virtual bool PlaceIntoSocket(IQSBOWItem item)
|
||||
=> AttachedObject.PlaceIntoSocket((OWItem)item.ReturnObject());
|
||||
|
||||
public virtual IQSBOWItem RemoveFromSocket()
|
||||
=> AttachedObject.RemoveFromSocket().GetWorldObject<IQSBOWItem>();
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
namespace QSB.ItemSync.WorldObjects.Sockets
|
||||
{
|
||||
internal class QSBSlideProjectorSocket : QSBOWItemDoubleSocket<SlideProjectorSocket>
|
||||
internal class QSBSlideProjectorSocket : QSBOWItemSocket<SlideProjectorSocket>
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user