MCPcopy Create free account
hub / github.com/comaps/comaps / PokeSearchInViewport

Method PokeSearchInViewport

libs/map/search_api.cpp:267–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267void SearchAPI::PokeSearchInViewport(bool forceSearch)
268{
269 if (!m_isViewportInitialized || !IsViewportSearchActive())
270 return;
271
272 // Copy is intentional here, to skip possible duplicating requests.
273 auto params = m_searchIntents[static_cast<size_t>(Mode::Viewport)].m_params;
274 SetViewportIfPossible(params);
275 params.m_position = m_delegate.GetCurrentPosition();
276 params.m_onResults = ViewportSearchCallback(m_viewport, *this, m_viewportParams.m_onCompleted);
277
278 Search(std::move(params), forceSearch);
279}
280
281void SearchAPI::CancelSearch(Mode mode)
282{

Calls 2

GetCurrentPositionMethod · 0.45

Tested by

no test coverage detected