MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / exportBaseTypes

Method exportBaseTypes

Engine/source/console/consoleXMLExport.cpp:44–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 void XMLExport::exportBaseTypes()
45 {
46 mXML->pushNewElement("BaseTypes");
47
48 ConsoleBaseType *walk = ConsoleBaseType::getListHead();
49 while( walk != NULL )
50 {
51 mXML->pushNewElement("BaseType");
52
53 mXML->setAttribute("name", walk->getTypeName());
54 mXML->setAttribute("id", avar("%i",walk->getTypeID()));
55 mXML->setAttribute("size", avar("%i",walk->getTypeSize()));
56 mXML->setAttribute("doc", walk->getDocString() ? walk->getDocString() : "" );
57
58 mXML->popElement(); // Basetype
59
60 walk = walk->getListNext();
61 }
62
63 mXML->popElement(); // Basetypes
64
65 }
66
67 void XMLExport::exportEntryTypes()
68 {

Callers

nothing calls this directly

Calls 9

avarFunction · 0.85
pushNewElementMethod · 0.80
getTypeIDMethod · 0.80
getTypeSizeMethod · 0.80
popElementMethod · 0.80
getListNextMethod · 0.80
setAttributeMethod · 0.45
getTypeNameMethod · 0.45
getDocStringMethod · 0.45

Tested by

no test coverage detected