Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine.
GitHub | Vesper Updates | Creator
Loading...
Searching...
No Matches
Vesper::NameComponent Struct Reference

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

#include <Components.h>

Public Member Functions

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

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]

Vesper::NameComponent::NameComponent ( )
default

◆ NameComponent() [2/3]

Vesper::NameComponent::NameComponent ( const NameComponent & )
default

◆ NameComponent() [3/3]

Vesper::NameComponent::NameComponent ( const std::string & name)
inline
53 : Name(name) {
54 }
std::string Name
The name of the owning entity.
Definition Components.h:48

Member Function Documentation

◆ GetName()

std::string & Vesper::NameComponent::GetName ( )
inline
57{ return Name; }

◆ operator const std::string &()

Vesper::NameComponent::operator const std::string & ( ) const
inline
56{ return Name; }

◆ operator std::string &()

Vesper::NameComponent::operator std::string & ( )
inline
55{ return Name; }

Member Data Documentation

◆ Name

std::string Vesper::NameComponent::Name

The name of the owning entity.


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