Add classes Mesh and StaticMesh
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user