Definition at line 928 of file flecs.h.
◆ binding_ctx
void* ecs_type_hooks_t::binding_ctx |
Language binding context.
Definition at line 986 of file flecs.h.
◆ binding_ctx_free
Callback to free binding_ctx.
Definition at line 990 of file flecs.h.
◆ cmp
Compare hook.
Definition at line 953 of file flecs.h.
◆ copy
copy assignment
Definition at line 931 of file flecs.h.
◆ copy_ctor
Ctor + copy.
Definition at line 935 of file flecs.h.
◆ ctor
◆ ctor_move_dtor
Ctor + move + dtor (or move_ctor + dtor).
This combination is typically used when a component is moved from one location to a new location, like when it is moved to a new table. If not set explicitly it will be derived from other callbacks.
Definition at line 944 of file flecs.h.
◆ ctx
void* ecs_type_hooks_t::ctx |
User defined context.
Definition at line 985 of file flecs.h.
◆ ctx_free
Callback to free ctx.
Definition at line 989 of file flecs.h.
◆ dtor
◆ equals
Equals hook.
Definition at line 956 of file flecs.h.
◆ flags
Hook flags.
Indicates which hooks are set for the type, and which hooks are illegal. When an ILLEGAL flag is set when calling ecs_set_hooks() a hook callback will be set that panics when called.
Definition at line 962 of file flecs.h.
◆ lifecycle_ctx
void* ecs_type_hooks_t::lifecycle_ctx |
Component lifecycle context (see meta add-on)
Definition at line 987 of file flecs.h.
◆ lifecycle_ctx_free
Callback to free lifecycle_ctx.
Definition at line 991 of file flecs.h.
◆ move
move assignment
Definition at line 932 of file flecs.h.
◆ move_ctor
Ctor + move.
Definition at line 938 of file flecs.h.
◆ move_dtor
Move + dtor.
This combination is typically used when a component is moved from one location to an existing location, like what happens during a remove. If not set explicitly it will be derived from other callbacks.
Definition at line 950 of file flecs.h.
◆ on_add
Callback that is invoked when an instance of a component is added.
This callback is invoked before triggers are invoked.
Definition at line 967 of file flecs.h.
◆ on_remove
Callback that is invoked when an instance of the component is removed.
This callback is invoked after the triggers are invoked, and before the destructor is invoked.
Definition at line 977 of file flecs.h.
◆ on_replace
Callback that is invoked with the existing and new value before the value is assigned.
Invoked after on_add and before on_set. Registering an on_replace hook prevents using operations that return a mutable pointer to the component like get_mut, ensure and emplace.
Definition at line 983 of file flecs.h.
◆ on_set
Callback that is invoked when an instance of the component is set.
This callback is invoked before triggers are invoked, and enable the component to respond to changes on itself before others can.
Definition at line 972 of file flecs.h.
The documentation for this struct was generated from the following file: