Skip to content

Struct Engine::Name

ClassList > Engine > Name

A human-readable name for an entity (e.g. "Player", "Enemy"). More...

  • #include <Name.hpp>

Public Attributes

Type Name
std::string value

Public Static Functions

Type Name
Name Create (std::string value="")
Creates a Name component.

Detailed Description

Only attached to entities that have been given a name; unnamed entities simply don't have this component. Registered by Application.

Public Attributes Documentation

variable value

std::string Engine::Name::value;

Public Static Functions Documentation

function Create

Creates a Name component.

static inline Name Engine::Name::Create (
    std::string value=""
) 

Parameters:

  • value The name of the entity.


The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Components/Name.hpp