Example #1
0
        public JobID RequestUGC(ulong pubFile, Action <UGCJobResult> callback, object userData = null)
        {
            var pubFileRequest = new CPublishedFile_GetDetails_Request
            {
                includetags        = true,
                includekvtags      = true,
                includevotes       = true,
                includemetadata    = true,
                includeforsaledata = true,
            };

            pubFileRequest.publishedfileids.Add(pubFile);

            JobID jobId = Steam.Instance.PublishedFiles.SendMessage(api => api.GetDetails(pubFileRequest));

            var job = new UGCJob(callback);

            job.UserData = userData;

            ugcJobs[jobId] = job;

            return(jobId);
        }
Example #2
0
        public JobID RequestUGC( ulong pubFile, Action<UGCJobResult> callback, object userData = null )
        {
            var pubFileRequest = new CPublishedFile_GetDetails_Request
            {
                includetags = true,
                includekvtags = true,
                includevotes = true,
                includemetadata = true,
                includeforsaledata = true,
            };

            pubFileRequest.publishedfileids.Add( pubFile );

            JobID jobId = Steam.Instance.PublishedFiles.SendMessage( api => api.GetDetails( pubFileRequest ) );

            var job = new UGCJob( callback );
            job.UserData = userData;

            ugcJobs[ jobId ] = job;

            return jobId;
        }