// // Ariadne.Generator's copy of the scripts in this file: the code that actually runs. Edits here are overwritten. // In the copy beside the script, #line paths are relative to it; the compiled code uses full paths. #pragma warning disable using System; using Amphora; using System.Collections.Generic; namespace Ariadne.UnitTests { partial class WaitingScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public global::Amphora.Duration Run____wait1; public global::Amphora.Duration Run____wait2; public static void ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); lister.Local("Run.__wait2"); } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::Ariadne.Frame __CreateFrame() { return new __Frame(); } [global::System.CodeDom.Compiler.GeneratedCode("Ariadne.Generator", "1.0")] protected override bool __Resume(global::Ariadne.UnitTests.ArcTests.Gates context, global::Ariadne.TickTime __time) { return Run__Passage((__Frame)__CurrentFrame, __time, context); } protected override void __SaveLocals(global::Ariadne.IArcWriter writer) { Run__LocalsToSave((__Frame)__CurrentFrame, 0, writer); } public WaitingScript() { } protected WaitingScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { } protected WaitingScript(global::Ariadne.IArcReader reader) : this(reader, default(global::Ariadne.AutoLoadEveryField)) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private static void __ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); lister.Local("Run.__wait2"); } #pragma warning restore public partial class __Frame { public override void SaveLocal(string key, global::Ariadne.IArcWriter writer) { switch (key) { case "Run.__wait1": #line 20 "WaitScripts.cs" writer.Local("Run.__wait1", this.Run____wait1); #line hidden return; case "Run.__wait2": #line 24 "WaitScripts.cs" writer.Local("Run.__wait2", this.Run____wait2); #line hidden return; } #line default base.SaveLocal(key, writer); } } #pragma warning disable public partial class __Frame { public override void LoadLocals(global::Ariadne.IArcReader reader) { base.LoadLocals(reader); { if (reader.TryLocal("Run.__wait1", out global::Amphora.Duration loaded)) { this.Run____wait1 = loaded; } } { if (reader.TryLocal("Run.__wait2", out global::Amphora.Duration loaded)) { this.Run____wait2 = loaded; } } } } #pragma warning disable [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, ArcTests.Gates gates) { #line hidden switch (__frame.ResumeKey) { case "first": goto first__resume; case "second": goto second__resume; } #line 17 "WaitScripts.cs" Log.Add("start"); #line hidden first: #line 20 "WaitScripts.cs" __frame.Run____wait1 = __time.DeadlineAfter(TimeSpan.FromSeconds(1)); #line hidden first__resume: #line 20 "WaitScripts.cs" if (__time.GameTime < __frame.Run____wait1) { __frame.Sleep(__frame.Run____wait1); __frame.Mark("first"); return false; } #line 21 "WaitScripts.cs" Log.Add("after one second"); #line hidden second: #line 24 "WaitScripts.cs" __frame.Run____wait2 = __time.DeadlineAfter(TimeSpan.FromSeconds(2)); #line hidden second__resume: #line 24 "WaitScripts.cs" if (__time.GameTime < __frame.Run____wait2) { __frame.Sleep(__frame.Run____wait2); __frame.Mark("second"); return false; } #line 25 "WaitScripts.cs" Log.Add("end"); #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected void Run__LocalsToSave(__Frame __frame, int depth, global::Ariadne.IArcWriter writer) { if (depth >= __frame.Cursor.Count) { return; } switch (__frame.Cursor[depth]) { case "first": __frame.SaveLocal("Run.__wait1", writer); break; case "second": __frame.SaveLocal("Run.__wait2", writer); break; } } } } namespace Ariadne.UnitTests { partial class NoTimeWaitScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public global::Amphora.Duration Run____wait1; public global::Amphora.Duration Run____wait2; public static void ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); lister.Local("Run.__wait2"); } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::Ariadne.Frame __CreateFrame() { return new __Frame(); } [global::System.CodeDom.Compiler.GeneratedCode("Ariadne.Generator", "1.0")] protected override bool __Resume(global::Ariadne.UnitTests.ArcTests.Gates context, global::Ariadne.TickTime __time) { return Run__Passage((__Frame)__CurrentFrame, __time, context); } protected override void __SaveLocals(global::Ariadne.IArcWriter writer) { Run__LocalsToSave((__Frame)__CurrentFrame, 0, writer); } public NoTimeWaitScript() { } protected NoTimeWaitScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { } protected NoTimeWaitScript(global::Ariadne.IArcReader reader) : this(reader, default(global::Ariadne.AutoLoadEveryField)) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private static void __ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); lister.Local("Run.__wait2"); } #pragma warning restore public partial class __Frame { public override void SaveLocal(string key, global::Ariadne.IArcWriter writer) { switch (key) { case "Run.__wait1": #line 40 "WaitScripts.cs" writer.Local("Run.__wait1", this.Run____wait1); #line hidden return; case "Run.__wait2": #line 44 "WaitScripts.cs" writer.Local("Run.__wait2", this.Run____wait2); #line hidden return; } #line default base.SaveLocal(key, writer); } } #pragma warning disable public partial class __Frame { public override void LoadLocals(global::Ariadne.IArcReader reader) { base.LoadLocals(reader); { if (reader.TryLocal("Run.__wait1", out global::Amphora.Duration loaded)) { this.Run____wait1 = loaded; } } { if (reader.TryLocal("Run.__wait2", out global::Amphora.Duration loaded)) { this.Run____wait2 = loaded; } } } } #pragma warning disable [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, ArcTests.Gates gates) { #line hidden switch (__frame.ResumeKey) { case "none": goto none__resume; case "behind": goto behind__resume; } #line hidden none: #line 40 "WaitScripts.cs" __frame.Run____wait1 = __time.DeadlineAfter(TimeSpan.Zero); #line hidden none__resume: #line 40 "WaitScripts.cs" if (__time.GameTime < __frame.Run____wait1) { __frame.Sleep(__frame.Run____wait1); __frame.Mark("none"); return false; } #line 41 "WaitScripts.cs" Log.Add("through zero"); #line hidden behind: #line 44 "WaitScripts.cs" __frame.Run____wait2 = __time.DeadlineAfter(TimeSpan.FromSeconds(-5)); #line hidden behind__resume: #line 44 "WaitScripts.cs" if (__time.GameTime < __frame.Run____wait2) { __frame.Sleep(__frame.Run____wait2); __frame.Mark("behind"); return false; } #line 45 "WaitScripts.cs" Log.Add("through negative"); #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected void Run__LocalsToSave(__Frame __frame, int depth, global::Ariadne.IArcWriter writer) { if (depth >= __frame.Cursor.Count) { return; } switch (__frame.Cursor[depth]) { case "none": __frame.SaveLocal("Run.__wait1", writer); break; case "behind": __frame.SaveLocal("Run.__wait2", writer); break; } } } } namespace Ariadne.UnitTests { partial class LoopWaitScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public int Run__trip; public global::Amphora.Duration Run____wait1; public static void ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); lister.Local("Run.trip"); } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::Ariadne.Frame __CreateFrame() { return new __Frame(); } [global::System.CodeDom.Compiler.GeneratedCode("Ariadne.Generator", "1.0")] protected override bool __Resume(global::Ariadne.UnitTests.ArcTests.Gates context, global::Ariadne.TickTime __time) { return Run__Passage((__Frame)__CurrentFrame, __time, context); } protected override void __SaveLocals(global::Ariadne.IArcWriter writer) { Run__LocalsToSave((__Frame)__CurrentFrame, 0, writer); } public LoopWaitScript() { } protected LoopWaitScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { } protected LoopWaitScript(global::Ariadne.IArcReader reader) : this(reader, default(global::Ariadne.AutoLoadEveryField)) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private static void __ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); lister.Local("Run.trip"); } #pragma warning restore public partial class __Frame { public override void SaveLocal(string key, global::Ariadne.IArcWriter writer) { switch (key) { case "Run.__wait1": #line 62 "WaitScripts.cs" writer.Local("Run.__wait1", this.Run____wait1); #line hidden return; case "Run.trip": #line 59 "WaitScripts.cs" writer.Local("Run.trip", this.Run__trip); #line hidden return; } #line default base.SaveLocal(key, writer); } } #pragma warning disable public partial class __Frame { public override void LoadLocals(global::Ariadne.IArcReader reader) { base.LoadLocals(reader); { if (reader.TryLocal("Run.__wait1", out global::Amphora.Duration loaded)) { this.Run____wait1 = loaded; } } { if (reader.TryLocal("Run.trip", out int loaded)) { this.Run__trip = loaded; } } } } #pragma warning disable [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, ArcTests.Gates gates) { #line hidden switch (__frame.ResumeKey) { case "rest": goto rest__resume; } #line hidden { ref int trip = ref __frame.Run__trip; #line 59 "WaitScripts.cs" trip = 0; #line hidden } #line hidden __loopStart1: #line hidden { ref int trip = ref __frame.Run__trip; #line 59 "WaitScripts.cs" if (!(trip < 3)) goto __loopEnd1; #line hidden } #line hidden rest: #line hidden { #line 62 "WaitScripts.cs" __frame.Run____wait1 = __time.DeadlineAfter(TimeSpan.FromSeconds(1)); #line hidden } #line hidden rest__resume: #line hidden { ref int trip = ref __frame.Run__trip; #line 62 "WaitScripts.cs" if (__time.GameTime < __frame.Run____wait1) { __frame.Sleep(__frame.Run____wait1); __frame.Mark("rest"); return false; } #line 63 "WaitScripts.cs" Log.Add("trip " + trip); #line hidden } #line hidden __loopCont1: #line hidden { ref int trip = ref __frame.Run__trip; #line 59 "WaitScripts.cs" trip++; #line hidden goto __loopStart1; #line hidden } #line hidden __loopEnd1: #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected void Run__LocalsToSave(__Frame __frame, int depth, global::Ariadne.IArcWriter writer) { if (depth >= __frame.Cursor.Count) { return; } switch (__frame.Cursor[depth]) { case "rest": __frame.SaveLocal("Run.trip", writer); __frame.SaveLocal("Run.__wait1", writer); break; } } } } namespace Ariadne.UnitTests { partial class SpanLocalScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public global::Amphora.Duration Run____wait1; public static void ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::Ariadne.Frame __CreateFrame() { return new __Frame(); } [global::System.CodeDom.Compiler.GeneratedCode("Ariadne.Generator", "1.0")] protected override bool __Resume(global::Ariadne.UnitTests.ArcTests.Gates context, global::Ariadne.TickTime __time) { return Run__Passage((__Frame)__CurrentFrame, __time, context); } protected override void __SaveLocals(global::Ariadne.IArcWriter writer) { Run__LocalsToSave((__Frame)__CurrentFrame, 0, writer); } public SpanLocalScript() { } protected SpanLocalScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { } protected SpanLocalScript(global::Ariadne.IArcReader reader) : this(reader, default(global::Ariadne.AutoLoadEveryField)) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private static void __ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); } #pragma warning restore public partial class __Frame { public override void SaveLocal(string key, global::Ariadne.IArcWriter writer) { switch (key) { case "Run.__wait1": #line 81 "WaitScripts.cs" writer.Local("Run.__wait1", this.Run____wait1); #line hidden return; } #line default base.SaveLocal(key, writer); } } #pragma warning disable public partial class __Frame { public override void LoadLocals(global::Ariadne.IArcReader reader) { base.LoadLocals(reader); { if (reader.TryLocal("Run.__wait1", out global::Amphora.Duration loaded)) { this.Run____wait1 = loaded; } } } } #pragma warning disable [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, ArcTests.Gates gates) { #line hidden switch (__frame.ResumeKey) { case "rest": goto rest__resume; } #line 78 "WaitScripts.cs" TimeSpan span = TimeSpan.FromSeconds(1.5); #line hidden rest: #line 81 "WaitScripts.cs" __frame.Run____wait1 = __time.DeadlineAfter(span); #line hidden rest__resume: #line 81 "WaitScripts.cs" if (__time.GameTime < __frame.Run____wait1) { __frame.Sleep(__frame.Run____wait1); __frame.Mark("rest"); return false; } #line 82 "WaitScripts.cs" Log.Add("rested"); #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected void Run__LocalsToSave(__Frame __frame, int depth, global::Ariadne.IArcWriter writer) { if (depth >= __frame.Cursor.Count) { return; } switch (__frame.Cursor[depth]) { case "rest": __frame.SaveLocal("Run.__wait1", writer); break; } } } } namespace Ariadne.UnitTests { partial class BranchWaitScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public global::Amphora.Duration Run____wait1; public static void ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::Ariadne.Frame __CreateFrame() { return new __Frame(); } [global::System.CodeDom.Compiler.GeneratedCode("Ariadne.Generator", "1.0")] protected override bool __Resume(global::Ariadne.UnitTests.ArcTests.Gates context, global::Ariadne.TickTime __time) { return Run__Passage((__Frame)__CurrentFrame, __time, context); } protected override void __SaveLocals(global::Ariadne.IArcWriter writer) { Run__LocalsToSave((__Frame)__CurrentFrame, 0, writer); } public BranchWaitScript() { } protected BranchWaitScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { } protected BranchWaitScript(global::Ariadne.IArcReader reader) : this(reader, default(global::Ariadne.AutoLoadEveryField)) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private static void __ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); } #pragma warning restore public partial class __Frame { public override void SaveLocal(string key, global::Ariadne.IArcWriter writer) { switch (key) { case "Run.__wait1": #line 100 "WaitScripts.cs" writer.Local("Run.__wait1", this.Run____wait1); #line hidden return; } #line default base.SaveLocal(key, writer); } } #pragma warning disable public partial class __Frame { public override void LoadLocals(global::Ariadne.IArcReader reader) { base.LoadLocals(reader); { if (reader.TryLocal("Run.__wait1", out global::Amphora.Duration loaded)) { this.Run____wait1 = loaded; } } } } #pragma warning disable [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, ArcTests.Gates gates) { #line hidden switch (__frame.ResumeKey) { case "slow": goto slow__resume; } #line 96 "WaitScripts.cs" Log.Add("start"); #line hidden { #line 97 "WaitScripts.cs" if (!(gates.Open.Contains("slow"))) goto __else1; #line hidden } #line hidden slow: #line hidden { #line 100 "WaitScripts.cs" __frame.Run____wait1 = __time.DeadlineAfter(TimeSpan.FromSeconds(1)); #line hidden } #line hidden slow__resume: #line hidden { #line 100 "WaitScripts.cs" if (__time.GameTime < __frame.Run____wait1) { __frame.Sleep(__frame.Run____wait1); __frame.Mark("slow"); return false; } #line 101 "WaitScripts.cs" Log.Add("slow"); #line hidden goto __end1; #line hidden } #line hidden __else1: #line hidden { #line 104 "WaitScripts.cs" { Log.Add("quick"); } #line hidden } #line hidden __end1: #line 108 "WaitScripts.cs" Log.Add("end"); #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected void Run__LocalsToSave(__Frame __frame, int depth, global::Ariadne.IArcWriter writer) { if (depth >= __frame.Cursor.Count) { return; } switch (__frame.Cursor[depth]) { case "slow": __frame.SaveLocal("Run.__wait1", writer); break; } } } } namespace Ariadne.UnitTests { partial class AskWaitScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public global::System.TimeSpan Run____spill1; public global::Amphora.Duration Run____wait1; public static void ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::Ariadne.Frame __CreateFrame() { return new __Frame(); } [global::System.CodeDom.Compiler.GeneratedCode("Ariadne.Generator", "1.0")] protected override bool __Resume(global::Ariadne.UnitTests.ArcTests.Gates context, global::Ariadne.TickTime __time) { return Run__Passage((__Frame)__CurrentFrame, __time, context); } protected override void __SaveLocals(global::Ariadne.IArcWriter writer) { Run__LocalsToSave((__Frame)__CurrentFrame, 0, writer); } public AskWaitScript() { } protected AskWaitScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { } protected AskWaitScript(global::Ariadne.IArcReader reader) : this(reader, default(global::Ariadne.AutoLoadEveryField)) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private static void __ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); } #pragma warning restore public partial class __Frame { public override void SaveLocal(string key, global::Ariadne.IArcWriter writer) { switch (key) { case "Run.__wait1": #line 134 "WaitScripts.cs" writer.Local("Run.__wait1", this.Run____wait1); #line hidden return; } #line default base.SaveLocal(key, writer); } } #pragma warning disable public partial class __Frame { public override void LoadLocals(global::Ariadne.IArcReader reader) { base.LoadLocals(reader); { if (reader.TryLocal("Run.__wait1", out global::Amphora.Duration loaded)) { this.Run____wait1 = loaded; } } } } #pragma warning disable [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, ArcTests.Gates gates) { #line hidden switch (__frame.ResumeKey) { case "first": goto first; case "first#1": goto first__1__resume; } #line hidden first: #line 134 "WaitScripts.cs" { global::System.TimeSpan __value; using (__frame.Enter("first")) { if (!Ask__Passage(__frame, __time, gates, __result: out __value)) { return false; } } __frame.Run____spill1 = __value; } #line hidden first__1: #line 134 "WaitScripts.cs" __frame.Run____wait1 = __time.DeadlineAfter(__frame.Run____spill1); #line hidden first__1__resume: #line 134 "WaitScripts.cs" if (__time.GameTime < __frame.Run____wait1) { __frame.Sleep(__frame.Run____wait1); __frame.Mark("first#1"); return false; } #line 135 "WaitScripts.cs" Log.Add("done"); #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected void Run__LocalsToSave(__Frame __frame, int depth, global::Ariadne.IArcWriter writer) { if (depth >= __frame.Cursor.Count) { return; } switch (__frame.Cursor[depth]) { case "first#1": __frame.SaveLocal("Run.__wait1", writer); break; } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private bool Ask__Passage(__Frame __frame, global::Ariadne.TickTime __time, ArcTests.Gates gates, out global::System.TimeSpan __result) { #line hidden __result = default(global::System.TimeSpan); switch (__frame.ResumeKey) { case "ask": goto ask; } #line hidden ask: #line 123 "WaitScripts.cs" while (!gates.Open.Contains("answer")) #line hidden { #line 125 "WaitScripts.cs" __frame.Mark("ask"); return false; #line hidden } #line 128 "WaitScripts.cs" { __result = TimeSpan.FromSeconds(2); __frame.Exit(); return true; } #line hidden __frame.Exit(); return true; #line default } } } namespace Ariadne.UnitTests { partial class AskSumWaitScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public global::System.TimeSpan Run__extra; public global::System.TimeSpan Run____spill1; public global::System.TimeSpan Run____spill2; public global::Amphora.Duration Run____wait1; public string Ask__gate; public static void ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Ask.gate"); lister.Local("Run.__spill1"); lister.Local("Run.__wait1"); lister.Local("Run.extra"); } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::Ariadne.Frame __CreateFrame() { return new __Frame(); } [global::System.CodeDom.Compiler.GeneratedCode("Ariadne.Generator", "1.0")] protected override bool __Resume(global::Ariadne.UnitTests.ArcTests.Gates context, global::Ariadne.TickTime __time) { return Run__Passage((__Frame)__CurrentFrame, __time, context); } protected override void __SaveLocals(global::Ariadne.IArcWriter writer) { Run__LocalsToSave((__Frame)__CurrentFrame, 0, writer); } public AskSumWaitScript() { } protected AskSumWaitScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { } protected AskSumWaitScript(global::Ariadne.IArcReader reader) : this(reader, default(global::Ariadne.AutoLoadEveryField)) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private static void __ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Ask.gate"); lister.Local("Run.__spill1"); lister.Local("Run.__wait1"); lister.Local("Run.extra"); } #pragma warning restore public partial class __Frame { public override void SaveLocal(string key, global::Ariadne.IArcWriter writer) { switch (key) { case "Ask.gate": #line 147 "WaitScripts.cs" writer.Local("Ask.gate", this.Ask__gate); #line hidden return; case "Run.__spill1": #line 163 "WaitScripts.cs" writer.Local("Run.__spill1", this.Run____spill1); #line hidden return; case "Run.__wait1": #line 163 "WaitScripts.cs" writer.Local("Run.__wait1", this.Run____wait1); #line hidden return; case "Run.extra": #line 160 "WaitScripts.cs" writer.Local("Run.extra", this.Run__extra); #line hidden return; } #line default base.SaveLocal(key, writer); } } #pragma warning disable public partial class __Frame { public override void LoadLocals(global::Ariadne.IArcReader reader) { base.LoadLocals(reader); { if (reader.TryLocal("Ask.gate", out string loaded)) { this.Ask__gate = loaded; } } { if (reader.TryLocal("Run.__spill1", out global::System.TimeSpan loaded)) { this.Run____spill1 = loaded; } } { if (reader.TryLocal("Run.__wait1", out global::Amphora.Duration loaded)) { this.Run____wait1 = loaded; } } { if (reader.TryLocal("Run.extra", out global::System.TimeSpan loaded)) { this.Run__extra = loaded; } } } } #pragma warning disable [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, ArcTests.Gates gates) { #line hidden ref global::System.TimeSpan extra = ref __frame.Run__extra; switch (__frame.ResumeKey) { case "first": goto first; case "first#1": goto first__1; case "first#2": goto first__2__resume; } #line 160 "WaitScripts.cs" extra = TimeSpan.FromSeconds(0.5); #line hidden first: #line 163 "WaitScripts.cs" { global::System.TimeSpan __value; using (__frame.Enter("first")) { if (!Ask__Passage(__frame, __time, gates, __frame.ResumeKey == null ? ("a") : default(string), __result: out __value)) { return false; } } __frame.Run____spill1 = __value; } #line hidden first__1: #line 163 "WaitScripts.cs" { global::System.TimeSpan __value; using (__frame.Enter("first#1")) { if (!Ask__Passage(__frame, __time, gates, __frame.ResumeKey == null ? ("b") : default(string), __result: out __value)) { return false; } } __frame.Run____spill2 = __value; } #line hidden first__2: #line 163 "WaitScripts.cs" __frame.Run____wait1 = __time.DeadlineAfter(__frame.Run____spill1 + __frame.Run____spill2 + extra); #line hidden first__2__resume: #line 163 "WaitScripts.cs" if (__time.GameTime < __frame.Run____wait1) { __frame.Sleep(__frame.Run____wait1); __frame.Mark("first#2"); return false; } #line 164 "WaitScripts.cs" Log.Add("done"); #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected void Run__LocalsToSave(__Frame __frame, int depth, global::Ariadne.IArcWriter writer) { if (depth >= __frame.Cursor.Count) { return; } switch (__frame.Cursor[depth]) { case "first": __frame.SaveLocal("Run.extra", writer); Ask__LocalsToSave(__frame, depth + 1, writer); break; case "first#1": __frame.SaveLocal("Run.extra", writer); __frame.SaveLocal("Run.__spill1", writer); Ask__LocalsToSave(__frame, depth + 1, writer); break; case "first#2": __frame.SaveLocal("Run.__wait1", writer); break; } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private bool Ask__Passage(__Frame __frame, global::Ariadne.TickTime __time, ArcTests.Gates gates, string gate__argument, out global::System.TimeSpan __result) { #line hidden __result = default(global::System.TimeSpan); ref string gate = ref __frame.Ask__gate; if (__frame.ResumeKey == null) { gate = gate__argument; } switch (__frame.ResumeKey) { case "ask": goto ask; } #line hidden ask: #line 150 "WaitScripts.cs" while (!gates.Open.Contains(gate)) #line hidden { #line 152 "WaitScripts.cs" __frame.Mark("ask"); return false; #line hidden } #line 155 "WaitScripts.cs" { __result = TimeSpan.FromSeconds(1); __frame.Exit(); return true; } #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private void Ask__LocalsToSave(__Frame __frame, int depth, global::Ariadne.IArcWriter writer) { if (depth >= __frame.Cursor.Count) { return; } switch (__frame.Cursor[depth]) { case "ask": __frame.SaveLocal("Ask.gate", writer); break; } } } } namespace Ariadne.UnitTests { partial class JumpWaitScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public int Run__laps; public global::Amphora.Duration Run____wait1; public static void ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); lister.Local("Run.laps"); } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::Ariadne.Frame __CreateFrame() { return new __Frame(); } [global::System.CodeDom.Compiler.GeneratedCode("Ariadne.Generator", "1.0")] protected override bool __Resume(global::Ariadne.UnitTests.ArcTests.Gates context, global::Ariadne.TickTime __time) { return Run__Passage((__Frame)__CurrentFrame, __time, context); } protected override void __SaveLocals(global::Ariadne.IArcWriter writer) { Run__LocalsToSave((__Frame)__CurrentFrame, 0, writer); } public JumpWaitScript() { } protected JumpWaitScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { } protected JumpWaitScript(global::Ariadne.IArcReader reader) : this(reader, default(global::Ariadne.AutoLoadEveryField)) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private static void __ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); lister.Local("Run.laps"); } #pragma warning restore public partial class __Frame { public override void SaveLocal(string key, global::Ariadne.IArcWriter writer) { switch (key) { case "Run.__wait1": #line 181 "WaitScripts.cs" writer.Local("Run.__wait1", this.Run____wait1); #line hidden return; case "Run.laps": #line 178 "WaitScripts.cs" writer.Local("Run.laps", this.Run__laps); #line hidden return; } #line default base.SaveLocal(key, writer); } } #pragma warning disable public partial class __Frame { public override void LoadLocals(global::Ariadne.IArcReader reader) { base.LoadLocals(reader); { if (reader.TryLocal("Run.__wait1", out global::Amphora.Duration loaded)) { this.Run____wait1 = loaded; } } { if (reader.TryLocal("Run.laps", out int loaded)) { this.Run__laps = loaded; } } } } #pragma warning disable [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, ArcTests.Gates gates) { #line hidden ref int laps = ref __frame.Run__laps; switch (__frame.ResumeKey) { case "again": goto again__resume; } #line 178 "WaitScripts.cs" laps = 0; #line hidden again: #line 181 "WaitScripts.cs" __frame.Run____wait1 = __time.DeadlineAfter(TimeSpan.FromSeconds(1)); #line hidden again__resume: #line 181 "WaitScripts.cs" if (__time.GameTime < __frame.Run____wait1) { __frame.Sleep(__frame.Run____wait1); __frame.Mark("again"); return false; } #line 182 "WaitScripts.cs" laps++; #line 183 "WaitScripts.cs" Log.Add("lap " + laps); #line 184 "WaitScripts.cs" if (laps < 2) { goto again; } #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected void Run__LocalsToSave(__Frame __frame, int depth, global::Ariadne.IArcWriter writer) { if (depth >= __frame.Cursor.Count) { return; } switch (__frame.Cursor[depth]) { case "again": __frame.SaveLocal("Run.laps", writer); __frame.SaveLocal("Run.__wait1", writer); break; } } } } namespace Ariadne.UnitTests { partial class ForeverWaitScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public global::Amphora.Duration Run____wait1; public static void ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::Ariadne.Frame __CreateFrame() { return new __Frame(); } [global::System.CodeDom.Compiler.GeneratedCode("Ariadne.Generator", "1.0")] protected override bool __Resume(global::Ariadne.UnitTests.ArcTests.Gates context, global::Ariadne.TickTime __time) { return Run__Passage((__Frame)__CurrentFrame, __time, context); } protected override void __SaveLocals(global::Ariadne.IArcWriter writer) { Run__LocalsToSave((__Frame)__CurrentFrame, 0, writer); } public ForeverWaitScript() { } protected ForeverWaitScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { } protected ForeverWaitScript(global::Ariadne.IArcReader reader) : this(reader, default(global::Ariadne.AutoLoadEveryField)) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private static void __ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); } #pragma warning restore public partial class __Frame { public override void SaveLocal(string key, global::Ariadne.IArcWriter writer) { switch (key) { case "Run.__wait1": #line 202 "WaitScripts.cs" writer.Local("Run.__wait1", this.Run____wait1); #line hidden return; } #line default base.SaveLocal(key, writer); } } #pragma warning disable public partial class __Frame { public override void LoadLocals(global::Ariadne.IArcReader reader) { base.LoadLocals(reader); { if (reader.TryLocal("Run.__wait1", out global::Amphora.Duration loaded)) { this.Run____wait1 = loaded; } } } } #pragma warning disable [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, ArcTests.Gates gates) { #line hidden switch (__frame.ResumeKey) { case "forever": goto forever__resume; } #line hidden forever: #line 202 "WaitScripts.cs" __frame.Run____wait1 = __time.DeadlineAfter(TimeSpan.MaxValue); #line hidden forever__resume: #line 202 "WaitScripts.cs" if (__time.GameTime < __frame.Run____wait1) { __frame.Sleep(__frame.Run____wait1); __frame.Mark("forever"); return false; } #line 203 "WaitScripts.cs" Log.Add("never"); #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected void Run__LocalsToSave(__Frame __frame, int depth, global::Ariadne.IArcWriter writer) { if (depth >= __frame.Cursor.Count) { return; } switch (__frame.Cursor[depth]) { case "forever": __frame.SaveLocal("Run.__wait1", writer); break; } } } } namespace Ariadne.UnitTests { partial class SpanWaitScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public global::Amphora.Duration Run____wait1; public static void ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::Ariadne.Frame __CreateFrame() { return new __Frame(); } [global::System.CodeDom.Compiler.GeneratedCode("Ariadne.Generator", "1.0")] protected override bool __Resume(global::Ariadne.UnitTests.ArcTests.Gates context, global::Ariadne.TickTime __time) { return Run__Passage((__Frame)__CurrentFrame, __time, context); } protected override void __SaveLocals(global::Ariadne.IArcWriter writer) { Run__LocalsToSave((__Frame)__CurrentFrame, 0, writer); } public SpanWaitScript() { } protected SpanWaitScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { { if (reader.TryField("Span", out global::Amphora.Duration loaded)) { this.Span = loaded; } else if (!reader.HasField("Span")) { throw new global::System.IO.InvalidDataException("SpanWaitScript's save has no field 'Span', which has no initializer to fall back on. Give it one."); } } } protected SpanWaitScript(global::Ariadne.IArcReader reader) : this(reader, default(global::Ariadne.AutoLoadEveryField)) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private static void __ListParts(global::Ariadne.IArcPartLister lister) { lister.Field("Span"); lister.Local("Run.__wait1"); } #pragma warning restore protected override void __SaveFields(global::Ariadne.IArcWriter writer) { base.__SaveFields(writer); #line 215 "WaitScripts.cs" writer.Field("Span", this.Span); #line default } public partial class __Frame { public override void SaveLocal(string key, global::Ariadne.IArcWriter writer) { switch (key) { case "Run.__wait1": #line 220 "WaitScripts.cs" writer.Local("Run.__wait1", this.Run____wait1); #line hidden return; } #line default base.SaveLocal(key, writer); } } #pragma warning disable public partial class __Frame { public override void LoadLocals(global::Ariadne.IArcReader reader) { base.LoadLocals(reader); { if (reader.TryLocal("Run.__wait1", out global::Amphora.Duration loaded)) { this.Run____wait1 = loaded; } } } } #pragma warning disable [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, ArcTests.Gates gates) { #line hidden switch (__frame.ResumeKey) { case "rest": goto rest__resume; } #line hidden rest: #line 220 "WaitScripts.cs" __frame.Run____wait1 = __time.DeadlineAfter(Span); #line hidden rest__resume: #line 220 "WaitScripts.cs" if (__time.GameTime < __frame.Run____wait1) { __frame.Sleep(__frame.Run____wait1); __frame.Mark("rest"); return false; } #line 221 "WaitScripts.cs" Log.Add("woke"); #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected void Run__LocalsToSave(__Frame __frame, int depth, global::Ariadne.IArcWriter writer) { if (depth >= __frame.Cursor.Count) { return; } switch (__frame.Cursor[depth]) { case "rest": __frame.SaveLocal("Run.__wait1", writer); break; } } } } namespace Ariadne.UnitTests { partial class WaitWorkerScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public global::Amphora.Duration Pace____wait1; public static void ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Pace.__wait1"); } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::Ariadne.Frame __CreateFrame() { return new __Frame(); } [global::System.CodeDom.Compiler.GeneratedCode("Ariadne.Generator", "1.0")] protected override bool __Resume(global::Ariadne.UnitTests.ArcTests.Gates context, global::Ariadne.TickTime __time) { return Run__Passage((__Frame)__CurrentFrame, __time, context); } public WaitWorkerScript() { } protected WaitWorkerScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { } protected WaitWorkerScript(global::Ariadne.IArcReader reader) : this(reader, default(global::Ariadne.AutoLoadEveryField)) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private static void __ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Pace.__wait1"); } #pragma warning restore public partial class __Frame { public override void SaveLocal(string key, global::Ariadne.IArcWriter writer) { switch (key) { case "Pace.__wait1": #line 236 "WaitScripts.cs" writer.Local("Pace.__wait1", this.Pace____wait1); #line hidden return; } #line default base.SaveLocal(key, writer); } } #pragma warning disable public partial class __Frame { public override void LoadLocals(global::Ariadne.IArcReader reader) { base.LoadLocals(reader); { if (reader.TryLocal("Pace.__wait1", out global::Amphora.Duration loaded)) { this.Pace____wait1 = loaded; } } } } #pragma warning disable [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, ArcTests.Gates gates) { #line hidden switch (__frame.ResumeKey) { } #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public bool Pace__Passage(__Frame __frame, global::Ariadne.TickTime __time, ArcTests.Gates gates) { #line hidden switch (__frame.ResumeKey) { case "rest": goto rest__resume; } #line hidden rest: #line 236 "WaitScripts.cs" __frame.Pace____wait1 = __time.DeadlineAfter(TimeSpan.FromSeconds(1)); #line hidden rest__resume: #line 236 "WaitScripts.cs" if (__time.GameTime < __frame.Pace____wait1) { __frame.Sleep(__frame.Pace____wait1); __frame.Mark("rest"); return false; } #line 237 "WaitScripts.cs" Log.Add("rested"); #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public void Pace__LocalsToSave(__Frame __frame, int depth, global::Ariadne.IArcWriter writer) { if (depth >= __frame.Cursor.Count) { return; } switch (__frame.Cursor[depth]) { case "rest": __frame.SaveLocal("Pace.__wait1", writer); break; } } } } namespace Ariadne.UnitTests { partial class WaitClientScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public global::Ariadne.UnitTests.WaitWorkerScript Run____call_pace_receiver; public global::Ariadne.UnitTests.WaitWorkerScript.__Frame Run____call_pace_frame; public static void ListParts(global::Ariadne.IArcPartLister lister) { { global::Ariadne.IArcPartLister scope = lister.Scope("Run.pace/", typeof(global::Ariadne.UnitTests.WaitWorkerScript.__Frame)); if (scope != null) { scope.Local("receiver"); global::Ariadne.UnitTests.WaitWorkerScript.__Frame.ListParts(scope); } } } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::Ariadne.Frame __CreateFrame() { return new __Frame(); } [global::System.CodeDom.Compiler.GeneratedCode("Ariadne.Generator", "1.0")] protected override bool __Resume(global::Ariadne.UnitTests.ArcTests.Gates context, global::Ariadne.TickTime __time) { return Run__Passage((__Frame)__CurrentFrame, __time, context); } protected override void __SaveLocals(global::Ariadne.IArcWriter writer) { Run__LocalsToSave((__Frame)__CurrentFrame, 0, writer); } public WaitClientScript() { } protected WaitClientScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { { if (reader.TryField("Worker", out global::Ariadne.UnitTests.WaitWorkerScript loaded)) { this.Worker = loaded; } } } protected WaitClientScript(global::Ariadne.IArcReader reader) : this(reader, default(global::Ariadne.AutoLoadEveryField)) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private static void __ListParts(global::Ariadne.IArcPartLister lister) { lister.Field("Worker"); { global::Ariadne.IArcPartLister scope = lister.Scope("Run.pace/", typeof(global::Ariadne.UnitTests.WaitWorkerScript.__Frame)); if (scope != null) { scope.Local("receiver"); global::Ariadne.UnitTests.WaitWorkerScript.__Frame.ListParts(scope); } } } #pragma warning restore protected override void __SaveFields(global::Ariadne.IArcWriter writer) { base.__SaveFields(writer); #line 250 "WaitScripts.cs" writer.Field("Worker", this.Worker); #line default } public partial class __Frame { public override void SaveLocal(string key, global::Ariadne.IArcWriter writer) { switch (key) { case "Run.pace/receiver": #line 255 "WaitScripts.cs" writer.Local("receiver", this.Run____call_pace_receiver); #line hidden return; } #line default base.SaveLocal(key, writer); } } #pragma warning disable public partial class __Frame { public override void LoadLocals(global::Ariadne.IArcReader reader) { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); base.LoadLocals(reader); { if (reader.TryScope("Run.pace/", out global::Ariadne.IArcReader scope)) { { if (scope.TryLocal("receiver", out global::Ariadne.UnitTests.WaitWorkerScript loaded)) { this.Run____call_pace_receiver = loaded; } } if (this.Run____call_pace_receiver != null) { this.Run____call_pace_frame = (global::Ariadne.UnitTests.WaitWorkerScript.__Frame)this.Run____call_pace_receiver.NewFrame(); this.Run____call_pace_frame.LoadLocals(scope); } } } } public override void AttachWaits(global::Ariadne.WakeSlot slot) { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); base.AttachWaits(slot); if (this.Run____call_pace_frame != null) { this.Run____call_pace_frame.AttachWaits(slot); } } public override void EndWaits() { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); base.EndWaits(); if (this.Run____call_pace_frame != null) { this.Run____call_pace_frame.EndWaits(); } } } #pragma warning disable [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, ArcTests.Gates gates) { #line hidden switch (__frame.ResumeKey) { case "pace": goto pace; } #line hidden pace: #line 255 "WaitScripts.cs" using (__frame.Enter("pace")) { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); if (__frame.ResumeKey == null) { __frame.Run____call_pace_receiver = (Worker); __frame.Run____call_pace_frame = null; } if (__frame.Run____call_pace_frame == null) { __frame.Run____call_pace_frame = (global::Ariadne.UnitTests.WaitWorkerScript.__Frame)__frame.Run____call_pace_receiver.NewFrame(); } if (!__frame.Run____call_pace_receiver.Pace__Passage(__frame.Lend(__frame.Run____call_pace_frame), __time, gates)) { return false; } } #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected void Run__LocalsToSave(__Frame __frame, int depth, global::Ariadne.IArcWriter writer) { if (depth >= __frame.Cursor.Count) { return; } switch (__frame.Cursor[depth]) { case "pace": { global::Ariadne.IArcWriter scope = writer.Scope("Run.pace/"); __frame.SaveLocal("Run.pace/receiver", scope); if (__frame.Run____call_pace_receiver != null) { __frame.Run____call_pace_receiver.Pace__LocalsToSave(__frame.Lend(__frame.Run____call_pace_frame), depth + 1, scope); } } break; } } } }