Kohi Game Engine
|
#include <khandle.h>
Data Fields | |
u16 | handle_index |
Index into a resource table. Considered invalid if == INVALID_ID_U16. More... | |
u16 | generation |
A generation used to indicate if a handle is stale. Typically incremented when a resource is updated. Considered invalid if == INVALID_ID_U16. More... | |
khandle16 - a 16-bit implementation of the khandle that uses one u16 for the index and a second for the uniqueid. This results in a much smaller handle, although coming with a limitation of a maximum of 65534 values (65535 is INVALID_ID_U16) as a maximum array size for anything this references.
u16 generation |
A generation used to indicate if a handle is stale. Typically incremented when a resource is updated. Considered invalid if == INVALID_ID_U16.
u16 handle_index |
Index into a resource table. Considered invalid if == INVALID_ID_U16.