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

Function map_add_user_spot

ogsr_engine/xrGame/level_script.cpp:253–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251#include "graph_engine.h"
252
253u16 map_add_user_spot(u8 level_id, Fvector position, LPCSTR spot_type, LPCSTR text)
254{
255 shared_str level_name = ai().game_graph().header().level((GameGraph::_LEVEL_ID)level_id).name();
256
257 CMapLocation* ml = Level().MapManager().AddUserLocation(spot_type, level_name, position);
258 if (xr_strlen(text))
259 ml->SetHint(text);
260
261 return ml->ObjectID();
262}
263
264void map_change_spot_hint(u16 id, LPCSTR spot_type, LPCSTR text)
265{

Callers

nothing calls this directly

Calls 6

levelMethod · 0.80
AddUserLocationMethod · 0.80
SetHintMethod · 0.80
ObjectIDMethod · 0.80
xr_strlenFunction · 0.50
nameMethod · 0.45

Tested by

no test coverage detected