refactor(battle-node): switch MsgEnvelope.Body to IMsgBody, migrate all sites
This commit is contained in:
@@ -24,7 +24,7 @@ public class MsgPayloadCodecTests
|
||||
Cat: EmitCategory.Battle,
|
||||
PubSeq: 3,
|
||||
PlaySeq: null,
|
||||
Body: new Dictionary<string, object?>());
|
||||
Body: new RawBody(new Dictionary<string, object?>()));
|
||||
|
||||
var bytes = MsgPayloadCodec.Encode(env, key: FreshKey());
|
||||
var back = MsgPayloadCodec.Decode(bytes);
|
||||
@@ -48,6 +48,6 @@ public class MsgPayloadCodecTests
|
||||
|
||||
Assert.That(env.Uri, Is.EqualTo(NetworkBattleUri.InitNetwork));
|
||||
Assert.That(env.Cat, Is.EqualTo(EmitCategory.General));
|
||||
Assert.That(env.Body["resultCode"], Is.EqualTo(1L));
|
||||
Assert.That(((RawBody)env.Body).Entries["resultCode"], Is.EqualTo(1L));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user