Files
OpenMaidEngine/engine/Age.Engine/Model/Script.cs
gamer147 a704765ea0 feat(a1): .NET 8 solution scaffold + Model + OpcodeTable loader
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 13:49:02 -04:00

10 lines
436 B
C#

namespace Age.Engine.Model;
public sealed class Script
{
public required ScriptHeader Header { get; init; }
public required IReadOnlyList<Instruction> Instructions { get; init; }
public required IReadOnlyDictionary<int, int> IndexByOffset { get; init; }
public required IReadOnlyDictionary<int, string> Strings { get; init; }
public string GetString(int offset) => Strings.TryGetValue(offset, out var s) ? s : "";
}