public static void Serialize(Stream stream, GetGameSessionInfoResponse instance) { if (instance.HasSessionInfo) { stream.WriteByte(18); ProtocolParser.WriteUInt32(stream, instance.SessionInfo.GetSerializedSize()); GameSessionInfo.Serialize(stream, instance.SessionInfo); } }
public void Serialize(Stream stream) { GameSessionInfo.Serialize(stream, this); }