2025-07-17 08:55:45 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace DDD
|
|
|
|
{
|
|
|
|
public enum InteractionType
|
|
|
|
{
|
2025-07-22 10:07:14 +00:00
|
|
|
None,
|
|
|
|
RestaurantManagement,
|
2025-07-22 11:15:20 +00:00
|
|
|
Count
|
2025-07-17 08:55:45 +00:00
|
|
|
}
|
|
|
|
public interface IInteractable
|
|
|
|
{
|
|
|
|
bool CanInteract();
|
2025-07-22 11:15:20 +00:00
|
|
|
bool OnInteracted(IInteractor interactor, ScriptableObject interactionPayloadSo = null);
|
|
|
|
InteractionType GetInteractionType();
|
|
|
|
GameObject GetInteractableGameObject();
|
|
|
|
void InitializeInteraction(InteractionType interactionType);
|
2025-07-17 08:55:45 +00:00
|
|
|
}
|
|
|
|
public interface IInteractor
|
|
|
|
{
|
2025-07-22 11:15:20 +00:00
|
|
|
GameObject GetInteractorGameObject();
|
|
|
|
}
|
|
|
|
|
|
|
|
public interface IInteractionSolver
|
|
|
|
{
|
|
|
|
bool ExecuteInteraction(IInteractor interactor, ScriptableObject interactionPayloadSo = null);
|
2025-07-17 08:55:45 +00:00
|
|
|
}
|
|
|
|
}
|