Struct in ldk_component.h

LDKComponentDesc

typedef struct LDKComponentDesc{
  const char *name;
  u32 type;
  u32 entry_size;
  u32 initial_capacity;
  u32 flags;
  const u32 *required_components;
  u32 required_component_count;
  LDKComponentAttachFn attach;
  LDKComponentDestroyFn destroy;
  void *user;
}LDKComponentDesc;
Enum in ldk_component.h

LDKComponentFlags

A descriptor that identifies a Component. Components are plain data structures that can be attached to entities. Component types needs to be registered before they are used.

typedef enum LDKComponentFlags{
  LDK_COMPONENT_FLAG_NONE=0,
  LDK_COMPONENT_FLAG_HIDE_IN_INSPECTOR=1<<0
}LDKComponentFlags;