Move host transport records to model

This commit is contained in:
gamer147
2026-08-03 11:09:47 -04:00
parent 281f37747a
commit ec6ba1c64c
10 changed files with 39 additions and 25 deletions

View File

@@ -0,0 +1,16 @@
namespace Age.Engine.Model;
public readonly record struct AdvWaitIndicatorConfig(
int LayoutSlot, int X, int Y, int SurfaceSlot,
int SourceX, int SourceY, int CellWidth, int CellHeight,
int TerminalFrame, long FramePeriodMs)
{
/// <summary>Select the current atlas frame. TerminalFrame is the exclusive native upper bound,
/// so SYSTEM4's value 12 addresses the twelve cells 0 through 11.</summary>
public int FrameAt(long elapsedMs)
{
int frameCount = System.Math.Max(1, TerminalFrame);
long period = System.Math.Max(1, FramePeriodMs);
return (int)(System.Math.Max(0, elapsedMs) / period % frameCount);
}
}

View File

@@ -0,0 +1,4 @@
namespace Age.Engine.Model;
/// <summary>A synchronous AGE-owned diagnostic prompt after native body/context formatting.</summary>
public readonly record struct DiagnosticMessage(string Caption, string Text);