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

Function story_id

ogsr_engine/xrGame/GameTask.cpp:29–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27extern STORY_PAIRS story_ids;
28
29ALife::_STORY_ID story_id(LPCSTR story_id)
30{
31 auto I = story_ids.find(story_id);
32 ASSERT_FMT_DBG(I != story_ids.end(), "story_id not found: %s", story_id);
33 return I != story_ids.end() ? ALife::_STORY_ID((*I).second) : INVALID_STORY_ID;
34}
35
36u16 storyId2GameId(ALife::_STORY_ID id)
37{

Callers 2

CGameObjectClass · 0.85
LoadMethod · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected