Build viewer/editor #13

Manually merged
williamjcm merged 128 commits from mass-viewer into master 2022-03-02 14:50:10 +01:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit 9c1aeb753e - Show all commits

View file

@ -47,6 +47,12 @@ auto UESaveFile::reloadData() -> bool {
return valid(); return valid();
} }
void UESaveFile::appendProperty(UnrealPropertyBase::ptr prop) {
auto none_prop = std::move(_properties.back());
_properties.back() = std::move(prop);
arrayAppend(_properties, std::move(none_prop));
}
auto UESaveFile::props() -> Containers::ArrayView<UnrealPropertyBase::ptr> { auto UESaveFile::props() -> Containers::ArrayView<UnrealPropertyBase::ptr> {
return _properties; return _properties;
} }

View file

@ -51,6 +51,8 @@ class UESaveFile {
return nullptr; return nullptr;
} }
void appendProperty(UnrealPropertyBase::ptr prop);
auto props() -> Containers::ArrayView<UnrealPropertyBase::ptr>; auto props() -> Containers::ArrayView<UnrealPropertyBase::ptr>;
auto saveToFile() -> bool; auto saveToFile() -> bool;