using System.Text; namespace Age.Engine.Vm; /// /// EngineCtx-lifetime accumulator used by opcodes 0x1b2 through 0x1b4. GameSession shares this /// state across fresh scene VMs just as native AGE retains the embedded string across script frames. /// public sealed class DiagnosticOutputState { private readonly StringBuilder _text = new(); public string PendingText => _text.ToString(); internal void Append(string value) => _text.Append(value); internal void Clear() => _text.Clear(); }