1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- //------------------------------------------------------------
- // 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
- {
- [StructLayout(LayoutKind.Auto)]
- private struct ReadWriteResourceInfo
- {
- private readonly string m_FileSystemName;
- private readonly LoadType m_LoadType;
- private readonly int m_Length;
- private readonly int m_HashCode;
- public ReadWriteResourceInfo(string fileSystemName, LoadType loadType, int length, int hashCode)
- {
- m_FileSystemName = fileSystemName;
- m_LoadType = loadType;
- m_Length = length;
- m_HashCode = hashCode;
- }
- 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;
- }
- }
- }
- }
- }
|