123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- //------------------------------------------------------------
- // 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 LocalVersionInfo
- {
- 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;
- public LocalVersionInfo(string fileSystemName, LoadType loadType, int length, int hashCode)
- {
- m_Exist = true;
- m_FileSystemName = fileSystemName;
- m_LoadType = loadType;
- m_Length = length;
- m_HashCode = hashCode;
- }
- 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;
- }
- }
- }
- }
- }
- }
- }
|