RLLib  0.1
Public Attributes | List of all members
rl::Entity Struct Reference

An entity represents anything present in the scene, such as platforms, items, cameras, sounds, lights, etc. More...

#include <Entity.hpp>

Public Attributes

int32_t header
 An unknown property that starts the entity data.
 
std::string name
 The name of the entity. More...
 
Vector3f position
 The position of the entity.
 
Vector2f scale
 The size scale of the entity.
 
Angle rotation
 The rotation of the entity.
 
std::array< int32_t, 6 > unknown
 Some unknown properties that are common for every entities.
 
ByteStream data
 Some data containing properties that are specific to this entity.
 

Detailed Description

An entity represents anything present in the scene, such as platforms, items, cameras, sounds, lights, etc.

Each entity starts with common properties (name, position, scale, rotation) and is then followed by some data of variable length that contains properties specific to each entity.

Member Data Documentation

◆ name

std::string rl::Entity::name

The name of the entity.

Warning
The name is not unique to the entity. It can be changed to anything (even an empty string) without changing the entity appearance or behaviour. Changing the name is however not advised because the entities location algorithms are looking for names, and may fail to find this entity in the future.

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