Files
TheVVaS-Assets/RPGCore/Runtime/Core/IRequirement.cs
T
2026-04-25 23:37:10 +02:00

15 lines
570 B
C#

using System;
namespace RPGCore.Core
{
/// <summary>
/// With this interface you can create your own list of requirements for specific <see cref="Type"/> (and its implementations).
/// <see cref="Check"/> returns TRUE if defined requirement is met, otherwise FALSE.
/// Thanks to this we can create list of reusable requirements that further can be used to gate logic.
/// </summary>
/// <typeparam name="T">Type for which this requirement is</typeparam>
public interface IRequirement<in T>
{
public bool Check(T obj);
}
}