public void Dispose() { m_ResourcePath = null; m_LastEditTime = 0; m_OnReload = null; Id = StringHash32.Null; }
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; } }
public HotReloadableFileProxy(string inFilePath, HotReloadFileDelegate inReload) : this(inFilePath, StringHash32.Null, inReload) { }