SpiecsEngine
 
Loading...
Searching...
No Matches
Spices::TagComponent Class Reference

TagComponent Class. This class defines the specific behaves of TagComponent. More...

#include <TagComponent.h>

Inheritance diagram for Spices::TagComponent:
Spices::Component

Public Member Functions

 TagComponent ()=default
 Constructor Function.
 
 TagComponent (const std::string &tag)
 Constructor Function.
 
virtual ~TagComponent () override=default
 Destructor Function.
 
virtual void OnSerialize () override
 This interface defines how to serialize.
 
virtual void OnDeSerialize () override
 This interface defines how to deserialize.
 
virtual void DrawThis () override
 This interface defines how to draw this component to property panel.
 
void AddTag (const std::string &tag)
 Add the tag this component handled.
 
void RemoveTag (const std::string &tag)
 Remove a tag from this component handled.
 
void Rename (const std::string &tag)
 Rename first element in tags.
 
const std::set< std::string > & GetTag ()
 Get the tags variable.
 
virtual void OnComponentAdded (const entt::entity &entity)
 This interface defines the behaves on specific component added. Init with variable.
 

Protected Attributes

entt::entity m_Owner { entt::null }
 This component's Owner entity.
 

Private Attributes

std::set< std::string > m_Tags
 The tags this component handled.
 

Detailed Description

TagComponent Class. This class defines the specific behaves of TagComponent.

Definition at line 20 of file TagComponent.h.


The documentation for this class was generated from the following files: