123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- //------------------------------------------------------------
- // Game Framework
- // Copyright © 2013-2021 loyalsoft. All rights reserved.
- // Homepage: http://www.game7000.com/
- // Feedback: http://www.game7000.com/
- //------------------------------------------------------------
- using System.Runtime.InteropServices;
- namespace GameFramework.Resource
- {
- internal sealed partial class ResourceManager : GameFrameworkModule, IResourceManager
- {
- private sealed partial class ResourceChecker
- {
- private sealed partial class CheckInfo
- {
- /// <summary>
- /// 远程资源状态信息。
- /// </summary>
- [StructLayout(LayoutKind.Auto)]
- private struct RemoteVersionInfo
- {
- private readonly bool m_Exist;
- private readonly string m_FileSystemName;
- private readonly LoadType m_LoadType;
- private readonly int m_Length;
- private readonly int m_HashCode;
- private readonly int m_CompressedLength;
- private readonly int m_CompressedHashCode;
- public RemoteVersionInfo(string fileSystemName, LoadType loadType, int length, int hashCode, int compressedLength, int compressedHashCode)
- {
- m_Exist = true;
- m_FileSystemName = fileSystemName;
- m_LoadType = loadType;
- m_Length = length;
- m_HashCode = hashCode;
- m_CompressedLength = compressedLength;
- m_CompressedHashCode = compressedHashCode;
- }
- public bool Exist
- {
- get
- {
- return m_Exist;
- }
- }
- public bool UseFileSystem
- {
- get
- {
- return !string.IsNullOrEmpty(m_FileSystemName);
- }
- }
- public string FileSystemName
- {
- get
- {
- return m_FileSystemName;
- }
- }
- public LoadType LoadType
- {
- get
- {
- return m_LoadType;
- }
- }
- public int Length
- {
- get
- {
- return m_Length;
- }
- }
- public int HashCode
- {
- get
- {
- return m_HashCode;
- }
- }
- public int CompressedLength
- {
- get
- {
- return m_CompressedLength;
- }
- }
- public int CompressedHashCode
- {
- get
- {
- return m_CompressedHashCode;
- }
- }
- }
- }
- }
- }
- }
|