[nostalgia] Add basic support for subsheets

This commit is contained in:
2022-02-26 22:48:18 -06:00
parent 329ecb3266
commit e8a046c2dc
20 changed files with 630 additions and 238 deletions
+2 -4
View File
@@ -50,8 +50,7 @@ class NOSTALGIASTUDIO_EXPORT Project {
/**
* Writes a MetalClaw object to the project at the given path.
*/
template<typename T>
ox::Error writeObj(const ox::String &path, T *obj) const noexcept;
ox::Error writeObj(const ox::String &path, auto *obj) const noexcept;
template<typename T>
ox::Result<ox::UniquePtr<T>> loadObj(const ox::String &path) const noexcept;
@@ -86,8 +85,7 @@ class NOSTALGIASTUDIO_EXPORT Project {
};
template<typename T>
ox::Error Project::writeObj(const ox::String &path, T *obj) const noexcept {
ox::Error Project::writeObj(const ox::String &path, auto *obj) const noexcept {
// write MetalClaw
oxRequireM(buff, ox::writeClaw(obj, ox::ClawFormat::Metal));
// write to FS