This commit is contained in:
2026-04-25 23:37:10 +02:00
commit 19d6bd934a
476 changed files with 9198 additions and 0 deletions
+15
View File
@@ -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);
}
}