Exemplo n.º 1
0
 /// <summary>
 /// 初始化资源信息的新实例。
 /// </summary>
 /// <param name="resourceName">资源名称。</param>
 /// <param name="loadType">资源加载方式。</param>
 /// <param name="length">资源大小。</param>
 /// <param name="hashCode">资源哈希值。</param>
 /// <param name="storageInReadOnly">资源是否在只读区。</param>
 public CoursewareResourceInfo(CoursewareResourceName resourceName, int loadType, int length, int hashCode, bool storageInReadOnly)
 {
     m_ResourceName      = resourceName;
     m_LoadType          = loadType;
     m_Length            = length;
     m_HashCode          = hashCode;
     m_StorageInReadOnly = storageInReadOnly;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 初始化更新信息的新实例。
 /// </summary>
 /// <param name="resourceName">资源名称。</param>
 /// <param name="loadType">资源加载方式。</param>
 /// <param name="length">资源大小。</param>
 /// <param name="hashCode">资源哈希值。</param>
 /// <param name="zipLength">压缩包大小。</param>
 /// <param name="zipHashCode">压缩包哈希值。</param>
 /// <param name="downloadPath">资源更新下载后存放路径。</param>
 /// <param name="downloadUri">资源更新下载地址。</param>
 /// <param name="retryCount">已重试次数。</param>
 public CoursewareUpdate(CoursewareResourceName resourceName, int loadType, int length, int hashCode, int zipLength, int zipHashCode, string downloadPath, string downloadUri, int retryCount, bool isNeedUpdate)
 {
     m_ResourceName = resourceName;
     m_LoadType     = loadType;
     m_Length       = length;
     m_HashCode     = hashCode;
     m_ZipLength    = zipLength;
     m_ZipHashCode  = zipHashCode;
     m_DownloadPath = downloadPath;
     m_DownloadUri  = downloadUri;
     m_RetryCount   = retryCount;
     m_IsNeedUpdate = isNeedUpdate;
 }