MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / GetMapLocation

Method GetMapLocation

ogsr_engine/xrGame/map_manager.cpp:218–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218CMapLocation* CMapManager::GetMapLocation(const shared_str& spot_type, u16 id)
219{
220 FindLocationBySpotID key(spot_type, id);
221 Locations_it it = std::find_if(Locations().begin(), Locations().end(), key);
222 if (it != Locations().end())
223 return (*it).location;
224
225 return 0;
226}
227
228void CMapManager::Update()
229{

Callers 6

map_change_spot_hintFunction · 0.80
map_change_spot_serFunction · 0.80
LinkedMapLocationMethod · 0.80
InitMethod · 0.80
OnApplyMethod · 0.80
ExitMethod · 0.80

Calls 3

find_ifClass · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected