Add classes Mesh and StaticMesh

This commit is contained in:
Jiga228
2025-10-10 19:39:30 +07:00
parent 2b2ed1f050
commit fedffa7634
14 changed files with 118 additions and 20 deletions
+2 -2
View File
@@ -626,11 +626,11 @@ std::string SaveMap::serialize() noexcept
return buffer;
}
SaveMap* SaveMap::connect_to(const std::shared_ptr<SaveMap>& parent)
std::shared_ptr<SaveMap> SaveMap::connect_to(const std::shared_ptr<SaveMap>& parent)
{
if (this->parent_ != nullptr)
throw std::runtime_error("Can't connect to second parent");
this->parent_ = parent;
return this;
return std::shared_ptr<SaveMap>(this);
}