MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / push_template

Method push_template

extlibs/vili/src/parser/parser_state.cpp:129–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127 }
128
129 void state::push_template()
130 {
131 node& top = *m_stack.top().item;
132 if (top.empty())
133 m_templates[m_template_identifier] = top;
134 else
135 {
136 m_templates[m_template_identifier] = top.back();
137 top.erase(m_template_identifier);
138 }
139 m_template_identifier.clear();
140 }
141
142 void state::push_template(
143 const std::string& template_name, const vili::node& node_template)

Callers 6

getAnimationTemplatesFunction · 0.80
getSceneTemplatesFunction · 0.80
getConfigTemplatesFunction · 0.80
getMountTemplatesFunction · 0.80
getGameObjectTemplatesFunction · 0.80
applyMethod · 0.80

Calls 5

topMethod · 0.80
emptyMethod · 0.45
eraseMethod · 0.45
clearMethod · 0.45
emplaceMethod · 0.45

Tested by

no test coverage detected