From 781ba34e1b363788844072b291c0063ced43e7ad Mon Sep 17 00:00:00 2001 From: AeonLucid Date: Sat, 6 Mar 2021 17:07:35 +0100 Subject: [PATCH] Fix Impostor.Tools.ServerReplay compilation --- src/Impostor.Api/Net/Messages/C2S/Message00HostGameC2S.cs | 6 ++++++ src/Impostor.Tools.ServerReplay/Program.cs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Impostor.Api/Net/Messages/C2S/Message00HostGameC2S.cs b/src/Impostor.Api/Net/Messages/C2S/Message00HostGameC2S.cs index 86679fa..7d7ee55 100644 --- a/src/Impostor.Api/Net/Messages/C2S/Message00HostGameC2S.cs +++ b/src/Impostor.Api/Net/Messages/C2S/Message00HostGameC2S.cs @@ -11,6 +11,12 @@ namespace Impostor.Api.Net.Messages.C2S writer.EndMessage(); } + /// + /// Deserialize a packet. + /// + /// with 0. + /// The chat type selected in the client of the player. + /// Deserialized . public static GameOptionsData Deserialize(IMessageReader reader, out ChatType chatType) { var gameOptionsData = GameOptionsData.DeserializeCreate(reader); diff --git a/src/Impostor.Tools.ServerReplay/Program.cs b/src/Impostor.Tools.ServerReplay/Program.cs index 1f5e494..c36ed24 100644 --- a/src/Impostor.Tools.ServerReplay/Program.cs +++ b/src/Impostor.Tools.ServerReplay/Program.cs @@ -177,7 +177,7 @@ namespace Impostor.Tools.ServerReplay if (tag == MessageFlags.HostGame) { - GameOptions.Add(clientId, Message00HostGameC2S.Deserialize(message)); + GameOptions.Add(clientId, Message00HostGameC2S.Deserialize(message, out _)); } else if (Connections.TryGetValue(clientId, out var client)) { -- 2.39.5