27 lines
907 B
C#
27 lines
907 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace DDD
|
|
{
|
|
public interface IInteractionSubsystemObject
|
|
{
|
|
Type GetSubsystemEnumType();
|
|
void InitializeSubsystem();
|
|
bool CanInteract();
|
|
bool OnInteracted(IInteractor interactor, ScriptableObject payloadSo = null);
|
|
}
|
|
public interface IInteractionSubsystemObject<T> : IInteractionSubsystemObject where T : Enum
|
|
{
|
|
T GetInteractionSubsystemType();
|
|
}
|
|
|
|
public interface IInteractionSubsystemSolver
|
|
{
|
|
}
|
|
public interface IInteractionSubsystemSolver<T> : IInteractionSubsystemSolver where T : Enum
|
|
{
|
|
bool ExecuteInteractionSubsystem(IInteractor interactor, IInteractable interactable, ScriptableObject payloadSo = null);
|
|
bool CanExecuteInteractionSubsystem(IInteractor interactor = null, IInteractable interactable = null,
|
|
ScriptableObject payloadSo = null);
|
|
}
|
|
} |