TagComponent

- Added TagComponent
This commit is contained in:
Light 2021-07-31 11:02:59 +04:30
parent c846e48c71
commit 8367150145
2 changed files with 26 additions and 1 deletions

View file

@ -6,3 +6,4 @@
#include "Components/NativeScriptComponent.h"
#include "Components/SpriteRendererComponent.h"
#include "Components/TransformComponent.h"
#include "Components/TagComponent.h"

View file

@ -0,0 +1,24 @@
#pragma once
#include "Base/Base.h"
namespace Light {
struct TagComponent
{
std::string tag = "Unnamed";
TagComponent() = default;
TagComponent(const TagComponent&) = default;
TagComponent(const char* _tag)
: tag(_tag)
{
}
operator std::string() { return tag; }
operator const std::string&() const { return tag; }
};
}