Table of Contents

Method TryGet

Namespace
GrindFest.Content
Assembly
GrindFest.dll

TryGet(string, out Loadable<Object>)

Linear lookup. Deliberately not a dictionary yet: the call sites are per-acquire, not per-frame, and a cache would have to be invalidated when a mod registers another directory (a later registration wins, because ContentLoadManager searches directories in reverse registration order). Build the index once the call pattern is known.

public bool TryGet(string key, out Loadable<Object> asset)

Parameters

key string
asset Loadable<Object>

Returns

bool