Minor - ECS use for import object - V12.1.0

This commit is contained in:
2025-06-24 15:36:45 +02:00
parent 039b034175
commit 3adfddf44f
5 changed files with 116 additions and 89 deletions

View File

@@ -38,6 +38,7 @@
#include "ecs/components/physics_component.h"
#include "ecs/components/shader_component.h"
#include "ecs/systems/render_system.h"
#include "ecs/components/model_path_component.h"
#include <fstream>
#include <WICTextureLoader.h>

View File

@@ -0,0 +1,24 @@
#pragma once
#include "../component.h"
#include <string>
namespace ecs {
class ModelPathComponent : public Component {
public:
ModelPathComponent() = default;
explicit ModelPathComponent(const std::wstring& path) : m_path(path) {}
~ModelPathComponent() = default;
void Initialize() override {}
void Update(float deltaTime) override {}
// Getters et setters
const std::wstring& GetPath() const { return m_path; }
void SetPath(const std::wstring& path) { m_path = path; }
private:
std::wstring m_path;
};
} // namespace ecs