Move classes Mesh and StaticMesh to UwURenderEngine project. Because they depended from UwURenderEngine
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "Game/Actors/Actor.hpp"
|
||||
|
||||
GENERATE_META(Mesh)
|
||||
class Mesh : public Actor
|
||||
{
|
||||
std::string model_name_;
|
||||
protected:
|
||||
void SetModelName(const std::string& new_model_name) { model_name_ = new_model_name; }
|
||||
|
||||
public:
|
||||
Mesh();
|
||||
|
||||
#pragma region ISave
|
||||
virtual std::shared_ptr<SaveMap> save() override;
|
||||
virtual void load(std::shared_ptr<SaveMap> save) override;
|
||||
#pragma endregion
|
||||
|
||||
virtual void load_model(const std::string& model_name) = 0;
|
||||
const std::string& GetModelName() const { return model_name_; }
|
||||
};
|
||||
Reference in New Issue
Block a user