示例#1
0
 public Sentence(string text, string name = "", AudioClip voice = null, DEvent diagEvent = null)
 {
     this.text      = text;
     this.name      = name;
     this.voice     = voice;
     this.diagEvent = diagEvent;
 }
示例#2
0
 public MyAggregate Apply(MyAggregate aggregate, DEvent @event)
 {
     return(new MyAggregate
     {
         ACount = aggregate.ACount,
         BCount = aggregate.BCount,
         CCount = aggregate.CCount,
         DCount = aggregate.DCount + 1,
         Id = aggregate.Id
     });
 }
示例#3
0
 public virtual DTask <bool> Solve(int n, DEvent <bool> callback)
 {
     for (int m = 2; m < n - 1; m += 1)
     {
         if (m % n == 0)
         {
             return(false);
         }
     }
     return(true);
 }
示例#4
0
 // TODO need a callback for when dialogue events finish
 private void CallDialogueEvent(DEvent devent)
 {
     diagEventIsRunning = true;
     devent();
     diagEventIsRunning = false;
 }
示例#5
0
 public void Apply(DEvent _)
 {
     DCount++;
 }
 public void Apply(MyAggregate aggregate, DEvent @event)
 {
     aggregate.DCount++;
 }
示例#7
0
 public override DTask <bool> Solve(int n, DEvent <bool> callback)
 {
     CodeToExecuteBefore();
     return(base.Solve(n, callback));
 }
示例#8
0
 public ActionResult Event_Delete(DEvent deleting)
 {
     return(View("Index"));
 }
示例#9
0
 public ActionResult Event_Update(DEvent updating)
 {
     return(View("Index"));
 }
示例#10
0
 public ActionResult Event_Create(DEvent creating)
 {
     return(View("Index"));
 }