Add IScriptProvider + Sys4ScriptProvider (call-script id -> Script)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-07-07 13:09:50 -04:00
parent 3d88c13c72
commit c8c79c9831
4 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
using Age.Engine.Model;
namespace Age.Engine.Hosting;
/// <summary>Resolves a call-script id (a raw SYS4INI file index) to a loaded <see cref="Script"/>.
/// Implemented in Sys4; injected into the VM so the Vm layer never references Sys4.</summary>
public interface IScriptProvider
{
/// <summary>The script for this id, or null if the id maps to no known script.</summary>
Script? GetById(long id);
}