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); }
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; }