Function ecs_value_init

Synopsis

#include <include/flecs.h>

FLECS_API int ecs_value_init(const ecs_world_t *world, ecs_entity_t type, void *ptr)

Description

Construct a value in existing storage

Parameters

world - The world.

type - The type of the value to create.

ptr - Pointer to a value of type 'type'

Returns
Zero if success, nonzero if failed.

Source

Line 4955 in include/flecs.h.