void Posted August 25, 2010 Posted August 25, 2010 How i can access to 'nodes' variable from C code? namespace MyNamespace { ... Node nodes[]; .. }
frustum Posted August 25, 2010 Posted August 25, 2010 'nodes' is an array and you can pass it to c++ function. Look through samples/Api/Arrays/ sample.
void Posted August 26, 2010 Author Posted August 26, 2010 'nodes' is an array and you can pass it to c++ function. Look through samples/Api/Arrays/ sample. Can one working only trough Interpreter class instance get access to some unigine script variable wich is not passed as argument? Need any sample about usage: class Interpreter { .. Variable getVariable(const char *name) const; Vector<Variable> &getArrayVector(int id) const; Map<Variable,Variable> &getArrayMap(int id) const; .. };
frustum Posted August 27, 2010 Posted August 27, 2010 I have added Interpter::getArrayID(const char*) function for internal arrays. You can use this ID as argument for Interpter::getArrayVector() and Interpter::getArrayMap() functions.
Recommended Posts