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

Function map_add_object_spot

ogsr_engine/xrGame/level_script.cpp:235–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233Fvector vertex_position(u32 level_vertex_id) { return (ai().level_graph().vertex_position(level_vertex_id)); }
234
235void map_add_object_spot(u16 id, LPCSTR spot_type, LPCSTR text)
236{
237 CMapLocation* ml = Level().MapManager().AddMapLocation(spot_type, id);
238 if (text && xr_strlen(text))
239 ml->SetHint(text);
240}
241
242void map_add_object_spot_ser(u16 id, LPCSTR spot_type, LPCSTR text)
243{

Callers

nothing calls this directly

Calls 3

AddMapLocationMethod · 0.80
SetHintMethod · 0.80
xr_strlenFunction · 0.50

Tested by

no test coverage detected