yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
dungeon_room_document_file.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_DUNGEON_DUNGEON_ROOM_DOCUMENT_FILE_H_
2#define YAZE_APP_EDITOR_DUNGEON_DUNGEON_ROOM_DOCUMENT_FILE_H_
3
4#include <string>
5
6#include "absl/status/status.h"
7#include "absl/status/statusor.h"
8
9namespace yaze::editor {
10
11// Bounded, schema-validated file interchange. Neither operation touches a ROM.
12absl::StatusOr<std::string> ReadDungeonRoomDocumentFile(
13 const std::string& path);
14// Only .json paths are accepted. Existing files must themselves be valid room
15// documents; unrelated files and symlinks are never replaced.
16absl::Status WriteDungeonRoomDocumentFile(const std::string& path,
17 const std::string& json);
18
19} // namespace yaze::editor
20
21#endif // YAZE_APP_EDITOR_DUNGEON_DUNGEON_ROOM_DOCUMENT_FILE_H_
Editors are the view controllers for the application.
absl::Status WriteDungeonRoomDocumentFile(const std::string &path, const std::string &json)
absl::StatusOr< std::string > ReadDungeonRoomDocumentFile(const std::string &path)