feat: add console command framework

This commit is contained in:
2026-08-22 19:39:17 +02:00
parent c95233b9f9
commit 9f742f396f
28 changed files with 282 additions and 0 deletions
@@ -0,0 +1,11 @@
using System.Collections.Generic;
namespace Game.Features.Console.Contracts;
public sealed record CommandArgSpec(string Name, CommandArgType Type, IReadOnlyList<string> Choices = null)
{
public override string ToString() =>
Type == CommandArgType.Choice && Choices is not null
? string.Join("|", Choices)
: Type.ToString().ToLowerInvariant();
}