Skip to content

Instantly share code, notes, and snippets.

@EricTRocks
Created October 12, 2016 21:31
Show Gist options
  • Save EricTRocks/19b4d4fc4f3c88a68209bb5f5de09a01 to your computer and use it in GitHub Desktop.
Save EricTRocks/19b4d4fc4f3c88a68209bb5f5de09a01 to your computer and use it in GitHub Desktop.
Create Dictionaries in Fabric Engine KL
require Math;
operator entry() {
// String to Vec3 Dict
Vec3 myDict[String];
myDict['bob'] = Vec3(1,2,3);
report(myDict['bob']);
// Integer to String Dict
String myStrDict[Integer];
myStrDict[1] = 'joe';
report(myStrDict[1]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment