2023-08-12 01:43:24 +08:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace BITKit
|
|
|
|
{
|
|
|
|
public interface ICondition
|
|
|
|
{
|
2023-12-26 20:07:19 +08:00
|
|
|
public bool Allow => OnCheck();
|
|
|
|
public string Reason=> "Not Implemented";
|
2023-08-12 01:43:24 +08:00
|
|
|
bool OnCheck();
|
|
|
|
}
|
|
|
|
[Serializable]
|
|
|
|
public struct AllowCondition : ICondition
|
|
|
|
{
|
2023-12-26 20:07:19 +08:00
|
|
|
|
2023-08-12 01:43:24 +08:00
|
|
|
public bool OnCheck() => true;
|
|
|
|
}
|
|
|
|
}
|