Looking for info on the NEXUS faction in the game? It's in the Warzone Encyclopaedia
.classify()
- Aubergine
Owned by Aubergine
Classifies an object using the installed taxonomy in order to derive an "Object Key".
Syntax
var objKey = NEXUS.classify(obj);
Parameters
Parameter | Mandatory | Type | Notes | NEXUS Version |
---|---|---|---|---|
obj | Object | The object to classify, preferably something the installed classification taxonomy will understand! | v0.1 |
Return value
Value | Type | Notes | NEXUS Version |
---|---|---|---|
<object key> | String | If the object can be classified, it's "object key" will be returned as a string. | v0.1 |
<error> | Error | Is it a bird? Is it a plane? No, it's an Incoming. Laser. Satellite. Strike. | v0.1 and above |
Example
// assuming we have at least one droid var myDroid = enumDroid(me)[0]; var objKey = NEXUS.classify(myDroid);
See also
- Classify Subroutines – generate object keys
A Classify Subroutine must be installed before you can use this function.
Contents
Assimilate:
API Browser
Observe:
- NEXUS() — The API namespace for NEXUS, that doubles up as a function for triggering tasks.
- .infiltrate() — Infiltrates core systems so that NEXUS can absorb them.
- .suffix() — Determines the appropriate event key suffix based on the passed in object.
- .fn — Defines helper functions available to all NEXUS subroutines (and external scripts).
- .actions
- .classify() — Classifies an object using the installed taxonomy in order to derive an "Object Key".
- .default — Stores various defaults for NEXUS subroutines.