| 164 | } |
| 165 | |
| 166 | void PathPointObject::Draw() { |
| 167 | if (g_debug_runtime_disable_pathpoint_object_draw) { |
| 168 | return; |
| 169 | } |
| 170 | |
| 171 | if (scenegraph_->map_editor->IsTypeEnabled(_path_point_object) && |
| 172 | !Graphics::Instance()->media_mode() && |
| 173 | scenegraph_->map_editor->state_ != MapEditor::kInGame) { |
| 174 | DebugDraw::Instance()->AddWireSphere(GetTranslation(), 0.5f, vec4(0.0f, 0.5f, 0.5f, 0.5f), _delete_on_draw); |
| 175 | for (int connection_id : connection_ids) { |
| 176 | Object* obj = scenegraph_->GetObjectFromID(connection_id); |
| 177 | DebugDraw::Instance()->AddLine(GetTranslation(), obj->GetTranslation(), vec4(0.0f, 0.5f, 0.5f, 0.5f), _delete_on_draw); |
| 178 | } |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | void PathPointObject::RemapReferences(std::map<int, int> id_map) { |
| 183 | for (int& connection_id : connection_ids) { |
nothing calls this directly
no test coverage detected