# Khaotic Engine Reborn: enginecustom/src/inc/system/ecs/components/model_path_component.h Source File

Loading...
Searching...
No Matches
model_path_component.h
#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 {}
const std::wstring& GetPath() const { return m_path; }
void SetPath(const std::wstring& path) { m_path = path; }
private:
std::wstring m_path;
};
} // namespace ecs
ecs::Component
Definition component.h:12
ecs::ModelPathComponent
Definition model_path_component.h:7
ecs::ModelPathComponent::Update
void Update(float deltaTime) override
Definition model_path_component.h:14
ecs::ModelPathComponent::GetPath
const std::wstring & GetPath() const
Definition model_path_component.h:20
ecs::ModelPathComponent::Initialize
void Initialize() override
Definition model_path_component.h:13
ecs::ModelPathComponent::SetPath
void SetPath(const std::wstring &path)
Definition model_path_component.h:25
ecs
Definition component.h:9