MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / ConfigCreate

Method ConfigCreate

src/SB/Game/zNPCTypeCommon.cpp:2119–2136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2117}
2118
2119NPCConfig* zNPCCommon::ConfigCreate(U32 modelID)
2120{
2121 NPCConfig* cfg = (NPCConfig*)xMemAllocSize(sizeof(NPCConfig));
2122 memset(cfg, 0, sizeof(NPCConfig));
2123
2124 cfg->modelID = modelID;
2125
2126 if (!g_ncfghead)
2127 {
2128 g_ncfghead = cfg;
2129 }
2130 else
2131 {
2132 cfg->Insert(g_ncfghead);
2133 }
2134
2135 return cfg;
2136}
2137
2138NPCConfig* zNPCCommon::ConfigFind(U32 modelID)
2139{

Callers 1

InitMethod · 0.95

Calls 1

memsetFunction · 0.85

Tested by

no test coverage detected