Move classes Mesh and StaticMesh to UwURenderEngine project. Because they depended from UwURenderEngine

This commit is contained in:
Jiga228
2025-10-25 23:20:28 +07:00
parent 1f88e0f0b9
commit 740c80e8c7
13 changed files with 9 additions and 76 deletions
+21
View File
@@ -0,0 +1,21 @@
#include "Mesh.hpp"
#include "Game/SaveMap/SaveMap.hpp"
Mesh::Mesh()
{
SetType(Classes::Mesh);
}
std::shared_ptr<SaveMap> Mesh::save()
{
return std::make_shared<SaveMap>("Mesh")
->SaveString("model_name_", model_name_)
->connect_to(Actor::save());
}
void Mesh::load(std::shared_ptr<SaveMap> save)
{
Actor::load(save->getParent());
model_name_ = save->GetString("model_name_");
}