Skip to content

API: Script Keys and Objects

Craig Minihan edited this page Nov 8, 2016 · 23 revisions

#ScriptObjectKeys ScriptObjectKeys and ScriptObjectKey are the underpinnings of the type system used by all scriptable objects in libscriptobject. A key is made up from a field name and type (string, int, null, etc.), objects have one or more keys which ultimately describe the type of the object. Consider:

    var x = { pi: 3.14159, theAnswer: 42};
    var y = { theAnswer: 42, pi: 3.14159 };

These two objects have fields x and y and which both have the same types.

Clone this wiki locally