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

Function zConditionalEventCB

src/SB/Game/zConditional.cpp:99–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99S32 zConditionalEventCB(xBase* arg1, xBase* arg2, U32 toEvent, const F32* fp, xBase* other)
100{
101 switch (toEvent)
102 {
103 case eEventEvaluate:
104 if (zConditional_Evaluate((_zConditional*)arg2))
105 {
106 zEntEvent(arg2, arg2, eEventTrue);
107 }
108 else
109 {
110 zEntEvent(arg2, arg2, eEventFalse);
111 }
112 break;
113
114 case eEventTrue:
115 break;
116
117 case eEventReset:
118 zConditionalReset((_zConditional*)arg2);
119 break;
120 }
121
122 return eEventEnable;
123}

Callers

nothing calls this directly

Calls 3

zConditionalResetFunction · 0.85
zConditional_EvaluateFunction · 0.70
zEntEventFunction · 0.50

Tested by

no test coverage detected