| 115 | } |
| 116 | |
| 117 | void MovementObject::GetChildren(std::vector<Object*>* ret_children) { |
| 118 | if (!env_object_attach_data.empty()) { |
| 119 | std::vector<AttachedEnvObject> attached_env_objects; |
| 120 | Deserialize(env_object_attach_data, attached_env_objects); |
| 121 | ret_children->reserve(attached_env_objects.size()); |
| 122 | for (auto& attached_env_object : attached_env_objects) { |
| 123 | Object* obj = attached_env_object.direct_ptr; |
| 124 | if (obj) { |
| 125 | ret_children->push_back(attached_env_object.direct_ptr); |
| 126 | } |
| 127 | } |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | void MovementObject::GetBottomUpCompleteChildren(std::vector<Object*>* ret_children) { |
| 132 | if (!env_object_attach_data.empty()) { |
nothing calls this directly
no test coverage detected