feat(battle-node): add IMsgBody marker + RawBody inbound wrapper

This commit is contained in:
gamer147
2026-06-01 10:32:44 -04:00
parent c279b811ad
commit 9217de3aa1
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
namespace SVSim.BattleNode.Protocol;
/// <summary>
/// Wraps a parsed-dictionary body for the inbound path. <see cref="MsgEnvelope.FromJson"/>
/// returns this; <see cref="MsgEnvelope.ToJson"/> flattens <see cref="Entries"/> back to
/// top-level keys when echoing.
/// </summary>
public sealed class RawBody : IMsgBody
{
public Dictionary<string, object?> Entries { get; }
public RawBody(Dictionary<string, object?> entries)
{
Entries = entries;
}
}