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

Method ParseLinks

src/SB/Game/zNPCTypeCommon.cpp:1484–1513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1482}
1483
1484void zNPCCommon::ParseLinks()
1485{
1486 for (S32 i = 0; i < this->linkCount; i++)
1487 {
1488 switch (this->link[i].srcEvent)
1489 {
1490 case eEventNPCScript_ScriptBegin:
1491 case eEventNPCScript_ScriptEnd:
1492 case eEventNPCScript_ScriptReady:
1493 case eEventNPCScript_Halt:
1494 case eEventNPCScript_SetPos:
1495 case eEventNPCScript_SetDir:
1496 case eEventNPCScript_LookNormal:
1497 case eEventNPCScript_LookAlert:
1498 case eEventNPCScript_FaceWidget:
1499 case eEventNPCScript_FaceWidgetDone:
1500 case eEventNPCScript_GotoWidget:
1501 case eEventNPCScript_GotoWidgetDone:
1502 case eEventNPCScript_AttackWidget:
1503 case eEventNPCScript_AttackWidgetDone:
1504 case eEventNPCScript_FollowWidget:
1505 case eEventNPCScript_PlayAnim:
1506 case eEventNPCScript_PlayAnimDone:
1507 case eEventNPCScript_LeadPlayer:
1508 xSceneID2Name(globals.sceneCur, this->id);
1509 this->flg_misc |= 0x1;
1510 break;
1511 }
1512 }
1513}
1514
1515void zNPCCommon::ParseINI()
1516{

Callers 1

SetupMethod · 0.95

Calls 1

xSceneID2NameFunction · 0.85

Tested by

no test coverage detected