using System.Collections.Generic; namespace Ariadne.Vellum.UnitTests { /// /// Sets its readonly members in a constructor a load never runs, so only a save can give them back. /// public partial class FrozenScript : Arc { public readonly int Limit = 5; public readonly List Log = new List(); public string Label { get; } = "unset"; public FrozenScript(int limit, string label) { Limit = limit; Label = label; } protected override void Run(Gates gates) { wait: while (!gates.Open.Contains("go")) { Log.Add("waiting"); Yield(); } } } }