public SetAndCheck() { Predicate = BehaviorProperty <bool> .Func(bb => { object value; if (Func != null) { value = Func(); } else { value = FuncBlackboard(bb); } if (value == null) { return(false); } bb.Set(Destination, value); return(true); }); }
public IsSet() { Predicate = BehaviorProperty <bool> .Func(bb => bb.Contains(Source) && bb.Get <object>(Source) != null); }
public void SetFunc <T>(Func <Blackboard, T> value) { Set(BehaviorProperty <T> .Func(value)); }