27 lines
517 B
C++
27 lines
517 B
C++
#include "StaticMesh.hpp"
|
|
|
|
#include "Log/Log.hpp"
|
|
#include "Game/SaveMap/SaveMap.hpp"
|
|
|
|
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);
|
|
}
|