interface
| 1101 | |
| 1102 | // interface |
| 1103 | int asCModule::GetGlobalVar(asUINT index, const char **out_name, const char **out_nameSpace, int *out_typeId, bool *out_isConst) const |
| 1104 | { |
| 1105 | const asCGlobalProperty *prop = m_scriptGlobals.Get(index); |
| 1106 | if (!prop) return asINVALID_ARG; |
| 1107 | |
| 1108 | if( out_name ) |
| 1109 | *out_name = prop->name.AddressOf(); |
| 1110 | if( out_nameSpace ) |
| 1111 | *out_nameSpace = prop->nameSpace->name.AddressOf(); |
| 1112 | if( out_typeId ) |
| 1113 | *out_typeId = m_engine->GetTypeIdFromDataType(prop->type); |
| 1114 | if( out_isConst ) |
| 1115 | *out_isConst = prop->type.IsReadOnly(); |
| 1116 | |
| 1117 | return asSUCCESS; |
| 1118 | } |
| 1119 | |
| 1120 | // interface |
| 1121 | asUINT asCModule::GetObjectTypeCount() const |