MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / createNode

Method createNode

Engine/source/gui/worldEditor/creator.cpp:164–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162//------------------------------------------------------------------------------
163
164CreatorTree::Node * CreatorTree::createNode(const char * name, const char * value, bool group, Node * parent)
165{
166 Node * node = new Node();
167 node->mId = mCurId++;
168 node->mName = name ? StringTable->insert(name) : 0;
169 node->mValue = value ? StringTable->insert(value) : 0;
170 node->mFlags.set(Node::Group, group);
171
172 // add to the parent group
173 if(parent)
174 {
175 node->mParent = parent;
176 if(!addNode(parent, node))
177 {
178 delete node;
179 return(0);
180 }
181 }
182
183 return(node);
184}
185
186//------------------------------------------------------------------------------
187

Callers 1

creator.cppFile · 0.45

Calls 2

insertMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected