ECSM v0.2.0
Component

Base component structure. More...

#include <ecsm.hpp>

Public Member Functions

ID< EntitygetEntity () const noexcept
 Returns component entity instance.
 

Protected Attributes

ID< Entityentity = {}
 

Friends

class Manager
 

Detailed Description

Base component structure.

Components are containers for specific data or behavior. Rather than attaching behavior directly to entities, you attach components to entities to give them certain properties or functionalities. For example, in a game, you might have components for position, velocity, rendering, etc.