using System;
namespace SK.Framework
{
///
/// 状态切换条件
///
public class StateSwitchCondition
{
///
/// 条件
///
public readonly Func predicate;
///
/// 源状态名称
///
public readonly string sourceStateName;
///
/// 目标状态名称
///
public readonly string targetStateName;
///
/// 构造函数
///
/// 切换条件
/// 源状态名称
/// 目标状态名称
public StateSwitchCondition(Func predicate, string sourceStateName, string targetStateName)
{
this.predicate = predicate;
this.sourceStateName = sourceStateName;
this.targetStateName = targetStateName;
}
}
}