MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / GetSectionName

Method GetSectionName

external/as_add_on/scriptbuilder/scriptbuilder.cpp:78–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78string CScriptBuilder::GetSectionName(unsigned int idx) const
79{
80 if( idx >= includedScripts.size() ) return "";
81
82#ifdef _WIN32
83 set<string, ci_less>::const_iterator it = includedScripts.begin();
84#else
85 set<string>::const_iterator it = includedScripts.begin();
86#endif
87 while( idx-- > 0 ) it++;
88 return *it;
89}
90
91// Returns 1 if the section was included
92// Returns 0 if the section was not included because it had already been included before

Callers

nothing calls this directly

Calls 1

beginMethod · 0.80

Tested by

no test coverage detected