For the complete documentation index, see llms.txt. This page is also available as Markdown.

Hash maps

There are 4 general purpose hash map implementations:

For inkHashMap and inkWeakHashMap, all custom classes extend IScriptable, therefore they can be used as values in these hash maps.

let map = new inkHashMap();
hashMap.Insert(TDBID.ToNumber(t"key1"), MyClass.Create(1));
hashMap.Insert(TDBID.ToNumber(t"key2"), MyClass.Create(2));

let value: ref<MyClass> = map.Get(TDBID.ToNumber(t"key1")) as MyClass;

Last updated