Struct EcsComponentLifecycle

Synopsis

#include <include/flecs.h>

typedef struct EcsComponentLifecycle

Description

Component that contains lifecycle callbacks for a component.

Mentioned in

Source

Lines 204-210 in include/flecs.h.

typedef struct EcsComponentLifecycle {
    ecs_xtor_t ctor;        /**< Component constructor */
    ecs_xtor_t dtor;        /**< Component destructor */
    ecs_copy_t copy;        /**< Component copy */
    ecs_move_t move;        /**< Component move */
    void *ctx;              /**< User defined context */
} EcsComponentLifecycle;