| 1120 | } |
| 1121 | |
| 1122 | vector<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 | |
| 1139 | string GetAbsolutePath(const string &file) |