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
+26
View File
@@ -0,0 +1,26 @@
#include "StaticMesh.hpp"
#include "Log/Log.h"
#include "Game/SaveMap/SaveMap.h"
StaticMesh::StaticMesh()
{
SetType(Classes::StaticMesh);
}
std::shared_ptr<SaveMap> StaticMesh::save()
{
return std::make_shared<SaveMap>("StaticMesh")->connect_to(Mesh::save());
}
void StaticMesh::load(std::shared_ptr<SaveMap> save)
{
Mesh::load(save->getParent());
}
void StaticMesh::load_model(const std::string& model_name)
{
SetModelName(model_name);
// TODO
Message("Load mesh: " + model_name);
}