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

Method exportEntryTypes

Engine/source/console/consoleXMLExport.cpp:67–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 void XMLExport::exportEntryTypes()
68 {
69
70 const char *typeNames [] = {
71 "ScriptCallbackType", "GroupMarker", "OverloadMarker", "InvalidFunctionType",
72 "ConsoleFunctionType", "StringCallbackType", "IntCallbackType", "FloatCallbackType",
73 "VoidCallbackType", "BoolCallbackType"
74 };
75
76 S32 typeIds [] = {
77 Namespace::Entry::ScriptCallbackType, Namespace::Entry::GroupMarker, Namespace::Entry::InvalidFunctionType,
78 Namespace::Entry::ConsoleFunctionType, Namespace::Entry::StringCallbackType, Namespace::Entry::IntCallbackType, Namespace::Entry::FloatCallbackType,
79 Namespace::Entry::VoidCallbackType, Namespace::Entry::BoolCallbackType
80 };
81
82 mXML->pushNewElement("EntryTypes");
83
84 S32 numElements = sizeof(typeIds) / sizeof ( S32);
85
86 for (S32 i = 0; i < numElements; i++)
87 {
88 mXML->pushNewElement("EntryType");
89 mXML->setAttribute("name", typeNames[i]);
90 mXML->setAttribute("id", avar("%i", typeIds[i]));
91 mXML->popElement();
92 }
93
94 mXML->popElement(); // EntryTypes
95 }
96
97 void XMLExport::exportNamespaces()
98 {

Callers

nothing calls this directly

Calls 4

avarFunction · 0.85
pushNewElementMethod · 0.80
popElementMethod · 0.80
setAttributeMethod · 0.45

Tested by

no test coverage detected