WildStar:API types

From AddOn Studio
Revision as of 23:18, 13 May 2014 by Bear (talk | contribs) (Created page with "__NOWYSIWYG__{{wsapitype}} This is the main WildStar API 'value type' reference. The UI API uses rather complex values using Lua native types for some of its parameters a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Uiapitype

This is the main WildStar API 'value type' reference. The UI API uses rather complex values using Lua native types for some of its parameters and return values. Rather than re-explain them every time they're used. This reference provides list of 'distinct' Lua based data types used in WildStar. See also API events.

Reference

Simple types

nil - the Lua 'nil' type. a type, or variable state, which has no value
boolean - a Lua 'boolean' type, which holds Lua 'false' or 'true' values
number - a regular Lua number, which for WS is a 'double' size floating point number
string - a regular Lua string, always 1 byte per char. WS utf-8 encodes non-ASCII chars
function - a regular Lua function, which any variable can reference.
table - a regular Lua table, which any variable can reference.
userdata - a regular Lua userdata, which any variable can reference.

Complex types

bagId - Numbers representing bags you carry, bank bags, bank window, etc
itemString - A structured string holds item data, like Created by, itemId, ...
itemLink - A string that is clickable if shown in-game, contains an itemString.
itemType - String classification of an item, ["Armor", "Consumable", ...]
unitId - An identifier that specifies a unit or unit type ["target", "party1", ...]

Data types

Unit [userdata] - target-able unit data. prefixed unit, unitPlayer, unitTarget
Money [userdata] - currency data

Module types

Addon - actual AddOn instance type. see UI AddOn.
Package - actual library AddOn instance type. see UI AddOn.

See also