1
0

finish obj loader

This commit is contained in:
2026-01-09 22:50:24 +08:00
parent 07bd22d2ee
commit 31dc82fc2c
9 changed files with 137 additions and 13 deletions

View File

@@ -37,8 +37,9 @@ namespace basalt::shared::object_loader {
IObjectLoader::~IObjectLoader() {}
void IObjectLoader::load() {
void IObjectLoader::load(ObjectLoaderConfig&& config) {
if (this->status != ObjectLoaderStatus::Ready) throw std::runtime_error("unexpected object loader status");
this->config = std::move(config);
this->status = ObjectLoaderStatus::Loaded;
}