reference monoe.resources

Lua API Reference

Provides useful functions that makes loading easier.

is_loadable

Returns true if the resource can be loaded.

Parameters

NameTypeDescription
Tany

Returns


_load_res

Internal loader function. Creates a cache entry if none exists.

Parameters

NameTypeDescription
TT
pathstring

Returns


monoe.resources.preload

Preloads a resource and pins it in memory. Pinned resources are not freed during collection.

Parameters

NameTypeDescription
TT
pathstringResource's path

monoe.resources.load

Loads a resource for temporary usage. Unpinned resources are freed on the next collection.

Parameters

NameTypeDescription
TT
pathstring

Returns