mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 10:14:14 +00:00
26 lines
671 B
C#
26 lines
671 B
C#
using Cysharp.Threading.Tasks;
|
|
using QSB.WorldSync;
|
|
using System;
|
|
using System.Threading;
|
|
using UnityEngine;
|
|
|
|
namespace QSB.ItemSync.WorldObjects;
|
|
|
|
/// <summary>
|
|
/// for other drop targets that don't already have world objects
|
|
/// </summary>
|
|
public class QSBOtherDropTarget : WorldObject<MonoBehaviour>, IQSBDropTarget
|
|
{
|
|
IItemDropTarget IQSBDropTarget.AttachedObject => (IItemDropTarget)AttachedObject;
|
|
|
|
public override async UniTask Init(CancellationToken ct)
|
|
{
|
|
if (AttachedObject is not IItemDropTarget)
|
|
{
|
|
throw new ArgumentException("QSBDropTarget.AttachedObject is not an IItemDropTarget!");
|
|
}
|
|
}
|
|
|
|
public override void SendInitialState(uint to) { }
|
|
}
|