summaryrefslogtreecommitdiff
path: root/Impostor-dev/src/Impostor.Api/Net/Messages/C2S/Message01JoinGameC2S.cs
blob: f121b97ea35c8590bd2e63e2198586562c3e8b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;

namespace Impostor.Api.Net.Messages.C2S
{
    public static class Message01JoinGameC2S
    {
        public static void Serialize(IMessageWriter writer)
        {
            throw new System.NotImplementedException();
        }

        public static void Deserialize(IMessageReader reader, out int gameCode, out byte unknown)
        {
            var slice = reader.ReadBytes(sizeof(Int32) + sizeof(byte)).Span;

            gameCode = slice.ReadInt32();
            unknown = slice.ReadByte();
        }
    }
}