public Sentence(string text, string name = "", AudioClip voice = null, DEvent diagEvent = null) { this.text = text; this.name = name; this.voice = voice; this.diagEvent = diagEvent; }
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 }); }
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); }
// TODO need a callback for when dialogue events finish private void CallDialogueEvent(DEvent devent) { diagEventIsRunning = true; devent(); diagEventIsRunning = false; }
public void Apply(DEvent _) { DCount++; }
public void Apply(MyAggregate aggregate, DEvent @event) { aggregate.DCount++; }
public override DTask <bool> Solve(int n, DEvent <bool> callback) { CodeToExecuteBefore(); return(base.Solve(n, callback)); }
public ActionResult Event_Delete(DEvent deleting) { return(View("Index")); }
public ActionResult Event_Update(DEvent updating) { return(View("Index")); }
public ActionResult Event_Create(DEvent creating) { return(View("Index")); }