Class ecs_system_t
java.lang.Object
com.github.elebras1.flecs.ecs_system_t
struct ecs_system_t {
ecs_header_t hdr;
ecs_run_action_t run;
ecs_iter_action_t action;
ecs_query_t *query;
ecs_entity_t tick_source;
_Bool multi_threaded;
_Bool immediate;
const char *name;
void *ctx;
void *callback_ctx;
void *run_ctx;
ecs_ctx_free_t ctx_free;
ecs_ctx_free_t callback_ctx_free;
ecs_ctx_free_t run_ctx_free;
float time_spent;
float time_passed;
int64_t last_frame;
flecs_poly_dtor_t dtor;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegmentaction(MemorySegment struct) Getter for field:ecs_iter_action_t actionstatic voidaction(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_iter_action_t actionstatic final AddressLayoutLayout for field:ecs_iter_action_t actionstatic final longOffset for field:ecs_iter_action_t actionstatic MemorySegmentallocate(SegmentAllocator allocator) Allocate a segment of sizelayout().byteSize()usingallocatorstatic MemorySegmentallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of sizeelementCountusingallocator.static MemorySegmentasSlice(MemorySegment array, long index) Obtains a slice ofarrayParamwhich selects the array element atindex.static MemorySegmentcallback_ctx(MemorySegment struct) Getter for field:void *callback_ctxstatic voidcallback_ctx(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *callback_ctxstatic MemorySegmentcallback_ctx_free(MemorySegment struct) Getter for field:ecs_ctx_free_t callback_ctx_freestatic voidcallback_ctx_free(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_ctx_free_t callback_ctx_freestatic final AddressLayoutLayout for field:ecs_ctx_free_t callback_ctx_freestatic final longOffset for field:ecs_ctx_free_t callback_ctx_freestatic final AddressLayoutLayout for field:void *callback_ctxstatic final longOffset for field:void *callback_ctxstatic MemorySegmentctx(MemorySegment struct) Getter for field:void *ctxstatic voidctx(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *ctxstatic MemorySegmentctx_free(MemorySegment struct) Getter for field:ecs_ctx_free_t ctx_freestatic voidctx_free(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_ctx_free_t ctx_freestatic final AddressLayoutLayout for field:ecs_ctx_free_t ctx_freestatic final longOffset for field:ecs_ctx_free_t ctx_freestatic final AddressLayoutLayout for field:void *ctxstatic final longOffset for field:void *ctxstatic MemorySegmentdtor(MemorySegment struct) Getter for field:flecs_poly_dtor_t dtorstatic voiddtor(MemorySegment struct, MemorySegment fieldValue) Setter for field:flecs_poly_dtor_t dtorstatic final AddressLayoutLayout for field:flecs_poly_dtor_t dtorstatic final longOffset for field:flecs_poly_dtor_t dtorstatic MemorySegmenthdr(MemorySegment struct) Getter for field:ecs_header_t hdrstatic voidhdr(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_header_t hdrstatic final GroupLayoutLayout for field:ecs_header_t hdrstatic final longOffset for field:ecs_header_t hdrstatic booleanimmediate(MemorySegment struct) Getter for field:_Bool immediatestatic voidimmediate(MemorySegment struct, boolean fieldValue) Setter for field:_Bool immediatestatic final ValueLayout.OfBooleanLayout for field:_Bool immediatestatic final longOffset for field:_Bool immediatestatic longlast_frame(MemorySegment struct) Getter for field:int64_t last_framestatic voidlast_frame(MemorySegment struct, long fieldValue) Setter for field:int64_t last_framestatic final ValueLayout.OfLongLayout for field:int64_t last_framestatic final longOffset for field:int64_t last_framestatic final GroupLayoutlayout()The layout of this structstatic booleanmulti_threaded(MemorySegment struct) Getter for field:_Bool multi_threadedstatic voidmulti_threaded(MemorySegment struct, boolean fieldValue) Setter for field:_Bool multi_threadedstatic final ValueLayout.OfBooleanLayout for field:_Bool multi_threadedstatic final longOffset for field:_Bool multi_threadedstatic MemorySegmentname(MemorySegment struct) Getter for field:const char *namestatic voidname(MemorySegment struct, MemorySegment fieldValue) Setter for field:const char *namestatic final AddressLayoutLayout for field:const char *namestatic final longOffset for field:const char *namestatic MemorySegmentquery(MemorySegment struct) Getter for field:ecs_query_t *querystatic voidquery(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_query_t *querystatic final AddressLayoutLayout for field:ecs_query_t *querystatic final longOffset for field:ecs_query_t *querystatic MemorySegmentreinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentreinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any).static MemorySegmentrun(MemorySegment struct) Getter for field:ecs_run_action_t runstatic voidrun(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_run_action_t runstatic MemorySegmentrun_ctx(MemorySegment struct) Getter for field:void *run_ctxstatic voidrun_ctx(MemorySegment struct, MemorySegment fieldValue) Setter for field:void *run_ctxstatic MemorySegmentrun_ctx_free(MemorySegment struct) Getter for field:ecs_ctx_free_t run_ctx_freestatic voidrun_ctx_free(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_ctx_free_t run_ctx_freestatic final AddressLayoutLayout for field:ecs_ctx_free_t run_ctx_freestatic final longOffset for field:ecs_ctx_free_t run_ctx_freestatic final AddressLayoutLayout for field:void *run_ctxstatic final longOffset for field:void *run_ctxstatic final AddressLayoutLayout for field:ecs_run_action_t runstatic final longOffset for field:ecs_run_action_t runstatic longsizeof()The size (in bytes) of this structstatic longtick_source(MemorySegment struct) Getter for field:ecs_entity_t tick_sourcestatic voidtick_source(MemorySegment struct, long fieldValue) Setter for field:ecs_entity_t tick_sourcestatic final ValueLayout.OfLongLayout for field:ecs_entity_t tick_sourcestatic final longOffset for field:ecs_entity_t tick_sourcestatic floattime_passed(MemorySegment struct) Getter for field:float time_passedstatic voidtime_passed(MemorySegment struct, float fieldValue) Setter for field:float time_passedstatic final ValueLayout.OfFloatLayout for field:float time_passedstatic final longOffset for field:float time_passedstatic floattime_spent(MemorySegment struct) Getter for field:float time_spentstatic voidtime_spent(MemorySegment struct, float fieldValue) Setter for field:float time_spentstatic final ValueLayout.OfFloatLayout for field:float time_spentstatic final longOffset for field:float time_spent
-
Method Details
-
layout
The layout of this struct -
hdr$layout
Layout for field:ecs_header_t hdr -
hdr$offset
public static final long hdr$offset()Offset for field:ecs_header_t hdr -
hdr
Getter for field:ecs_header_t hdr -
hdr
Setter for field:ecs_header_t hdr -
run$layout
Layout for field:ecs_run_action_t run -
run$offset
public static final long run$offset()Offset for field:ecs_run_action_t run -
run
Getter for field:ecs_run_action_t run -
run
Setter for field:ecs_run_action_t run -
action$layout
Layout for field:ecs_iter_action_t action -
action$offset
public static final long action$offset()Offset for field:ecs_iter_action_t action -
action
Getter for field:ecs_iter_action_t action -
action
Setter for field:ecs_iter_action_t action -
query$layout
Layout for field:ecs_query_t *query -
query$offset
public static final long query$offset()Offset for field:ecs_query_t *query -
query
Getter for field:ecs_query_t *query -
query
Setter for field:ecs_query_t *query -
tick_source$layout
Layout for field:ecs_entity_t tick_source -
tick_source$offset
public static final long tick_source$offset()Offset for field:ecs_entity_t tick_source -
tick_source
Getter for field:ecs_entity_t tick_source -
tick_source
Setter for field:ecs_entity_t tick_source -
multi_threaded$layout
Layout for field:_Bool multi_threaded -
multi_threaded$offset
public static final long multi_threaded$offset()Offset for field:_Bool multi_threaded -
multi_threaded
Getter for field:_Bool multi_threaded -
multi_threaded
Setter for field:_Bool multi_threaded -
immediate$layout
Layout for field:_Bool immediate -
immediate$offset
public static final long immediate$offset()Offset for field:_Bool immediate -
immediate
Getter for field:_Bool immediate -
immediate
Setter for field:_Bool immediate -
name$layout
Layout for field:const char *name -
name$offset
public static final long name$offset()Offset for field:const char *name -
name
Getter for field:const char *name -
name
Setter for field:const char *name -
ctx$layout
Layout for field:void *ctx -
ctx$offset
public static final long ctx$offset()Offset for field:void *ctx -
ctx
Getter for field:void *ctx -
ctx
Setter for field:void *ctx -
callback_ctx$layout
Layout for field:void *callback_ctx -
callback_ctx$offset
public static final long callback_ctx$offset()Offset for field:void *callback_ctx -
callback_ctx
Getter for field:void *callback_ctx -
callback_ctx
Setter for field:void *callback_ctx -
run_ctx$layout
Layout for field:void *run_ctx -
run_ctx$offset
public static final long run_ctx$offset()Offset for field:void *run_ctx -
run_ctx
Getter for field:void *run_ctx -
run_ctx
Setter for field:void *run_ctx -
ctx_free$layout
Layout for field:ecs_ctx_free_t ctx_free -
ctx_free$offset
public static final long ctx_free$offset()Offset for field:ecs_ctx_free_t ctx_free -
ctx_free
Getter for field:ecs_ctx_free_t ctx_free -
ctx_free
Setter for field:ecs_ctx_free_t ctx_free -
callback_ctx_free$layout
Layout for field:ecs_ctx_free_t callback_ctx_free -
callback_ctx_free$offset
public static final long callback_ctx_free$offset()Offset for field:ecs_ctx_free_t callback_ctx_free -
callback_ctx_free
Getter for field:ecs_ctx_free_t callback_ctx_free -
callback_ctx_free
Setter for field:ecs_ctx_free_t callback_ctx_free -
run_ctx_free$layout
Layout for field:ecs_ctx_free_t run_ctx_free -
run_ctx_free$offset
public static final long run_ctx_free$offset()Offset for field:ecs_ctx_free_t run_ctx_free -
run_ctx_free
Getter for field:ecs_ctx_free_t run_ctx_free -
run_ctx_free
Setter for field:ecs_ctx_free_t run_ctx_free -
time_spent$layout
Layout for field:float time_spent -
time_spent$offset
public static final long time_spent$offset()Offset for field:float time_spent -
time_spent
Getter for field:float time_spent -
time_spent
Setter for field:float time_spent -
time_passed$layout
Layout for field:float time_passed -
time_passed$offset
public static final long time_passed$offset()Offset for field:float time_passed -
time_passed
Getter for field:float time_passed -
time_passed
Setter for field:float time_passed -
last_frame$layout
Layout for field:int64_t last_frame -
last_frame$offset
public static final long last_frame$offset()Offset for field:int64_t last_frame -
last_frame
Getter for field:int64_t last_frame -
last_frame
Setter for field:int64_t last_frame -
dtor$layout
Layout for field:flecs_poly_dtor_t dtor -
dtor$offset
public static final long dtor$offset()Offset for field:flecs_poly_dtor_t dtor -
dtor
Getter for field:flecs_poly_dtor_t dtor -
dtor
Setter for field:flecs_poly_dtor_t dtor -
asSlice
Obtains a slice ofarrayParamwhich selects the array element atindex. The returned segment has addressarrayParam.address() + index * layout().byteSize() -
sizeof
public static long sizeof()The size (in bytes) of this struct -
allocate
Allocate a segment of sizelayout().byteSize()usingallocator -
allocateArray
Allocate an array of sizeelementCountusingallocator. The returned segment has sizeelementCount * layout().byteSize(). -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizelayout().byteSize() -
reinterpret
public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup) Reinterpretsaddrusing targetarenaandcleanupAction(if any). The returned segment has sizeelementCount * layout().byteSize()
-