15 lines
570 B
C#
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);
|
|
}
|
|
} |