aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/filesystem/je_asset_database.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/filesystem/je_asset_database.h')
-rw-r--r--src/libjin/filesystem/je_asset_database.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/libjin/filesystem/je_asset_database.h b/src/libjin/filesystem/je_asset_database.h
index 2e029ff..82d5ab4 100644
--- a/src/libjin/filesystem/je_asset_database.h
+++ b/src/libjin/filesystem/je_asset_database.h
@@ -12,21 +12,21 @@
namespace JinEngine
{
- namespace Filesystem
- {
+ namespace Filesystem
+ {
///
/// Assets managment.
///
class AssetDatabase : public Object
- {
- public:
+ {
+ public:
///
/// Get asset database singleton.
///
/// @param Singleton of asset database.
///
- static AssetDatabase* get();
+ static AssetDatabase* get();
///
/// Asset database constructor.
@@ -46,7 +46,7 @@ namespace JinEngine
/// @param path Path under asset folder.
/// @return True if the given path is directory, otherwise return false.
///
- bool isDir(const char* path);
+ bool isDir(const char* path);
///
/// Check if the path is file.
@@ -54,14 +54,14 @@ namespace JinEngine
/// @param path Path under asset folder.
/// @return True if the given path is file, otherwise return false.
///
- bool isFile(const char* path);
+ bool isFile(const char* path);
///
/// Check if the path exists.
/// @param path Given path.
/// @return True if path exists, otherwise return false.
///
- bool exists(const char* path);
+ bool exists(const char* path);
///
/// Read file into a buffer.
@@ -70,7 +70,7 @@ namespace JinEngine
/// @param buffer Buffer to fill.
/// @return True if read sucessful, otherwise return false.
///
- void read(const char* path, Buffer& buffer);
+ void read(const char* path, Buffer& buffer);
///
/// Read file and return data content.
@@ -79,7 +79,7 @@ namespace JinEngine
/// @param length Length of data.
/// @return Data if read sucessful, otherwise return null.
///
- void* read(const char* path, unsigned int* length);
+ void* read(const char* path, unsigned int* length);
///
/// Get files under given directory.
@@ -96,17 +96,17 @@ namespace JinEngine
/// @param path Path of asset.
/// @return Full path of asset.
///
- const char* getFull(const char* path);
+ const char* getFull(const char* path);
- private:
- static AssetDatabase* mAssetDatabase;
+ private:
+ static AssetDatabase* mAssetDatabase;
#if jin_filesystem == jin_filesystem_smount
- smtShared* mSmt;
+ smtShared* mSmt;
#endif
- };
+ };
- } // namespace Filesystem
+ } // namespace Filesystem
} // namespace JinEngine
#endif // jin_filesystem