Example #1
0
 public void Dispose()
 {
     m_ResourcePath = null;
     m_LastEditTime = 0;
     m_OnReload     = null;
     Id             = StringHash32.Null;
 }
Example #2
0
        public HotReloadableFileProxy(string inFilePath, StringHash32 inTag, HotReloadFileDelegate inReload)
        {
            m_ResourcePath = inFilePath;
            if (!String.IsNullOrEmpty(inFilePath))
            {
                m_LastEditTime = IOHelper.GetFileModifyTimestamp(inFilePath);
                m_OnReload     = inReload;

                Id  = inFilePath;
                Tag = inTag.IsEmpty ? Path.GetExtension(inFilePath).ToLowerInvariant() : inTag;
            }
        }
Example #3
0
 public HotReloadableFileProxy(string inFilePath, HotReloadFileDelegate inReload)
     : this(inFilePath, StringHash32.Null, inReload)
 {
 }