forked from Dynamitos/Seele
Adding nlohmanns json library
This commit is contained in:
1 parent
3ef8342247
commit
bb5b48698a
83 files changed
+2426
-646
No files matched your search
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include "Asset.h"
|
||||
#include <fstream>
|
||||
|
||||
namespace Seele
|
||||
{
|
||||
class FileAsset
|
||||
{
|
||||
public:
|
||||
FileAsset();
|
||||
FileAsset(const std::string& directory, const std::string& name);
|
||||
FileAsset(const std::string& fullPath);
|
||||
virtual ~FileAsset();
|
||||
std::ifstream& getReadStream();
|
||||
std::ofstream& getWriteStream();
|
||||
void rename(const std::string& newName);
|
||||
private:
|
||||
std::string name;
|
||||
std::string path;
|
||||
uint32 byteSize;
|
||||
std::ifstream inStream;
|
||||
std::ofstream outStream;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user