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

Method GetMetadataForTypeMethod

sdk/add_on/scriptbuilder/scriptbuilder.cpp:1122–1136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1120}
1121
1122vector<string> CScriptBuilder::GetMetadataForTypeMethod(int typeId, asIScriptFunction *method)
1123{
1124 if( method )
1125 {
1126 map<int, SClassMetadata>::iterator typeIt = classMetadataMap.find(typeId);
1127 if (typeIt == classMetadataMap.end()) return vector<string>();
1128
1129 map<int, vector<string> >::iterator methodIt = typeIt->second.funcMetadataMap.find(method->GetId());
1130 if(methodIt == typeIt->second.funcMetadataMap.end()) return vector<string>();
1131
1132 return methodIt->second;
1133 }
1134
1135 return vector<string>();
1136}
1137#endif
1138
1139string GetAbsolutePath(const string &file)

Callers 1

TestFunction · 0.80

Calls 3

findMethod · 0.80
endMethod · 0.80
GetIdMethod · 0.80

Tested by 1

TestFunction · 0.64