mirror of
https://github.com/nothke/quality-control.git
synced 2025-08-29 15:13:42 +00:00
Added interaction, hand, rigidbody dragging, picking up hammer
This commit is contained in:
32
Assets/Plugins/Interaction/Runtime/Items/Slots.cs
Normal file
32
Assets/Plugins/Interaction/Runtime/Items/Slots.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
using Nothke.Interaction.Items;
|
||||
|
||||
namespace Nothke.Interaction
|
||||
{
|
||||
public interface ISlottable
|
||||
{
|
||||
string SlotTag { get; }
|
||||
|
||||
bool IsSlottable { get; }
|
||||
void OnStartedPlacing(IHands hands);
|
||||
void OnSlotted();
|
||||
|
||||
IItemReceivable SlottedIn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Called before IsSlottable is nulled
|
||||
/// </summary>
|
||||
void OnRemovedFromSlot();
|
||||
}
|
||||
|
||||
public interface IItemReceivable
|
||||
{
|
||||
string SlotTag { get; }
|
||||
|
||||
bool CanReceive(ISlottable slottable);
|
||||
bool SetItemInSlot(ISlottable slottable);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user