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
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}
FLECS_API ecs_entity_t ecs_script_init(ecs_world_t *world, const ecs_script_desc_t *desc)
Load managed script.
ecs_id_t ecs_entity_t
An entity identifier.
Definition flecs.h:347
Script builder.
Entity.
Definition entity.hpp:30