BITKit/Src/Core/Node/ICondition.cs

17 lines
314 B
C#
Raw Normal View History

2023-08-11 23:57:37 +08:00
using System;
2023-06-05 19:57:17 +08:00
namespace BITKit
{
public interface ICondition
{
2024-03-31 23:31:00 +08:00
public bool Allow => OnCheck();
public string Reason=> "Not Implemented";
2023-06-05 19:57:17 +08:00
bool OnCheck();
}
2023-08-11 23:57:37 +08:00
[Serializable]
public struct AllowCondition : ICondition
{
2024-03-31 23:31:00 +08:00
2023-08-11 23:57:37 +08:00
public bool OnCheck() => true;
}
2023-06-05 19:57:17 +08:00
}