public static HostGameRequest Deserialize(HazelBinaryReader reader) { var result = new HostGameRequest(); result.gameOptions = GameOptionsData.Deserialize(reader.ReadBytesAndSize()); return(result); }
public static GetGameListV2Request Deserialize(HazelBinaryReader reader) { var msg = new GetGameListV2Request(); reader.ReadPackedInt32(); // Hardcoded 0. msg.options = GameOptionsData.Deserialize(reader.ReadBytesAndSize()); return(msg); }
public static RpcSetTasks Deserialize(HazelBinaryReader reader) { var msg = new RpcSetTasks(); msg.playerId = reader.ReadByte(); msg.taskTypeIds = reader.ReadBytesAndSize(); return(msg); }
public static RpcVotingComplete Deserialize(HazelBinaryReader reader) { var msg = new RpcVotingComplete(); msg.states = reader.ReadBytesAndSize(); msg.exiledPlayerId = reader.ReadByte(); msg.tie = reader.ReadBoolean(); return(msg); }