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

Method Startup

src/SB/Game/zNPCMgr.cpp:442–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442void zNPCMgr::Startup()
443{
444 PrepTypeTable();
445 selfbase.id = 'NPCM';
446 selfbase.baseType = 0xAB;
447 npcFactory = new ('NPCM', NULL) xFactory(0x60);
448 zNPCMsg_Startup();
449 zNPCSpawner_Startup();
450 zNPCTypes_StartupTypes();
451 zNPCTypes_RegisterTypes(npcFactory);
452 bmgr = xBehaveMgr_GetSelf();
453 xFactory* behaveMgrFactory = bmgr->GetFactory();
454 zNPCGoals_RegisterTypes(behaveMgrFactory);
455}
456
457void zNPCMgr::Shutdown()
458{

Callers 1

zNPCMgr_StartupFunction · 0.45

Calls 7

zNPCSpawner_StartupFunction · 0.85
zNPCTypes_StartupTypesFunction · 0.85
xBehaveMgr_GetSelfFunction · 0.85
GetFactoryMethod · 0.80
zNPCMsg_StartupFunction · 0.70
zNPCTypes_RegisterTypesFunction · 0.70
zNPCGoals_RegisterTypesFunction · 0.70

Tested by

no test coverage detected