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

Function xSceneAddEnt

src/SB/Core/x/xScene.cpp:94–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94void xSceneAddEnt(xScene* sc, xEnt* ent)
95{
96 if (ent->collType == XENT_COLLTYPE_TRIG)
97 {
98 sc->trigs[sc->num_trigs++] = ent;
99 }
100 else if (ent->collType == XENT_COLLTYPE_STAT)
101 {
102 sc->stats[sc->num_stats++] = ent;
103 }
104 else if (ent->collType == XENT_COLLTYPE_DYN)
105 {
106 sc->dyns[sc->num_dyns++] = ent;
107 }
108 else if (ent->collType == XENT_COLLTYPE_NPC)
109 {
110 sc->npcs[sc->num_npcs++] = ent;
111 }
112
113 sc->act_ents[sc->num_act_ents++] = ent;
114}
115
116xBase* xSceneResolvID(xScene* sc, U32 id)
117{

Callers 4

init_dynamic_typeFunction · 0.85
zSceneInitFunc_SBNPCFunction · 0.85
zSceneInitFunc_PlayerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected