| 112 | } |
| 113 | |
| 114 | static CScriptArray* AS_GetFloatingContents(IMContainer* element) { |
| 115 | asIScriptContext* ctx = asGetActiveContext(); |
| 116 | asIScriptEngine* engine = ctx->GetEngine(); |
| 117 | asITypeInfo* arrayType = engine->GetTypeInfoById(engine->GetTypeIdByDecl("array<IMElement@>")); |
| 118 | CScriptArray* array = CScriptArray::Create(arrayType, (asUINT)0); |
| 119 | |
| 120 | std::vector<IMElement*> vals = element->getFloatingContents(); |
| 121 | |
| 122 | array->Reserve(vals.size()); |
| 123 | |
| 124 | for (auto& val : vals) { |
| 125 | array->InsertLast((void*)&val); |
| 126 | } |
| 127 | |
| 128 | return array; |
| 129 | } |
| 130 | |
| 131 | static CScriptArray* AS_GetContainers(IMDivider* element) { |
| 132 | asIScriptContext* ctx = asGetActiveContext(); |
nothing calls this directly
no test coverage detected