Class ecs_system_t

java.lang.Object
com.github.elebras1.flecs.ecs_system_t

public class ecs_system_t extends Object
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 Details

    • layout

      public static final GroupLayout layout()
      The layout of this struct
    • hdr$layout

      public static final GroupLayout 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

      public static MemorySegment hdr(MemorySegment struct)
      Getter for field:
      ecs_header_t hdr
      
    • hdr

      public static void hdr(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_header_t hdr
      
    • run$layout

      public static final AddressLayout 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

      public static MemorySegment run(MemorySegment struct)
      Getter for field:
      ecs_run_action_t run
      
    • run

      public static void run(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_run_action_t run
      
    • action$layout

      public static final AddressLayout 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

      public static MemorySegment action(MemorySegment struct)
      Getter for field:
      ecs_iter_action_t action
      
    • action

      public static void action(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_iter_action_t action
      
    • query$layout

      public static final AddressLayout 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

      public static MemorySegment query(MemorySegment struct)
      Getter for field:
      ecs_query_t *query
      
    • query

      public static void query(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_query_t *query
      
    • tick_source$layout

      public static final ValueLayout.OfLong 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

      public static long tick_source(MemorySegment struct)
      Getter for field:
      ecs_entity_t tick_source
      
    • tick_source

      public static void tick_source(MemorySegment struct, long fieldValue)
      Setter for field:
      ecs_entity_t tick_source
      
    • multi_threaded$layout

      public static final ValueLayout.OfBoolean 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

      public static boolean multi_threaded(MemorySegment struct)
      Getter for field:
      _Bool multi_threaded
      
    • multi_threaded

      public static void multi_threaded(MemorySegment struct, boolean fieldValue)
      Setter for field:
      _Bool multi_threaded
      
    • immediate$layout

      public static final ValueLayout.OfBoolean immediate$layout()
      Layout for field:
      _Bool immediate
      
    • immediate$offset

      public static final long immediate$offset()
      Offset for field:
      _Bool immediate
      
    • immediate

      public static boolean immediate(MemorySegment struct)
      Getter for field:
      _Bool immediate
      
    • immediate

      public static void immediate(MemorySegment struct, boolean fieldValue)
      Setter for field:
      _Bool immediate
      
    • name$layout

      public static final AddressLayout name$layout()
      Layout for field:
      const char *name
      
    • name$offset

      public static final long name$offset()
      Offset for field:
      const char *name
      
    • name

      public static MemorySegment name(MemorySegment struct)
      Getter for field:
      const char *name
      
    • name

      public static void name(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      const char *name
      
    • ctx$layout

      public static final AddressLayout ctx$layout()
      Layout for field:
      void *ctx
      
    • ctx$offset

      public static final long ctx$offset()
      Offset for field:
      void *ctx
      
    • ctx

      public static MemorySegment ctx(MemorySegment struct)
      Getter for field:
      void *ctx
      
    • ctx

      public static void ctx(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *ctx
      
    • callback_ctx$layout

      public static final AddressLayout 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

      public static MemorySegment callback_ctx(MemorySegment struct)
      Getter for field:
      void *callback_ctx
      
    • callback_ctx

      public static void callback_ctx(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *callback_ctx
      
    • run_ctx$layout

      public static final AddressLayout 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

      public static MemorySegment run_ctx(MemorySegment struct)
      Getter for field:
      void *run_ctx
      
    • run_ctx

      public static void run_ctx(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      void *run_ctx
      
    • ctx_free$layout

      public static final AddressLayout 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

      public static MemorySegment ctx_free(MemorySegment struct)
      Getter for field:
      ecs_ctx_free_t ctx_free
      
    • ctx_free

      public static void ctx_free(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_ctx_free_t ctx_free
      
    • callback_ctx_free$layout

      public static final AddressLayout 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

      public static MemorySegment callback_ctx_free(MemorySegment struct)
      Getter for field:
      ecs_ctx_free_t callback_ctx_free
      
    • callback_ctx_free

      public static void callback_ctx_free(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_ctx_free_t callback_ctx_free
      
    • run_ctx_free$layout

      public static final AddressLayout 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

      public static MemorySegment run_ctx_free(MemorySegment struct)
      Getter for field:
      ecs_ctx_free_t run_ctx_free
      
    • run_ctx_free

      public static void run_ctx_free(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      ecs_ctx_free_t run_ctx_free
      
    • time_spent$layout

      public static final ValueLayout.OfFloat 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

      public static float time_spent(MemorySegment struct)
      Getter for field:
      float time_spent
      
    • time_spent

      public static void time_spent(MemorySegment struct, float fieldValue)
      Setter for field:
      float time_spent
      
    • time_passed$layout

      public static final ValueLayout.OfFloat 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

      public static float time_passed(MemorySegment struct)
      Getter for field:
      float time_passed
      
    • time_passed

      public static void time_passed(MemorySegment struct, float fieldValue)
      Setter for field:
      float time_passed
      
    • last_frame$layout

      public static final ValueLayout.OfLong 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

      public static long last_frame(MemorySegment struct)
      Getter for field:
      int64_t last_frame
      
    • last_frame

      public static void last_frame(MemorySegment struct, long fieldValue)
      Setter for field:
      int64_t last_frame
      
    • dtor$layout

      public static final AddressLayout 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

      public static MemorySegment dtor(MemorySegment struct)
      Getter for field:
      flecs_poly_dtor_t dtor
      
    • dtor

      public static void dtor(MemorySegment struct, MemorySegment fieldValue)
      Setter for field:
      flecs_poly_dtor_t dtor
      
    • asSlice

      public static MemorySegment asSlice(MemorySegment array, long index)
      Obtains a slice of arrayParam which selects the array element at index. The returned segment has address arrayParam.address() + index * layout().byteSize()
    • sizeof

      public static long sizeof()
      The size (in bytes) of this struct
    • allocate

      public static MemorySegment allocate(SegmentAllocator allocator)
      Allocate a segment of size layout().byteSize() using allocator
    • allocateArray

      public static MemorySegment allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of size elementCount using allocator. The returned segment has size elementCount * layout().byteSize().
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size layout().byteSize()
    • reinterpret

      public static MemorySegment reinterpret(MemorySegment addr, long elementCount, Arena arena, Consumer<MemorySegment> cleanup)
      Reinterprets addr using target arena and cleanupAction (if any). The returned segment has size elementCount * layout().byteSize()