blob: da6eb40ca9f6aa4e988f22031c9012dd04b74914 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
namespace Impostor.Api.Net.Messages.S2C
{
public static class Message07JoinedGameS2C
{
public static void Serialize(IMessageWriter writer, bool clear, int gameCode, int playerId, int hostId, int[] otherPlayerIds)
{
if (clear)
{
writer.Clear(MessageType.Reliable);
}
writer.StartMessage(MessageFlags.JoinedGame);
writer.Write(gameCode);
writer.Write(playerId);
writer.Write(hostId);
writer.WritePacked(otherPlayerIds.Length);
foreach (var id in otherPlayerIds)
{
writer.WritePacked(id);
}
writer.EndMessage();
}
public static void Deserialize(IMessageReader reader)
{
throw new System.NotImplementedException();
}
}
}
|