Muto 0.0.1
Cross-Platform Application Template
GitHub Repo | Muto Updates | Muto's Author
Loading...
Searching...
No Matches
Muto::NameComponent Struct Reference

Component that holds the name of an entity. More...

#include <Components.h>

Public Member Functions

std::string & GetName ()
 
 NameComponent ()=default
 
 NameComponent (const NameComponent &)=default
 
 NameComponent (const std::string &name)
 
 operator const std::string & () const
 
 operator std::string & ()
 

Public Attributes

std::string Name
 The name of the owning entity.
 

Detailed Description

Component that holds the name of an entity.

Constructor & Destructor Documentation

◆ NameComponent() [1/3]

Muto::NameComponent::NameComponent ( )
default

◆ NameComponent() [2/3]

Muto::NameComponent::NameComponent ( const NameComponent &  )
default

◆ NameComponent() [3/3]

Muto::NameComponent::NameComponent ( const std::string &  name)
inline
59 : Name(name) {
60 }
constexpr Scope< T > CreateScope(Args &&... args)
Creates a Scope (unique_ptr) for the given type and constructor arguments.
Definition Defines_Macros.h:51
std::string Name
The name of the owning entity.
Definition Components.h:54

References Name.

Member Function Documentation

◆ GetName()

std::string & Muto::NameComponent::GetName ( )
inline
63{ return Name; }

References Name.

◆ operator const std::string &()

Muto::NameComponent::operator const std::string & ( ) const
inline
62{ return Name; }

References Name.

◆ operator std::string &()

Muto::NameComponent::operator std::string & ( )
inline
61{ return Name; }

References Name.

Member Data Documentation

◆ Name

std::string Muto::NameComponent::Name

The name of the owning entity.

Referenced by GetName(), NameComponent(), operator const std::string &(), and operator std::string &().


The documentation for this struct was generated from the following file: