| 1236 | } |
| 1237 | |
| 1238 | PhysicsServer3D *PhysicsServer3DManager::new_server(const String &p_name) { |
| 1239 | int id = find_server_id(p_name); |
| 1240 | if (id == -1) { |
| 1241 | return nullptr; |
| 1242 | } else { |
| 1243 | Variant ret; |
| 1244 | Callable::CallError ce; |
| 1245 | physics_servers[id].create_callback.callp(nullptr, 0, ret, ce); |
| 1246 | ERR_FAIL_COND_V(ce.error != Callable::CallError::CALL_OK, nullptr); |
| 1247 | return Object::cast_to<PhysicsServer3D>(ret.get_validated_object()); |
| 1248 | } |
| 1249 | } |
| 1250 | |
| 1251 | PhysicsServer3DManager::PhysicsServer3DManager() { |
| 1252 | singleton = this; |
no test coverage detected