Class EcsTimer
java.lang.Object
com.github.elebras1.flecs.EcsTimer
struct EcsTimer {
float timeout;
float time;
float overshoot;
int32_t fired_count;
_Bool active;
_Bool single_shot;
}
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanactive(MemorySegment struct) Getter for field:_Bool activestatic voidactive(MemorySegment struct, boolean fieldValue) Setter for field:_Bool activestatic final ValueLayout.OfBooleanLayout for field:_Bool activestatic final longOffset for field:_Bool activestatic 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 intfired_count(MemorySegment struct) Getter for field:int32_t fired_countstatic voidfired_count(MemorySegment struct, int fieldValue) Setter for field:int32_t fired_countstatic final ValueLayout.OfIntLayout for field:int32_t fired_countstatic final longOffset for field:int32_t fired_countstatic final GroupLayoutlayout()The layout of this structstatic floatovershoot(MemorySegment struct) Getter for field:float overshootstatic voidovershoot(MemorySegment struct, float fieldValue) Setter for field:float overshootstatic final ValueLayout.OfFloatLayout for field:float overshootstatic final longOffset for field:float overshootstatic 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 booleansingle_shot(MemorySegment struct) Getter for field:_Bool single_shotstatic voidsingle_shot(MemorySegment struct, boolean fieldValue) Setter for field:_Bool single_shotstatic final ValueLayout.OfBooleanLayout for field:_Bool single_shotstatic final longOffset for field:_Bool single_shotstatic longsizeof()The size (in bytes) of this structstatic floattime(MemorySegment struct) Getter for field:float timestatic voidtime(MemorySegment struct, float fieldValue) Setter for field:float timestatic final ValueLayout.OfFloatLayout for field:float timestatic final longOffset for field:float timestatic floattimeout(MemorySegment struct) Getter for field:float timeoutstatic voidtimeout(MemorySegment struct, float fieldValue) Setter for field:float timeoutstatic final ValueLayout.OfFloatLayout for field:float timeoutstatic final longOffset for field:float timeout
-
Method Details
-
layout
The layout of this struct -
timeout$layout
Layout for field:float timeout -
timeout$offset
public static final long timeout$offset()Offset for field:float timeout -
timeout
Getter for field:float timeout -
timeout
Setter for field:float timeout -
time$layout
Layout for field:float time -
time$offset
public static final long time$offset()Offset for field:float time -
time
Getter for field:float time -
time
Setter for field:float time -
overshoot$layout
Layout for field:float overshoot -
overshoot$offset
public static final long overshoot$offset()Offset for field:float overshoot -
overshoot
Getter for field:float overshoot -
overshoot
Setter for field:float overshoot -
fired_count$layout
Layout for field:int32_t fired_count -
fired_count$offset
public static final long fired_count$offset()Offset for field:int32_t fired_count -
fired_count
Getter for field:int32_t fired_count -
fired_count
Setter for field:int32_t fired_count -
active$layout
Layout for field:_Bool active -
active$offset
public static final long active$offset()Offset for field:_Bool active -
active
Getter for field:_Bool active -
active
Setter for field:_Bool active -
single_shot$layout
Layout for field:_Bool single_shot -
single_shot$offset
public static final long single_shot$offset()Offset for field:_Bool single_shot -
single_shot
Getter for field:_Bool single_shot -
single_shot
Setter for field:_Bool single_shot -
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()
-