Unravel Engine C++ Reference
Loading...
Searching...
No Matches
unravel::ecs Struct Reference

Manages the entity-component-system (ECS) operations for the ACE framework. More...

#include <ecs.h>

Public Member Functions

auto init (rtti::context &ctx) -> bool
 Initializes the ECS with the given context.
 
auto deinit (rtti::context &ctx) -> bool
 Deinitializes the ECS with the given context.
 
void on_frame_render (rtti::context &ctx, delta_t dt)
 Renders a frame.
 
void unload_scene ()
 Unloads the current scene.
 
auto get_scene () -> scene &
 Gets the current scene.
 
auto get_scene () const -> const scene &
 Gets the current scene (const version).
 

Detailed Description

Manages the entity-component-system (ECS) operations for the ACE framework.

Definition at line 11 of file ecs.h.

Member Function Documentation

◆ deinit()

auto unravel::ecs::deinit ( rtti::context & ctx) -> bool

Deinitializes the ECS with the given context.

Parameters
ctxThe context to deinitialize.
Returns
True if deinitialization was successful, false otherwise.

Definition at line 16 of file ecs.cpp.

◆ get_scene() [1/2]

auto unravel::ecs::get_scene ( ) -> scene&

Gets the current scene.

Returns
A reference to the current scene.

Definition at line 30 of file ecs.cpp.

◆ get_scene() [2/2]

auto unravel::ecs::get_scene ( ) const -> const scene&

Gets the current scene (const version).

Returns
A constant reference to the current scene.

Definition at line 35 of file ecs.cpp.

◆ init()

auto unravel::ecs::init ( rtti::context & ctx) -> bool

Initializes the ECS with the given context.

Parameters
ctxThe context to initialize with.
Returns
True if initialization was successful, false otherwise.

Definition at line 9 of file ecs.cpp.

◆ on_frame_render()

void unravel::ecs::on_frame_render ( rtti::context & ctx,
delta_t dt )

Renders a frame.

Parameters
ctxThe context for rendering.
dtThe delta time for the frame.

◆ unload_scene()

void unravel::ecs::unload_scene ( )

Unloads the current scene.

Definition at line 25 of file ecs.cpp.


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