Flecs v4.0
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
flecs::script_builder Struct Reference

Script builder interface. More...

#include <builder.hpp>

Public Member Functions

 script_builder (flecs::world_t *world, const char *name=nullptr)
 
script_buildercode (const char *str)
 
script_builderfilename (const char *str)
 
flecs::entity run () const
 

Protected Attributes

flecs::world_t * world_
 
ecs_script_desc_t desc_
 

Detailed Description

Script builder interface.

Definition at line 16 of file builder.hpp.

Constructor & Destructor Documentation

◆ script_builder()

flecs::script_builder::script_builder ( flecs::world_t * world,
const char * name = nullptr )
inline

Definition at line 17 of file builder.hpp.

Member Function Documentation

◆ code()

script_builder & flecs::script_builder::code ( const char * str)
inline

Definition at line 30 of file builder.hpp.

◆ filename()

script_builder & flecs::script_builder::filename ( const char * str)
inline

Definition at line 35 of file builder.hpp.

◆ run()

flecs::entity flecs::script_builder::run ( ) const
inline

Definition at line 13 of file impl.hpp.

Member Data Documentation

◆ desc_

ecs_script_desc_t flecs::script_builder::desc_
protected

Definition at line 44 of file builder.hpp.

◆ world_

flecs::world_t* flecs::script_builder::world_
protected

Definition at line 43 of file builder.hpp.


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