summaryrefslogtreecommitdiff
path: root/Source/Asura.Engine/filesystem/resource_manager.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-14 23:12:54 +0800
committerchai <chaifix@163.com>2019-03-14 23:12:54 +0800
commit8644e03586ac9c39741f62cbcbce87b18805538c (patch)
tree72021765f5262b7f2f7eebe299fd4e1aaa7c89b7 /Source/Asura.Engine/filesystem/resource_manager.h
parent8d8c4ff1664625e7428d0d31cd798d9321680cb2 (diff)
*大小写
Diffstat (limited to 'Source/Asura.Engine/filesystem/resource_manager.h')
-rw-r--r--Source/Asura.Engine/filesystem/resource_manager.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/Source/Asura.Engine/filesystem/resource_manager.h b/Source/Asura.Engine/filesystem/resource_manager.h
new file mode 100644
index 0000000..e22ce91
--- /dev/null
+++ b/Source/Asura.Engine/filesystem/resource_manager.h
@@ -0,0 +1,44 @@
+#ifndef __ASURA_ENGINE_RESOURCE_MANAGER_H__
+#define __ASURA_ENGINE_RESOURCE_MANAGER_H__
+
+#include <string>
+
+#include "DataBuffer.h"
+#include "Scripting/Portable.h"
+
+namespace AsuraEngine
+{
+ namespace Filesystem
+ {
+
+ ///
+ /// Դء洢ԴָĿ¼ȡ
+ ///
+ class ResourceManager ASURA_FINAL
+ {
+ public:
+
+ ResourceManager();
+ ~ResourceManager();
+
+ ///
+ /// װظĿ¼
+ ///
+ void Mount(const std::string& root);
+
+ ///
+ /// ȡļһdata bufferעҪȷȷڴ棬ڵôʹunique_ptr
+ ///
+ DataBuffer* LoadFile(const std::string& path);
+
+ ///
+ /// data buffer
+ ///
+ void SaveFile(const std::string& path, const DataBuffer* buffer);
+
+ };
+
+ }
+}
+
+#endif \ No newline at end of file