public const byte SetActivePodType = 21;
public const byte QueryPlatformIds = 22;
public const byte QueryLobbyInfo = 23;
+ public const byte EndGameHostMigration = 24;
private static readonly Dictionary<byte, string> FlagCache;
--- /dev/null
+using Impostor.Api.Games;
+
+namespace Impostor.Api.Net.Messages.S2C
+{
+ public class Message24EndGameHostMigrationS2C
+ {
+ public static void Serialize(IMessageWriter writer, GameCode gameCode, int hostClientId)
+ {
+ writer.StartMessage(MessageFlags.EndGameHostMigration);
+ gameCode.Serialize(writer);
+ writer.Write(hostClientId);
+ writer.EndMessage();
+ }
+
+ public static void Deserialize(IMessageReader reader, out GameCode gameCode, out int hostClientId)
+ {
+ gameCode = reader.ReadInt32();
+ hostClientId = reader.ReadInt32();
+ }
+ }
+}