mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
New world and player files format
This commit is contained in:
parent
b62b7bf2bb
commit
2f9244c17c
6 changed files with 168 additions and 79 deletions
|
|
@ -5,6 +5,10 @@
|
|||
#include <filesystem>
|
||||
#include "../typedefs.h"
|
||||
|
||||
namespace json {
|
||||
class JObject;
|
||||
}
|
||||
|
||||
namespace files {
|
||||
extern bool write_bytes(std::filesystem::path, const char* data, size_t size);
|
||||
extern uint append_bytes(std::filesystem::path, const char* data, size_t size);
|
||||
|
|
@ -12,6 +16,7 @@ namespace files {
|
|||
extern char* read_bytes(std::filesystem::path, size_t& length);
|
||||
extern std::string read_string(std::filesystem::path filename);
|
||||
extern bool write_string(std::filesystem::path filename, const std::string content);
|
||||
extern json::JObject* read_json(std::filesystem::path file);
|
||||
}
|
||||
|
||||
#endif /* FILES_FILES_H_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue