//
// 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 Ariadne.Vellum.UnitTests.Library;
namespace Ariadne.Vellum.UnitTests
{
partial class VaultSteppingScript
{
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public partial class __Frame : global::Ariadne.Vellum.UnitTests.Library.VaultHost.__Frame
{
public static void ListParts(global::Ariadne.IArcPartLister lister)
{
global::Ariadne.Vellum.UnitTests.Library.VaultHost.__Frame.ListParts(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.Vellum.UnitTests.Library.Vault 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 VaultSteppingScript()
{
}
protected VaultSteppingScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader)
{
{ if (reader.TryField("Stage", out int loaded)) { this.Stage = loaded; } else if (!reader.HasField("Stage")) { throw new global::System.IO.InvalidDataException("VaultSteppingScript's save has no field 'Stage', which has no initializer to fall back on. Give it one."); } }
}
protected VaultSteppingScript(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("Stage");
}
#pragma warning restore
protected override void __SaveFields(global::Ariadne.IArcWriter writer)
{
base.__SaveFields(writer);
#line 10 "LibraryScripts.cs"
writer.Field("Stage", this.Stage);
#line default
}
#pragma warning disable
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, Vault vault)
{
#line hidden
switch (__frame.ResumeKey)
{
case "first": goto first;
}
#line 14 "LibraryScripts.cs"
Stage = 1;
#line hidden
first:
#line 17 "LibraryScripts.cs"
using (__frame.Enter("first")) { if (!Hold__Passage(__frame, __time, vault, bonus__argument: __frame.ResumeKey == null ? (10) : default(int))) { return false; } }
#line 18 "LibraryScripts.cs"
Stage = 2;
#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":
Hold__LocalsToSave(__frame, depth + 1, writer);
break;
}
}
}
}
namespace Ariadne.Vellum.UnitTests
{
partial class VaultCountingScript
{
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public partial class __Frame : global::Ariadne.Vellum.UnitTests.Library.VaultHost.__Frame
{
public int Run____spill1;
public static void ListParts(global::Ariadne.IArcPartLister lister)
{
global::Ariadne.Vellum.UnitTests.Library.VaultHost.__Frame.ListParts(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.Vellum.UnitTests.Library.Vault 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 VaultCountingScript()
{
}
protected VaultCountingScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader)
{
{ if (reader.TryField("Total", out int loaded)) { this.Total = loaded; } else if (!reader.HasField("Total")) { throw new global::System.IO.InvalidDataException("VaultCountingScript's save has no field 'Total', which has no initializer to fall back on. Give it one."); } }
}
protected VaultCountingScript(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("Total");
}
#pragma warning restore
protected override void __SaveFields(global::Ariadne.IArcWriter writer)
{
base.__SaveFields(writer);
#line 27 "LibraryScripts.cs"
writer.Field("Total", this.Total);
#line default
}
#pragma warning disable
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, Vault vault)
{
#line hidden
switch (__frame.ResumeKey)
{
case "count": goto count;
}
#line hidden
count:
#line 32 "LibraryScripts.cs"
{ int __value; using (__frame.Enter("count")) { if (!Count__Passage(__frame, __time, vault, __result: out __value)) { return false; } } __frame.Run____spill1 = __value; }
#line 32 "LibraryScripts.cs"
Total = 100 + __frame.Run____spill1;
#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 "count":
Count__LocalsToSave(__frame, depth + 1, writer);
break;
}
}
}
}
namespace Ariadne.Vellum.UnitTests
{
partial class VaultWeighingScript
{
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public partial class __Frame : global::Ariadne.Vellum.UnitTests.Library.VaultHost.__Frame
{
public global::Ariadne.Vellum.UnitTests.Library.VaultHost.Weigh__Frame Run____call_weigh_frame;
public static void ListParts(global::Ariadne.IArcPartLister lister)
{
global::Ariadne.Vellum.UnitTests.Library.VaultHost.__Frame.ListParts(lister);
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.weigh/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultHost.Weigh__Frame));
if (scope != null)
{
global::Ariadne.Vellum.UnitTests.Library.VaultHost.Weigh__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.Vellum.UnitTests.Library.Vault 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 VaultWeighingScript()
{
}
protected VaultWeighingScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader)
{
}
protected VaultWeighingScript(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)
{
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.weigh/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultHost.Weigh__Frame));
if (scope != null)
{
global::Ariadne.Vellum.UnitTests.Library.VaultHost.Weigh__Frame.ListParts(scope);
}
}
}
#pragma warning restore
#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.weigh/", out global::Ariadne.IArcReader scope))
{
this.Run____call_weigh_frame = new global::Ariadne.Vellum.UnitTests.Library.VaultHost.Weigh__Frame();
this.Run____call_weigh_frame.LoadLocals(scope);
}
}
}
public override void AttachWaits(global::Ariadne.WakeSlot slot)
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.AttachWaits(slot);
if (this.Run____call_weigh_frame != null) { this.Run____call_weigh_frame.AttachWaits(slot); }
}
public override void EndWaits()
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.EndWaits();
if (this.Run____call_weigh_frame != null) { this.Run____call_weigh_frame.EndWaits(); }
}
}
#pragma warning disable
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, Vault vault)
{
#line hidden
switch (__frame.ResumeKey)
{
case "weigh": goto weigh;
}
#line hidden
weigh:
#line 44 "LibraryScripts.cs"
using (__frame.Enter("weigh")) { if (__frame.Run____call_weigh_frame == null) { __frame.Run____call_weigh_frame = new global::Ariadne.Vellum.UnitTests.Library.VaultHost.Weigh__Frame(); } if (!Weigh__Passage(__frame.Lend(__frame.Run____call_weigh_frame), __frame, __time, vault, __frame.ResumeKey == null ? ("ore") : default(string))) { 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 "weigh":
{ global::Ariadne.IArcWriter scope = writer.Scope("Run.weigh/"); Weigh__LocalsToSave(__frame.Lend(__frame.Run____call_weigh_frame), __frame, depth + 1, scope, writer); }
break;
}
}
}
}
namespace Ariadne.Vellum.UnitTests
{
partial class VaultDescendingScript
{
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public partial class __Frame : global::Ariadne.Vellum.UnitTests.Library.VaultHost.__Frame
{
public global::Ariadne.Vellum.UnitTests.Library.VaultHost.Descend__Frame Run____call_descend_frame;
public static void ListParts(global::Ariadne.IArcPartLister lister)
{
global::Ariadne.Vellum.UnitTests.Library.VaultHost.__Frame.ListParts(lister);
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.descend/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultHost.Descend__Frame));
if (scope != null)
{
global::Ariadne.Vellum.UnitTests.Library.VaultHost.Descend__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.Vellum.UnitTests.Library.Vault 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 VaultDescendingScript()
{
}
protected VaultDescendingScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader)
{
}
protected VaultDescendingScript(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)
{
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.descend/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultHost.Descend__Frame));
if (scope != null)
{
global::Ariadne.Vellum.UnitTests.Library.VaultHost.Descend__Frame.ListParts(scope);
}
}
}
#pragma warning restore
#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.descend/", out global::Ariadne.IArcReader scope))
{
this.Run____call_descend_frame = new global::Ariadne.Vellum.UnitTests.Library.VaultHost.Descend__Frame();
this.Run____call_descend_frame.LoadLocals(scope);
}
}
}
public override void AttachWaits(global::Ariadne.WakeSlot slot)
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.AttachWaits(slot);
if (this.Run____call_descend_frame != null) { this.Run____call_descend_frame.AttachWaits(slot); }
}
public override void EndWaits()
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.EndWaits();
if (this.Run____call_descend_frame != null) { this.Run____call_descend_frame.EndWaits(); }
}
}
#pragma warning disable
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, Vault vault)
{
#line hidden
switch (__frame.ResumeKey)
{
case "descend": goto descend;
}
#line hidden
descend:
#line 56 "LibraryScripts.cs"
using (__frame.Enter("descend")) { if (__frame.Run____call_descend_frame == null) { __frame.Run____call_descend_frame = new global::Ariadne.Vellum.UnitTests.Library.VaultHost.Descend__Frame(); } if (!Descend__Passage(__frame.Lend(__frame.Run____call_descend_frame), __frame, __time, vault, __frame.ResumeKey == null ? (2) : default(int))) { 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 "descend":
{ global::Ariadne.IArcWriter scope = writer.Scope("Run.descend/"); Descend__LocalsToSave(__frame.Lend(__frame.Run____call_descend_frame), __frame, depth + 1, scope, writer); }
break;
}
}
}
}
namespace Ariadne.Vellum.UnitTests
{
partial class VaultTaggedScript
{
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public partial class __Frame : global::Ariadne.Vellum.UnitTests.Library.VaultTagged.__Frame
{
public global::Ariadne.Vellum.UnitTests.Library.VaultTagged.Hold__Frame Run____call_second_frame;
public static void ListParts(global::Ariadne.IArcPartLister lister)
{
global::Ariadne.Vellum.UnitTests.Library.VaultTagged.__Frame.ListParts(lister);
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.second/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultTagged.Hold__Frame));
if (scope != null)
{
global::Ariadne.Vellum.UnitTests.Library.VaultTagged.Hold__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.Vellum.UnitTests.Library.Vault 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 VaultTaggedScript()
{
}
protected VaultTaggedScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader)
{
}
protected VaultTaggedScript(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)
{
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.second/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultTagged.Hold__Frame));
if (scope != null)
{
global::Ariadne.Vellum.UnitTests.Library.VaultTagged.Hold__Frame.ListParts(scope);
}
}
}
#pragma warning restore
#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.second/", out global::Ariadne.IArcReader scope))
{
this.Run____call_second_frame = new global::Ariadne.Vellum.UnitTests.Library.VaultTagged.Hold__Frame();
this.Run____call_second_frame.LoadLocals(scope);
}
}
}
public override void AttachWaits(global::Ariadne.WakeSlot slot)
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.AttachWaits(slot);
if (this.Run____call_second_frame != null) { this.Run____call_second_frame.AttachWaits(slot); }
}
public override void EndWaits()
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.EndWaits();
if (this.Run____call_second_frame != null) { this.Run____call_second_frame.EndWaits(); }
}
}
#pragma warning disable
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, Vault vault)
{
#line hidden
switch (__frame.ResumeKey)
{
case "first": goto first;
case "second": goto second;
}
#line hidden
first:
#line 68 "LibraryScripts.cs"
using (__frame.Enter("first")) { if (!Settle__Passage(__frame, __time, vault, __frame.ResumeKey == null ? (3) : default(int))) { return false; } }
#line hidden
second:
#line 71 "LibraryScripts.cs"
using (__frame.Enter("second")) { if (__frame.Run____call_second_frame == null) { __frame.Run____call_second_frame = new global::Ariadne.Vellum.UnitTests.Library.VaultTagged.Hold__Frame(); } if (!Hold__Passage(__frame.Lend(__frame.Run____call_second_frame), __frame, __time, vault, __frame.ResumeKey == null ? (4) : default(int), __frame.ResumeKey == null ? ("a") : default(string))) { 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 "first":
Settle__LocalsToSave(__frame, depth + 1, writer);
break;
case "second":
{ global::Ariadne.IArcWriter scope = writer.Scope("Run.second/"); Hold__LocalsToSave(__frame.Lend(__frame.Run____call_second_frame), __frame, depth + 1, scope, writer); }
break;
}
}
}
}
namespace Ariadne.Vellum.UnitTests
{
partial class VaultTemplateScript
{
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public partial class __Frame : global::Ariadne.Vellum.UnitTests.Library.VaultTemplate.__Frame
{
public string Run__count;
public global::Ariadne.Vellum.UnitTests.Library.VaultTemplate.__Frame Run____call_Run_frame;
public static void ListParts(global::Ariadne.IArcPartLister lister)
{
global::Ariadne.Vellum.UnitTests.Library.VaultTemplate.__Frame.ListParts(lister);
lister.Local("Run.count");
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.Run/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultTemplate.__Frame));
if (scope != null)
{
global::Ariadne.Vellum.UnitTests.Library.VaultTemplate.__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.Vellum.UnitTests.Library.Vault 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 VaultTemplateScript()
{
}
protected VaultTemplateScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader)
{
{ if (reader.TryField("Note", out string loaded)) { this.Note = loaded; } }
}
protected VaultTemplateScript(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("Note");
lister.Local("Run.count");
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.Run/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultTemplate.__Frame));
if (scope != null)
{
global::Ariadne.Vellum.UnitTests.Library.VaultTemplate.__Frame.ListParts(scope);
}
}
}
#pragma warning restore
protected override void __SaveFields(global::Ariadne.IArcWriter writer)
{
base.__SaveFields(writer);
#line 80 "LibraryScripts.cs"
writer.Field("Note", this.Note);
#line default
}
public partial class __Frame
{
public override void SaveLocal(string key, global::Ariadne.IArcWriter writer)
{
switch (key)
{
case "Run.count":
#line 84 "LibraryScripts.cs"
writer.Local("Run.count", this.Run__count);
#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.TryLocal("Run.count", out string loaded)) { this.Run__count = loaded; } }
{
if (reader.TryScope("Run.Run/", out global::Ariadne.IArcReader scope))
{
this.Run____call_Run_frame = new global::Ariadne.Vellum.UnitTests.Library.VaultTemplate.__Frame();
this.Run____call_Run_frame.LoadLocals(scope);
}
}
}
public override void AttachWaits(global::Ariadne.WakeSlot slot)
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.AttachWaits(slot);
if (this.Run____call_Run_frame != null) { this.Run____call_Run_frame.AttachWaits(slot); }
}
public override void EndWaits()
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.EndWaits();
if (this.Run____call_Run_frame != null) { this.Run____call_Run_frame.EndWaits(); }
}
}
#pragma warning disable
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, Vault vault)
{
#line hidden
ref string count = ref __frame.Run__count;
switch (__frame.ResumeKey)
{
case "Run": goto Run;
}
#line 84 "LibraryScripts.cs"
count = "a";
#line hidden
Run:
#line 86 "LibraryScripts.cs"
using (__frame.Enter("Run")) { if (__frame.Run____call_Run_frame == null) { __frame.Run____call_Run_frame = new global::Ariadne.Vellum.UnitTests.Library.VaultTemplate.__Frame(); } if (!base.Run__Passage(__frame.Lend(__frame.Run____call_Run_frame), __time, vault)) { return false; } }
#line 87 "LibraryScripts.cs"
Note = "derived " + count;
#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 "Run":
__frame.SaveLocal("Run.count", writer);
{ global::Ariadne.IArcWriter scope = writer.Scope("Run.Run/"); base.Run__LocalsToSave(__frame.Lend(__frame.Run____call_Run_frame), depth + 1, scope); }
break;
}
}
}
}
namespace Ariadne.Vellum.UnitTests
{
partial class VaultOperator
{
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public partial class __Frame : global::Ariadne.Frame
{
public int Run__before;
public global::Ariadne.Vellum.UnitTests.Library.VaultPlant Run____call_update_receiver;
public global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame Run____call_update_frame;
public static void ListParts(global::Ariadne.IArcPartLister lister)
{
lister.Local("Run.before");
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.update/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame));
if (scope != null)
{
scope.Local("receiver");
global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__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.Vellum.UnitTests.Library.Vault 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 VaultOperator()
{
}
protected VaultOperator(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader)
{
{ if (reader.TryField("Plant", out global::Ariadne.Vellum.UnitTests.Library.VaultPlant loaded)) { this.Plant = loaded; } else if (!reader.HasField("Plant")) { throw new global::System.IO.InvalidDataException("VaultOperator's save has no field 'Plant', which has no initializer to fall back on. Give it one."); } }
{ if (reader.TryField("Result", out string loaded)) { this.Result = loaded; } else if (!reader.HasField("Result")) { throw new global::System.IO.InvalidDataException("VaultOperator's save has no field 'Result', which has no initializer to fall back on. Give it one."); } }
}
protected VaultOperator(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("Plant");
lister.Field("Result");
lister.Local("Run.before");
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.update/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame));
if (scope != null)
{
scope.Local("receiver");
global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame.ListParts(scope);
}
}
}
#pragma warning restore
protected override void __SaveFields(global::Ariadne.IArcWriter writer)
{
base.__SaveFields(writer);
#line 96 "LibraryScripts.cs"
writer.Field("Plant", this.Plant);
#line 98 "LibraryScripts.cs"
writer.Field("Result", this.Result);
#line default
}
public partial class __Frame
{
public override void SaveLocal(string key, global::Ariadne.IArcWriter writer)
{
switch (key)
{
case "Run.before":
#line 102 "LibraryScripts.cs"
writer.Local("Run.before", this.Run__before);
#line hidden
return;
case "Run.update/receiver":
#line 105 "LibraryScripts.cs"
writer.Local("receiver", this.Run____call_update_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.TryLocal("Run.before", out int loaded)) { this.Run__before = loaded; } }
{
if (reader.TryScope("Run.update/", out global::Ariadne.IArcReader scope))
{
{ if (scope.TryLocal("receiver", out global::Ariadne.Vellum.UnitTests.Library.VaultPlant loaded)) { this.Run____call_update_receiver = loaded; } }
if (this.Run____call_update_receiver != null)
{
this.Run____call_update_frame = (global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame)this.Run____call_update_receiver.NewFrame();
this.Run____call_update_frame.LoadLocals(scope);
}
}
}
}
public override void AttachWaits(global::Ariadne.WakeSlot slot)
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.AttachWaits(slot);
if (this.Run____call_update_frame != null) { this.Run____call_update_frame.AttachWaits(slot); }
}
public override void EndWaits()
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.EndWaits();
if (this.Run____call_update_frame != null) { this.Run____call_update_frame.EndWaits(); }
}
}
#pragma warning disable
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, Vault vault)
{
#line hidden
ref int before = ref __frame.Run__before;
switch (__frame.ResumeKey)
{
case "update": goto update;
}
#line 102 "LibraryScripts.cs"
before = 7;
#line hidden
update:
#line 105 "LibraryScripts.cs"
using (__frame.Enter("update")) { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); if (__frame.ResumeKey == null) { __frame.Run____call_update_receiver = (Plant); __frame.Run____call_update_frame = null; } if (__frame.Run____call_update_frame == null) { __frame.Run____call_update_frame = (global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame)__frame.Run____call_update_receiver.NewFrame(); } if (!__frame.Run____call_update_receiver.Update__Passage(__frame.Lend(__frame.Run____call_update_frame), __time, vault, bonus__argument: __frame.ResumeKey == null ? (5) : default(int))) { return false; } }
#line 106 "LibraryScripts.cs"
Result = "done " + before;
#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 "update":
__frame.SaveLocal("Run.before", writer);
{ global::Ariadne.IArcWriter scope = writer.Scope("Run.update/"); __frame.SaveLocal("Run.update/receiver", scope); if (__frame.Run____call_update_receiver != null) { __frame.Run____call_update_receiver.Update__LocalsToSave(__frame.Lend(__frame.Run____call_update_frame), depth + 1, scope); } }
break;
}
}
}
}
namespace Ariadne.Vellum.UnitTests
{
partial class VaultPonderer
{
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public partial class __Frame : global::Ariadne.Frame
{
public global::Ariadne.Vellum.UnitTests.Library.VaultPlant Run____call_ponder_receiver;
public global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame Run____call_ponder_frame;
public global::Ariadne.Vellum.UnitTests.Library.VaultPlant.Ponder__Frame Run____call_ponder_ownedFrame;
public static void ListParts(global::Ariadne.IArcPartLister lister)
{
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.ponder/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame), typeof(global::Ariadne.Vellum.UnitTests.Library.VaultPlant.Ponder__Frame));
if (scope != null)
{
scope.Local("receiver");
global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame.ListParts(scope);
global::Ariadne.Vellum.UnitTests.Library.VaultPlant.Ponder__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.Vellum.UnitTests.Library.Vault 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 VaultPonderer()
{
}
protected VaultPonderer(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader)
{
{ if (reader.TryField("Plant", out global::Ariadne.Vellum.UnitTests.Library.VaultPlant loaded)) { this.Plant = loaded; } else if (!reader.HasField("Plant")) { throw new global::System.IO.InvalidDataException("VaultPonderer's save has no field 'Plant', which has no initializer to fall back on. Give it one."); } }
}
protected VaultPonderer(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("Plant");
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.ponder/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame), typeof(global::Ariadne.Vellum.UnitTests.Library.VaultPlant.Ponder__Frame));
if (scope != null)
{
scope.Local("receiver");
global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame.ListParts(scope);
global::Ariadne.Vellum.UnitTests.Library.VaultPlant.Ponder__Frame.ListParts(scope);
}
}
}
#pragma warning restore
protected override void __SaveFields(global::Ariadne.IArcWriter writer)
{
base.__SaveFields(writer);
#line 115 "LibraryScripts.cs"
writer.Field("Plant", this.Plant);
#line default
}
public partial class __Frame
{
public override void SaveLocal(string key, global::Ariadne.IArcWriter writer)
{
switch (key)
{
case "Run.ponder/receiver":
#line 120 "LibraryScripts.cs"
writer.Local("receiver", this.Run____call_ponder_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.ponder/", out global::Ariadne.IArcReader scope))
{
{ if (scope.TryLocal("receiver", out global::Ariadne.Vellum.UnitTests.Library.VaultPlant loaded)) { this.Run____call_ponder_receiver = loaded; } }
if (this.Run____call_ponder_receiver != null)
{
this.Run____call_ponder_frame = (global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame)this.Run____call_ponder_receiver.NewFrame();
this.Run____call_ponder_frame.LoadLocals(scope);
this.Run____call_ponder_ownedFrame = new global::Ariadne.Vellum.UnitTests.Library.VaultPlant.Ponder__Frame();
this.Run____call_ponder_ownedFrame.LoadLocals(scope);
}
}
}
}
public override void AttachWaits(global::Ariadne.WakeSlot slot)
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.AttachWaits(slot);
if (this.Run____call_ponder_frame != null) { this.Run____call_ponder_frame.AttachWaits(slot); }
if (this.Run____call_ponder_ownedFrame != null) { this.Run____call_ponder_ownedFrame.AttachWaits(slot); }
}
public override void EndWaits()
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.EndWaits();
if (this.Run____call_ponder_frame != null) { this.Run____call_ponder_frame.EndWaits(); }
if (this.Run____call_ponder_ownedFrame != null) { this.Run____call_ponder_ownedFrame.EndWaits(); }
}
}
#pragma warning disable
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, Vault vault)
{
#line hidden
switch (__frame.ResumeKey)
{
case "ponder": goto ponder;
}
#line hidden
ponder:
#line 120 "LibraryScripts.cs"
using (__frame.Enter("ponder")) { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); if (__frame.ResumeKey == null) { __frame.Run____call_ponder_receiver = (Plant); __frame.Run____call_ponder_frame = null; __frame.Run____call_ponder_ownedFrame = null; } if (__frame.Run____call_ponder_frame == null) { __frame.Run____call_ponder_frame = (global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame)__frame.Run____call_ponder_receiver.NewFrame(); } if (__frame.Run____call_ponder_ownedFrame == null) { __frame.Run____call_ponder_ownedFrame = new global::Ariadne.Vellum.UnitTests.Library.VaultPlant.Ponder__Frame(); } if (!__frame.Run____call_ponder_receiver.Ponder__Passage(__frame.Lend(__frame.Run____call_ponder_ownedFrame), __frame.Lend(__frame.Run____call_ponder_frame), __time, vault, __frame.ResumeKey == null ? ("stone") : default(string))) { 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 "ponder":
{ global::Ariadne.IArcWriter scope = writer.Scope("Run.ponder/"); __frame.SaveLocal("Run.ponder/receiver", scope); if (__frame.Run____call_ponder_receiver != null) { __frame.Run____call_ponder_receiver.Ponder__LocalsToSave(__frame.Lend(__frame.Run____call_ponder_ownedFrame), __frame.Lend(__frame.Run____call_ponder_frame), depth + 1, scope, scope); } }
break;
}
}
}
}
namespace Ariadne.Vellum.UnitTests
{
partial class VaultDigger
{
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public partial class __Frame : global::Ariadne.Frame
{
public global::Ariadne.Vellum.UnitTests.Library.VaultPlant Run____call_dig_receiver;
public global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame Run____call_dig_frame;
public global::Ariadne.Vellum.UnitTests.Library.VaultPlant.Dig__Frame Run____call_dig_ownedFrame;
public static void ListParts(global::Ariadne.IArcPartLister lister)
{
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.dig/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame), typeof(global::Ariadne.Vellum.UnitTests.Library.VaultPlant.Dig__Frame));
if (scope != null)
{
scope.Local("receiver");
global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame.ListParts(scope);
global::Ariadne.Vellum.UnitTests.Library.VaultPlant.Dig__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.Vellum.UnitTests.Library.Vault 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 VaultDigger()
{
}
protected VaultDigger(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader)
{
{ if (reader.TryField("Plant", out global::Ariadne.Vellum.UnitTests.Library.VaultPlant loaded)) { this.Plant = loaded; } else if (!reader.HasField("Plant")) { throw new global::System.IO.InvalidDataException("VaultDigger's save has no field 'Plant', which has no initializer to fall back on. Give it one."); } }
}
protected VaultDigger(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("Plant");
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.dig/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame), typeof(global::Ariadne.Vellum.UnitTests.Library.VaultPlant.Dig__Frame));
if (scope != null)
{
scope.Local("receiver");
global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame.ListParts(scope);
global::Ariadne.Vellum.UnitTests.Library.VaultPlant.Dig__Frame.ListParts(scope);
}
}
}
#pragma warning restore
protected override void __SaveFields(global::Ariadne.IArcWriter writer)
{
base.__SaveFields(writer);
#line 129 "LibraryScripts.cs"
writer.Field("Plant", this.Plant);
#line default
}
public partial class __Frame
{
public override void SaveLocal(string key, global::Ariadne.IArcWriter writer)
{
switch (key)
{
case "Run.dig/receiver":
#line 134 "LibraryScripts.cs"
writer.Local("receiver", this.Run____call_dig_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.dig/", out global::Ariadne.IArcReader scope))
{
{ if (scope.TryLocal("receiver", out global::Ariadne.Vellum.UnitTests.Library.VaultPlant loaded)) { this.Run____call_dig_receiver = loaded; } }
if (this.Run____call_dig_receiver != null)
{
this.Run____call_dig_frame = (global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame)this.Run____call_dig_receiver.NewFrame();
this.Run____call_dig_frame.LoadLocals(scope);
this.Run____call_dig_ownedFrame = new global::Ariadne.Vellum.UnitTests.Library.VaultPlant.Dig__Frame();
this.Run____call_dig_ownedFrame.LoadLocals(scope);
}
}
}
}
public override void AttachWaits(global::Ariadne.WakeSlot slot)
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.AttachWaits(slot);
if (this.Run____call_dig_frame != null) { this.Run____call_dig_frame.AttachWaits(slot); }
if (this.Run____call_dig_ownedFrame != null) { this.Run____call_dig_ownedFrame.AttachWaits(slot); }
}
public override void EndWaits()
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.EndWaits();
if (this.Run____call_dig_frame != null) { this.Run____call_dig_frame.EndWaits(); }
if (this.Run____call_dig_ownedFrame != null) { this.Run____call_dig_ownedFrame.EndWaits(); }
}
}
#pragma warning disable
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, Vault vault)
{
#line hidden
switch (__frame.ResumeKey)
{
case "dig": goto dig;
}
#line hidden
dig:
#line 134 "LibraryScripts.cs"
using (__frame.Enter("dig")) { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); if (__frame.ResumeKey == null) { __frame.Run____call_dig_receiver = (Plant); __frame.Run____call_dig_frame = null; __frame.Run____call_dig_ownedFrame = null; } if (__frame.Run____call_dig_frame == null) { __frame.Run____call_dig_frame = (global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame)__frame.Run____call_dig_receiver.NewFrame(); } if (__frame.Run____call_dig_ownedFrame == null) { __frame.Run____call_dig_ownedFrame = new global::Ariadne.Vellum.UnitTests.Library.VaultPlant.Dig__Frame(); } if (!__frame.Run____call_dig_receiver.Dig__Passage(__frame.Lend(__frame.Run____call_dig_ownedFrame), __frame.Lend(__frame.Run____call_dig_frame), __time, vault, __frame.ResumeKey == null ? (2) : default(int))) { 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 "dig":
{ global::Ariadne.IArcWriter scope = writer.Scope("Run.dig/"); __frame.SaveLocal("Run.dig/receiver", scope); if (__frame.Run____call_dig_receiver != null) { __frame.Run____call_dig_receiver.Dig__LocalsToSave(__frame.Lend(__frame.Run____call_dig_ownedFrame), __frame.Lend(__frame.Run____call_dig_frame), depth + 1, scope, scope); } }
break;
}
}
}
}
namespace Ariadne.Vellum.UnitTests
{
partial class VaultShopkeeper
{
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public partial class __Frame : global::Ariadne.Frame
{
public global::Ariadne.Vellum.UnitTests.Library.VaultShelf Run____call_stock_receiver;
public global::Ariadne.Vellum.UnitTests.Library.VaultShelf.__Frame Run____call_stock_frame;
public global::Ariadne.Vellum.UnitTests.Library.VaultShelf Run____call_label_receiver;
public global::Ariadne.Vellum.UnitTests.Library.VaultShelf.__Frame Run____call_label_frame;
public global::Ariadne.Vellum.UnitTests.Library.VaultShelf.Label__Frame Run____call_label_ownedFrame;
public static void ListParts(global::Ariadne.IArcPartLister lister)
{
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.stock/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultShelf.__Frame));
if (scope != null)
{
scope.Local>("receiver");
global::Ariadne.Vellum.UnitTests.Library.VaultShelf.__Frame.ListParts(scope);
}
}
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.label/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultShelf.__Frame), typeof(global::Ariadne.Vellum.UnitTests.Library.VaultShelf.Label__Frame));
if (scope != null)
{
scope.Local>("receiver");
global::Ariadne.Vellum.UnitTests.Library.VaultShelf.__Frame.ListParts(scope);
global::Ariadne.Vellum.UnitTests.Library.VaultShelf.Label__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.Vellum.UnitTests.Library.Vault 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 VaultShopkeeper()
{
}
protected VaultShopkeeper(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader)
{
{ if (reader.TryField>("Shelf", out global::Ariadne.Vellum.UnitTests.Library.VaultShelf loaded)) { this.Shelf = loaded; } else if (!reader.HasField("Shelf")) { throw new global::System.IO.InvalidDataException("VaultShopkeeper's save has no field 'Shelf', which has no initializer to fall back on. Give it one."); } }
}
protected VaultShopkeeper(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>("Shelf");
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.stock/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultShelf.__Frame));
if (scope != null)
{
scope.Local>("receiver");
global::Ariadne.Vellum.UnitTests.Library.VaultShelf.__Frame.ListParts(scope);
}
}
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.label/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultShelf.__Frame), typeof(global::Ariadne.Vellum.UnitTests.Library.VaultShelf.Label__Frame));
if (scope != null)
{
scope.Local>("receiver");
global::Ariadne.Vellum.UnitTests.Library.VaultShelf.__Frame.ListParts(scope);
global::Ariadne.Vellum.UnitTests.Library.VaultShelf.Label__Frame.ListParts(scope);
}
}
}
#pragma warning restore
protected override void __SaveFields(global::Ariadne.IArcWriter writer)
{
base.__SaveFields(writer);
#line 143 "LibraryScripts.cs"
writer.Field>("Shelf", this.Shelf);
#line default
}
public partial class __Frame
{
public override void SaveLocal(string key, global::Ariadne.IArcWriter writer)
{
switch (key)
{
case "Run.label/receiver":
#line 151 "LibraryScripts.cs"
writer.Local>("receiver", this.Run____call_label_receiver);
#line hidden
return;
case "Run.stock/receiver":
#line 148 "LibraryScripts.cs"
writer.Local>("receiver", this.Run____call_stock_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.stock/", out global::Ariadne.IArcReader scope))
{
{ if (scope.TryLocal>("receiver", out global::Ariadne.Vellum.UnitTests.Library.VaultShelf loaded)) { this.Run____call_stock_receiver = loaded; } }
if (this.Run____call_stock_receiver != null)
{
this.Run____call_stock_frame = (global::Ariadne.Vellum.UnitTests.Library.VaultShelf.__Frame)this.Run____call_stock_receiver.NewFrame();
this.Run____call_stock_frame.LoadLocals(scope);
}
}
}
{
if (reader.TryScope("Run.label/", out global::Ariadne.IArcReader scope))
{
{ if (scope.TryLocal>("receiver", out global::Ariadne.Vellum.UnitTests.Library.VaultShelf loaded)) { this.Run____call_label_receiver = loaded; } }
if (this.Run____call_label_receiver != null)
{
this.Run____call_label_frame = (global::Ariadne.Vellum.UnitTests.Library.VaultShelf.__Frame)this.Run____call_label_receiver.NewFrame();
this.Run____call_label_frame.LoadLocals(scope);
this.Run____call_label_ownedFrame = new global::Ariadne.Vellum.UnitTests.Library.VaultShelf.Label__Frame();
this.Run____call_label_ownedFrame.LoadLocals(scope);
}
}
}
}
public override void AttachWaits(global::Ariadne.WakeSlot slot)
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.AttachWaits(slot);
if (this.Run____call_stock_frame != null) { this.Run____call_stock_frame.AttachWaits(slot); }
if (this.Run____call_label_frame != null) { this.Run____call_label_frame.AttachWaits(slot); }
if (this.Run____call_label_ownedFrame != null) { this.Run____call_label_ownedFrame.AttachWaits(slot); }
}
public override void EndWaits()
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.EndWaits();
if (this.Run____call_stock_frame != null) { this.Run____call_stock_frame.EndWaits(); }
if (this.Run____call_label_frame != null) { this.Run____call_label_frame.EndWaits(); }
if (this.Run____call_label_ownedFrame != null) { this.Run____call_label_ownedFrame.EndWaits(); }
}
}
#pragma warning disable
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, Vault vault)
{
#line hidden
switch (__frame.ResumeKey)
{
case "stock": goto stock;
case "label": goto label;
}
#line hidden
stock:
#line 148 "LibraryScripts.cs"
using (__frame.Enter("stock")) { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); if (__frame.ResumeKey == null) { __frame.Run____call_stock_receiver = (Shelf); __frame.Run____call_stock_frame = null; } if (__frame.Run____call_stock_frame == null) { __frame.Run____call_stock_frame = (global::Ariadne.Vellum.UnitTests.Library.VaultShelf.__Frame)__frame.Run____call_stock_receiver.NewFrame(); } if (!__frame.Run____call_stock_receiver.Stock__Passage(__frame.Lend(__frame.Run____call_stock_frame), __time, vault, __frame.ResumeKey == null ? ("jar") : default(string))) { return false; } }
#line hidden
label:
#line 151 "LibraryScripts.cs"
using (__frame.Enter("label")) { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); if (__frame.ResumeKey == null) { __frame.Run____call_label_receiver = (Shelf); __frame.Run____call_label_frame = null; __frame.Run____call_label_ownedFrame = null; } if (__frame.Run____call_label_frame == null) { __frame.Run____call_label_frame = (global::Ariadne.Vellum.UnitTests.Library.VaultShelf.__Frame)__frame.Run____call_label_receiver.NewFrame(); } if (__frame.Run____call_label_ownedFrame == null) { __frame.Run____call_label_ownedFrame = new global::Ariadne.Vellum.UnitTests.Library.VaultShelf.Label__Frame(); } if (!__frame.Run____call_label_receiver.Label__Passage(__frame.Lend(__frame.Run____call_label_ownedFrame), __frame.Lend(__frame.Run____call_label_frame), __time, vault, __frame.ResumeKey == null ? ("lid") : default(string), __frame.ResumeKey == null ? (5) : default(int))) { 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 "stock":
{ global::Ariadne.IArcWriter scope = writer.Scope("Run.stock/"); __frame.SaveLocal("Run.stock/receiver", scope); if (__frame.Run____call_stock_receiver != null) { __frame.Run____call_stock_receiver.Stock__LocalsToSave(__frame.Lend(__frame.Run____call_stock_frame), depth + 1, scope); } }
break;
case "label":
{ global::Ariadne.IArcWriter scope = writer.Scope("Run.label/"); __frame.SaveLocal("Run.label/receiver", scope); if (__frame.Run____call_label_receiver != null) { __frame.Run____call_label_receiver.Label__LocalsToSave(__frame.Lend(__frame.Run____call_label_ownedFrame), __frame.Lend(__frame.Run____call_label_frame), depth + 1, scope, scope); } }
break;
}
}
}
}
namespace Ariadne.Vellum.UnitTests
{
partial class VaultMeasurer
{
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
public partial class __Frame : global::Ariadne.Frame
{
public int Run__before;
public int Run____spill1;
public global::Ariadne.Vellum.UnitTests.Library.VaultPlant Run____call_measure_receiver;
public global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame Run____call_measure_frame;
public static void ListParts(global::Ariadne.IArcPartLister lister)
{
lister.Local("Run.before");
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.measure/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame));
if (scope != null)
{
scope.Local("receiver");
global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__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.Vellum.UnitTests.Library.Vault 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 VaultMeasurer()
{
}
protected VaultMeasurer(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader)
{
{ if (reader.TryField("Plant", out global::Ariadne.Vellum.UnitTests.Library.VaultPlant loaded)) { this.Plant = loaded; } else if (!reader.HasField("Plant")) { throw new global::System.IO.InvalidDataException("VaultMeasurer's save has no field 'Plant', which has no initializer to fall back on. Give it one."); } }
{ if (reader.TryField("Total", out int loaded)) { this.Total = loaded; } else if (!reader.HasField("Total")) { throw new global::System.IO.InvalidDataException("VaultMeasurer's save has no field 'Total', which has no initializer to fall back on. Give it one."); } }
}
protected VaultMeasurer(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("Plant");
lister.Field("Total");
lister.Local("Run.before");
{
global::Ariadne.IArcPartLister scope = lister.Scope("Run.measure/", typeof(global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame));
if (scope != null)
{
scope.Local("receiver");
global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame.ListParts(scope);
}
}
}
#pragma warning restore
protected override void __SaveFields(global::Ariadne.IArcWriter writer)
{
base.__SaveFields(writer);
#line 160 "LibraryScripts.cs"
writer.Field("Plant", this.Plant);
#line 162 "LibraryScripts.cs"
writer.Field("Total", this.Total);
#line default
}
public partial class __Frame
{
public override void SaveLocal(string key, global::Ariadne.IArcWriter writer)
{
switch (key)
{
case "Run.before":
#line 166 "LibraryScripts.cs"
writer.Local("Run.before", this.Run__before);
#line hidden
return;
case "Run.measure/receiver":
#line 169 "LibraryScripts.cs"
writer.Local("receiver", this.Run____call_measure_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.TryLocal("Run.before", out int loaded)) { this.Run__before = loaded; } }
{
if (reader.TryScope("Run.measure/", out global::Ariadne.IArcReader scope))
{
{ if (scope.TryLocal("receiver", out global::Ariadne.Vellum.UnitTests.Library.VaultPlant loaded)) { this.Run____call_measure_receiver = loaded; } }
if (this.Run____call_measure_receiver != null)
{
this.Run____call_measure_frame = (global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame)this.Run____call_measure_receiver.NewFrame();
this.Run____call_measure_frame.LoadLocals(scope);
}
}
}
}
public override void AttachWaits(global::Ariadne.WakeSlot slot)
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.AttachWaits(slot);
if (this.Run____call_measure_frame != null) { this.Run____call_measure_frame.AttachWaits(slot); }
}
public override void EndWaits()
{
global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack();
base.EndWaits();
if (this.Run____call_measure_frame != null) { this.Run____call_measure_frame.EndWaits(); }
}
}
#pragma warning disable
[global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, Vault vault)
{
#line hidden
ref int before = ref __frame.Run__before;
switch (__frame.ResumeKey)
{
case "measure": goto measure;
}
#line 166 "LibraryScripts.cs"
before = 7;
#line hidden
measure:
#line 169 "LibraryScripts.cs"
{ int __value; using (__frame.Enter("measure")) { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); if (__frame.ResumeKey == null) { __frame.Run____call_measure_receiver = (Plant); __frame.Run____call_measure_frame = null; } if (__frame.Run____call_measure_frame == null) { __frame.Run____call_measure_frame = (global::Ariadne.Vellum.UnitTests.Library.VaultPlant.__Frame)__frame.Run____call_measure_receiver.NewFrame(); } if (!__frame.Run____call_measure_receiver.Measure__Passage(__frame.Lend(__frame.Run____call_measure_frame), __time, vault, __result: out __value)) { return false; } } __frame.Run____spill1 = __value; }
#line 169 "LibraryScripts.cs"
Total = before + __frame.Run____spill1;
#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 "measure":
__frame.SaveLocal("Run.before", writer);
{ global::Ariadne.IArcWriter scope = writer.Scope("Run.measure/"); __frame.SaveLocal("Run.measure/receiver", scope); if (__frame.Run____call_measure_receiver != null) { __frame.Run____call_measure_receiver.Measure__LocalsToSave(__frame.Lend(__frame.Run____call_measure_frame), depth + 1, scope); } }
break;
}
}
}
}