Class ecs_system_desc_t
java.lang.Object
com.github.elebras1.flecs.ecs_system_desc_t
struct ecs_system_desc_t {
int32_t _canary;
ecs_entity_t entity;
ecs_query_desc_t query;
ecs_iter_action_t callback;
ecs_run_action_t run;
void *ctx;
ecs_ctx_free_t ctx_free;
void *callback_ctx;
ecs_ctx_free_t callback_ctx_free;
void *run_ctx;
ecs_ctx_free_t run_ctx_free;
float interval;
int32_t rate;
ecs_entity_t tick_source;
_Bool multi_threaded;
_Bool immediate;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic int_canary(MemorySegment struct) Getter for field:int32_t _canarystatic void_canary(MemorySegment struct, int fieldValue) Setter for field:int32_t _canarystatic final ValueLayout.OfIntLayout for field:int32_t _canarystatic final longOffset for field:int32_t _canarystatic 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(MemorySegment struct) Getter for field:ecs_iter_action_t callbackstatic voidcallback(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_iter_action_t callbackstatic 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 final AddressLayoutLayout for field:ecs_iter_action_t callbackstatic final longOffset for field:ecs_iter_action_t callbackstatic 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 longentity(MemorySegment struct) Getter for field:ecs_entity_t entitystatic voidentity(MemorySegment struct, long fieldValue) Setter for field:ecs_entity_t entitystatic final ValueLayout.OfLongLayout for field:ecs_entity_t entitystatic final longOffset for field:ecs_entity_t entitystatic 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 floatinterval(MemorySegment struct) Getter for field:float intervalstatic voidinterval(MemorySegment struct, float fieldValue) Setter for field:float intervalstatic final ValueLayout.OfFloatLayout for field:float intervalstatic final longOffset for field:float intervalstatic 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 MemorySegmentquery(MemorySegment struct) Getter for field:ecs_query_desc_t querystatic voidquery(MemorySegment struct, MemorySegment fieldValue) Setter for field:ecs_query_desc_t querystatic final GroupLayoutLayout for field:ecs_query_desc_t querystatic final longOffset for field:ecs_query_desc_t querystatic intrate(MemorySegment struct) Getter for field:int32_t ratestatic voidrate(MemorySegment struct, int fieldValue) Setter for field:int32_t ratestatic final ValueLayout.OfIntLayout for field:int32_t ratestatic final longOffset for field:int32_t ratestatic 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_source
-
Method Details
-
layout
The layout of this struct -
_canary$layout
Layout for field:int32_t _canary -
_canary$offset
public static final long _canary$offset()Offset for field:int32_t _canary -
_canary
Getter for field:int32_t _canary -
_canary
Setter for field:int32_t _canary -
entity$layout
Layout for field:ecs_entity_t entity -
entity$offset
public static final long entity$offset()Offset for field:ecs_entity_t entity -
entity
Getter for field:ecs_entity_t entity -
entity
Setter for field:ecs_entity_t entity -
query$layout
Layout for field:ecs_query_desc_t query -
query$offset
public static final long query$offset()Offset for field:ecs_query_desc_t query -
query
Getter for field:ecs_query_desc_t query -
query
Setter for field:ecs_query_desc_t query -
callback$layout
Layout for field:ecs_iter_action_t callback -
callback$offset
public static final long callback$offset()Offset for field:ecs_iter_action_t callback -
callback
Getter for field:ecs_iter_action_t callback -
callback
Setter for field:ecs_iter_action_t callback -
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 -
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 -
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$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 -
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$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 -
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 -
interval$layout
Layout for field:float interval -
interval$offset
public static final long interval$offset()Offset for field:float interval -
interval
Getter for field:float interval -
interval
Setter for field:float interval -
rate$layout
Layout for field:int32_t rate -
rate$offset
public static final long rate$offset()Offset for field:int32_t rate -
rate
Getter for field:int32_t rate -
rate
Setter for field:int32_t rate -
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 -
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()
-