Kohi Game Engine
khandle16 Struct Reference

#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...
 

Detailed Description

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.

Field Documentation

◆ generation

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.

◆ handle_index

u16 handle_index

Index into a resource table. Considered invalid if == INVALID_ID_U16.


The documentation for this struct was generated from the following file: