internal CMsgProtoBufHeader CreateProtobuf(bool server)
        {
            CMsgProtoBufHeader header = new CMsgProtoBufHeader();

            if (_routingAppId != 0)
            {
                header.routing_appid = _routingAppId;
            }

            if (_traceTag != 0)
            {
                header.trace_tag = _traceTag;
            }

            if (TargetJobName != null)
            {
                header.target_job_name = TargetJobName;
            }

            if (JobId != SteamGid.Invalid)
            {
                header.jobid_source = JobId;
            }

            header.client_sessionid = SessionId;
            header.steamid          = SteamId;

            return(header);
        }
        internal ProtobufClientHeader(CMsgProtoBufHeader header, bool server) : base(server ? header.jobid_source : header.jobid_target, header.steamid, header.client_sessionid)
        {
            if (header.routing_appidSpecified)
            {
                _routingAppId = header.routing_appid;
            }

            if (header.target_job_nameSpecified)
            {
                TargetJobName = header.target_job_name;
            }

            if (header.trace_tagSpecified)
            {
                _traceTag = header.trace_tag;
            }
        }
 internal GameCoordinatorProtobufHeader(CMsgProtoBufHeader header) : this(header.job_id_source)
 {
 }