| 4013 | |
| 4014 | |
| 4015 | Object* Object::resolveObjectLink(int idx) const |
| 4016 | { |
| 4017 | u64 id = 0; |
| 4018 | toObjectID(scene, ((Element&)element).first_property, &id); |
| 4019 | for (auto& connection : scene.m_connections) |
| 4020 | { |
| 4021 | if (connection.to_object == id && connection.from_object != 0) |
| 4022 | { |
| 4023 | Object* obj = scene.m_object_map.find(connection.from_object)->second.object; |
| 4024 | if (obj) |
| 4025 | { |
| 4026 | if (idx == 0) return obj; |
| 4027 | --idx; |
| 4028 | } |
| 4029 | } |
| 4030 | } |
| 4031 | return nullptr; |
| 4032 | } |
| 4033 | |
| 4034 | |
| 4035 | Object* Object::resolveObjectLink(Object::Type type, const char* property, int idx) const |
no test coverage detected