MCPcopy Create free account
hub / github.com/anjo76/angelscript / GetMetadataForTypeProperty

Method GetMetadataForTypeProperty

sdk/add_on/scriptbuilder/scriptbuilder.cpp:1111–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1109}
1110
1111vector<string> CScriptBuilder::GetMetadataForTypeProperty(int typeId, int varIdx)
1112{
1113 map<int, SClassMetadata>::iterator typeIt = classMetadataMap.find(typeId);
1114 if(typeIt == classMetadataMap.end()) return vector<string>();
1115
1116 map<int, vector<string> >::iterator propIt = typeIt->second.varMetadataMap.find(varIdx);
1117 if(propIt == typeIt->second.varMetadataMap.end()) return vector<string>();
1118
1119 return propIt->second;
1120}
1121
1122vector<string> CScriptBuilder::GetMetadataForTypeMethod(int typeId, asIScriptFunction *method)
1123{

Callers 1

TestFunction · 0.80

Calls 2

findMethod · 0.80
endMethod · 0.80

Tested by 1

TestFunction · 0.64