MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / LoadSequence

Method LoadSequence

ogsr_engine/xrGame/PhraseScript.cpp:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31template <class T>
32void CPhraseScript::LoadSequence(CUIXml* uiXml, XML_NODE* phrase_node, LPCSTR tag, T& str_vector)
33{
34 int tag_num = uiXml->GetNodesNum(phrase_node, tag);
35 str_vector.clear();
36 for (int i = 0; i < tag_num; i++)
37 {
38 LPCSTR tag_text = uiXml->Read(phrase_node, tag, i, NULL);
39 str_vector.push_back(tag_text);
40 }
41}
42
43bool CPhraseScript::CheckInfo(const CInventoryOwner* pOwner) const
44{

Callers

nothing calls this directly

Calls 4

GetNodesNumMethod · 0.80
clearMethod · 0.45
ReadMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected