ProjectDDD/Assets/_DDD/_Scripts/GameEvent/IInteractable.cs
2025-08-07 17:51:36 +09:00

33 lines
898 B
C#

using UnityEngine;
namespace DDD
{
public enum InteractionType
{
None = 0,
RestaurantManagementUi,
OpenRestaurant,
Count
}
public interface IInteractable
{
bool CanInteract();
bool OnInteracted(IInteractor interactor, ScriptableObject interactionPayloadSo = null);
InteractionType GetInteractionType();
GameObject GetInteractableGameObject();
void InitializeInteraction(InteractionType interactionType);
float GetRequiredHoldTime();
string GetInteractionMessageKey();
}
public interface IInteractor
{
GameObject GetInteractorGameObject();
}
public interface IInteractionSolver
{
bool ExecuteInteraction(IInteractor interactor, IInteractable interactable, ScriptableObject interactionPayloadSo = null);
bool CanExecuteInteraction();
}
}