void XMLExport::exportBaseTypes() { mXML->pushNewElement("BaseTypes"); ConsoleBaseType *walk = ConsoleBaseType::getListHead(); while( walk != NULL ) { mXML->pushNewElement("BaseType"); mXML->setAttribute("name", walk->getTypeName()); mXML->setAttribute("id", avar("%i",walk->getTypeID())); mXML->setAttribute("size", avar("%i",walk->getTypeSize())); mXML->setAttribute("doc", walk->getDocString() ? walk->getDocString() : "" ); mXML->popElement(); // Basetype walk = walk->getListNext(); } mXML->popElement(); // Basetypes }
const char *getData(S32 type, void *dptr, S32 index, const EnumTable *tbl, BitSet32 flag) { ConsoleBaseType *cbt = ConsoleBaseType::getType(type); AssertFatal(cbt, "Con::getData - could not resolve type ID!"); return cbt->getData((void *) (((const char *)dptr) + index * cbt->getTypeSize()), tbl, flag); }