Skip to main content

Module slot_cache

Module slot_cache 

Source
Expand description

Pre-fetched inventory slot data — populated by the JNI layer before each render frame, consumed by [WidgetKind::InvSlot] widgets.

Structs§

SlotData
One slot’s render data, fetched once per frame.

Functions§

get_slot
Read cached slot data for the given slot index. Returns None if out of range.
set_slot_cache
Replace the cached slot data (called by the JNI bridge before rendering).
slot_count
Number of cached slots.