Khaotic Engine Reborn
Loading...
Searching...
No Matches
model_path_component.h
1
#pragma once
2
#include "../component.h"
3
#include <string>
4
5
namespace
ecs
{
6
7
class
ModelPathComponent
:
public
Component
{
8
public
:
9
ModelPathComponent
() =
default
;
10
explicit
ModelPathComponent
(
const
std::wstring& path) : m_path(path) {}
11
~ModelPathComponent
() =
default
;
12
13
void
Initialize
()
override
{}
14
void
Update
(
float
deltaTime)
override
{}
15
20
const
std::wstring&
GetPath
()
const
{
return
m_path; }
25
void
SetPath
(
const
std::wstring& path) { m_path = path; }
26
27
private
:
28
std::wstring m_path;
29
};
30
31
}
// 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
enginecustom
src
inc
system
ecs
components
model_path_component.h
Generated by
1.12.0