Ejemplo n.º 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;
 }
Ejemplo n.º 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
     });
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 4
0
 // TODO need a callback for when dialogue events finish
 private void CallDialogueEvent(DEvent devent)
 {
     diagEventIsRunning = true;
     devent();
     diagEventIsRunning = false;
 }
Ejemplo n.º 5
0
 public void Apply(DEvent _)
 {
     DCount++;
 }
Ejemplo n.º 6
0
 public void Apply(MyAggregate aggregate, DEvent @event)
 {
     aggregate.DCount++;
 }
Ejemplo n.º 7
0
 public override DTask <bool> Solve(int n, DEvent <bool> callback)
 {
     CodeToExecuteBefore();
     return(base.Solve(n, callback));
 }
Ejemplo n.º 8
0
 public ActionResult Event_Delete(DEvent deleting)
 {
     return(View("Index"));
 }
Ejemplo n.º 9
0
 public ActionResult Event_Update(DEvent updating)
 {
     return(View("Index"));
 }
Ejemplo n.º 10
0
 public ActionResult Event_Create(DEvent creating)
 {
     return(View("Index"));
 }