init
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user