35 lines
1.4 KiB
C#
35 lines
1.4 KiB
C#
using UnityEngine;
|
|
|
|
namespace DDD
|
|
{
|
|
public class RestaurantOrderSolver : MonoBehaviour, IInteractionSolver, IInteractionSubsystemSolver<RestaurantOrderInteractionType>
|
|
{
|
|
public bool ExecuteInteraction(IInteractor interactor, IInteractable interactable, ScriptableObject payloadSo = null)
|
|
{
|
|
return ExecuteInteractionSubsystem(interactor, interactable, payloadSo);
|
|
}
|
|
|
|
public bool CanExecuteInteraction(IInteractor interactor = null, IInteractable interactable = null,
|
|
ScriptableObject payloadSo = null)
|
|
{
|
|
return CanExecuteInteractionSubsystem(interactor, interactable, payloadSo);
|
|
}
|
|
|
|
public bool ExecuteInteractionSubsystem(IInteractor interactor, IInteractable interactable, ScriptableObject payloadSo = null)
|
|
{
|
|
TODO_IMPLEMENT_ME
|
|
}
|
|
|
|
public bool CanExecuteInteractionSubsystem(IInteractor interactor = null, IInteractable interactable = null,
|
|
ScriptableObject payloadSo = null)
|
|
{
|
|
if (interactable is IInteractionSubsystemObject<RestaurantOrderInteractionType> subsystem)
|
|
{
|
|
RestaurantOrderInteractionType interactionType = subsystem.GetInteractionSubsystemType();
|
|
// Can I solve this interaction type?
|
|
TODO_IMPLEMENT_ME
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
} |