Move input contracts to model
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Age.Engine.Hosting;
|
||||
using Age.Engine.Model;
|
||||
using Xunit;
|
||||
|
||||
public class AdvAutoAdvanceTimerTests
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
using Age.Engine.Model;
|
||||
|
||||
namespace Age.Engine.Hosting;
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -17,16 +17,9 @@ public readonly record struct AdvWaitIndicatorConfig(
|
||||
}
|
||||
}
|
||||
|
||||
public readonly record struct AdvAutoWaitState(
|
||||
bool Enabled, bool VoicePending, long PostVoiceDelayMs, long UnvoicedDelayMs);
|
||||
|
||||
/// <summary>A synchronous AGE-owned diagnostic prompt after native body/context formatting.</summary>
|
||||
public readonly record struct DiagnosticMessage(string Caption, string Text);
|
||||
|
||||
/// <summary>AGERc command 10's synchronous full-width text edit request and result.</summary>
|
||||
public readonly record struct FullwidthTextEditRequest(string CurrentText, string InitialText);
|
||||
public readonly record struct FullwidthTextEditResult(bool Accepted, string Text);
|
||||
|
||||
public interface IHost : IDiagnosticHost, ILifecycleHost, IAudioHost, IMovieHost, IGraphicsHost, IInputHost
|
||||
{
|
||||
void ShowText(int offset, string text);
|
||||
|
||||
8
engine/Age.Engine/Model/InputContracts.cs
Normal file
8
engine/Age.Engine/Model/InputContracts.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace Age.Engine.Model;
|
||||
|
||||
public readonly record struct AdvAutoWaitState(
|
||||
bool Enabled, bool VoicePending, long PostVoiceDelayMs, long UnvoicedDelayMs);
|
||||
|
||||
/// <summary>AGERc command 10's synchronous full-width text edit request and result.</summary>
|
||||
public readonly record struct FullwidthTextEditRequest(string CurrentText, string InitialText);
|
||||
public readonly record struct FullwidthTextEditResult(bool Accepted, string Text);
|
||||
Reference in New Issue
Block a user