// // 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.Collections.Generic; namespace Ariadne.Vellum.UnitTests { partial class FrozenScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public static void ListParts(global::Ariadne.IArcPartLister lister) { } } [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 FrozenScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { { if (reader.TryField("Limit", out int loaded)) { this.Limit = loaded; } } { if (reader.TryField>("Log", out global::System.Collections.Generic.List loaded)) { this.Log = loaded; } } { if (reader.TryField("Label", out string loaded)) { this.Label = loaded; } } } protected FrozenScript(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("Limit"); lister.Field>("Log"); lister.Field("Label"); } #pragma warning restore protected override void __SaveFields(global::Ariadne.IArcWriter writer) { base.__SaveFields(writer); #line 10 "FrozenScript.cs" writer.Field("Limit", this.Limit); #line 12 "FrozenScript.cs" writer.Field>("Log", this.Log); #line 14 "FrozenScript.cs" writer.Field("Label", this.Label); #line default } #pragma warning disable [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, Gates gates) { #line hidden switch (__frame.ResumeKey) { case "wait": goto wait; } #line hidden wait: #line 25 "FrozenScript.cs" while (!gates.Open.Contains("go")) #line hidden { #line 27 "FrozenScript.cs" Log.Add("waiting"); #line 28 "FrozenScript.cs" __frame.Mark("wait"); return false; #line hidden } #line hidden __frame.Exit(); return true; #line default } } }