Flecs: include/flecs/addons/cpp/mixins/script/impl.hpp Source File
Description: A fast entity component system (ECS) for C & C++

| Flecs v4.0 A fast entity component system (ECS) for C & C++

Loading...
Searching...
No Matches
impl.hpp
Go to the documentation of this file.
1
5
6#pragma once
7
8#include "builder.hpp"
9
10namespace flecs
11{
12
13inline flecs::entity script_builder::run() const {
14 ecs_entity_t e = ecs_script_init(world_, &desc_);
15 return flecs::entity(world_, e);
16}
17
18}
ecs_script_init
FLECS_API ecs_entity_t ecs_script_init(ecs_world_t *world, const ecs_script_desc_t *desc)
Load managed script.
ecs_entity_t
ecs_id_t ecs_entity_t
An entity identifier.
Definition flecs.h:380
builder.hpp
Script builder.
flecs::world::entity
flecs::entity entity(Args &&... args) const
Create an entity.