Some checks failed
MANDATORY: Build project (Pflib Net) TeamCity build failed
24 lines
510 B
C#
24 lines
510 B
C#
using pflib_net.conditions;
|
|
|
|
namespace pflib_net.effects.implementation;
|
|
|
|
public readonly struct ConditionEffect: IEffect
|
|
{
|
|
private readonly ICondition _condition;
|
|
private readonly string _reason;
|
|
public ICondition Condition
|
|
{
|
|
get => _condition;
|
|
}
|
|
public string Reason
|
|
{
|
|
get => _reason;
|
|
init => _reason = value;
|
|
}
|
|
|
|
public ConditionEffect(ICondition condition, string reason)
|
|
{
|
|
_condition = condition;
|
|
_reason = reason;
|
|
}
|
|
} |