Optional parameters for component definition.
- Parameters
-
| on_add_cb | Called when a component is added to an entity (can be NULL) |
| on_remove_cb | Called when a component is removed from an entity (can be NULL) |
| on_set_cb | Called when a component's data is set via ecs_set (can be NULL) |
| default_value | Optional initial component value, copied on add (can be NULL) |
| args_size | Size, in bytes, of the args buffer passed to ecs_add. When non-zero and an add is deferred (issued from a running system), this many bytes are copied and stored so the caller need not keep the args alive. Leave 0 if the component takes no args. |
| udata | User data passed to callbacks (can be NULL) |