12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using CommonLang.Property;
- using CommonAI.Zone.ZoneEditor;
- using CommonAI.Zone.EventTrigger;
- namespace CommonAI.Zone.ZoneEditor.EventTrigger
- {
- //-------------------------------------------------------------------
- [DescAttribute("总是可以", "布尔")]
- public class AlwaysTrue : AbstractCondition
- {
- public override string ToString()
- {
- return "总是可以";
- }
- public override bool Test(EventTriggerAdapter api, EventArguments args)
- {
- return true;
- }
- }
- [DescAttribute("布尔条件", "布尔")]
- public class BooleanCondition : AbstractCondition
- {
- [DescAttribute("布尔值")]
- public BooleanValue Value = new BooleanValue.BooleanComparison();
- public override string ToString()
- {
- return Value.ToString();
- }
- public override bool Test(EventTriggerAdapter api, EventArguments args)
- {
- return Value.GetValue(api, args);
- }
- }
- }
|