Пример #1
0
        public static HostGameRequest Deserialize(HazelBinaryReader reader)
        {
            var result = new HostGameRequest();

            result.gameOptions = GameOptionsData.Deserialize(reader.ReadBytesAndSize());
            return(result);
        }
Пример #2
0
        public static GetGameListV2Request Deserialize(HazelBinaryReader reader)
        {
            var msg = new GetGameListV2Request();

            reader.ReadPackedInt32(); // Hardcoded 0.
            msg.options = GameOptionsData.Deserialize(reader.ReadBytesAndSize());
            return(msg);
        }
Пример #3
0
        public static RpcSetTasks Deserialize(HazelBinaryReader reader)
        {
            var msg = new RpcSetTasks();

            msg.playerId    = reader.ReadByte();
            msg.taskTypeIds = reader.ReadBytesAndSize();

            return(msg);
        }
Пример #4
0
        public static RpcVotingComplete Deserialize(HazelBinaryReader reader)
        {
            var msg = new RpcVotingComplete();

            msg.states         = reader.ReadBytesAndSize();
            msg.exiledPlayerId = reader.ReadByte();
            msg.tie            = reader.ReadBoolean();

            return(msg);
        }