Kohi Game Engine
kasset Struct Reference

a structure meant to be included as the first member in the struct of all asset types for quick casting purposes. More...

#include <kasset_types.h>

Data Fields

identifier id
 A system-wide unique identifier for the asset. More...
 
u32 generation
 Increments every time the asset is loaded/reloaded. Otherwise INVALID_ID. More...
 
u64 size
 
kname name
 
kname package_name
 
kasset_type type
 The asset type. More...
 
kasset_metadata meta
 Metadata for the asset. More...
 
u32 file_watch_id
 The file watch id, if the asset is being watched. Otherwise INVALID_ID. More...
 

Detailed Description

a structure meant to be included as the first member in the struct of all asset types for quick casting purposes.

Field Documentation

◆ file_watch_id

u32 file_watch_id

The file watch id, if the asset is being watched. Otherwise INVALID_ID.

◆ generation

u32 generation

Increments every time the asset is loaded/reloaded. Otherwise INVALID_ID.

◆ id

A system-wide unique identifier for the asset.

◆ meta

Metadata for the asset.

◆ name

kname name

◆ package_name

kname package_name

◆ size

u64 size

◆ type

The asset type.


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