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

Function xParEmitterEventCB

src/SB/Core/x/xParEmitter.cpp:199–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199S32 xParEmitterEventCB(xBase* to, xBase* from, U32 toEvent, F32* toParam, xBase* toParamWidget)
200{
201 xParEmitterCustomSettings sp8;
202
203 switch ((S32)toEvent)
204 {
205 case eEventReset:
206 xParEmitterReset((xParEmitter*)from);
207 break;
208 case eEventOn:
209 *(U8*)(toEvent + 0x30) |= 1;
210 break;
211 case eEventOff:
212 if (*(U8*)(toEvent + 0x30) & 1)
213 {
214 *(U8*)(toEvent + 0x30) = *(U8*)(toEvent + 0x30) ^ 1;
215 }
216 break;
217 case eEventEmit:
218 memset(&sp8, 0, 0x16C);
219 xParEmitterEmitCustom((xParEmitter*)from, 0.033333335f, &sp8);
220 break;
221 }
222 return 1;
223}
224
225xPar* xParEmitterEmitCustom(xParEmitter* p, F32 dt, xParEmitterCustomSettings* info)
226

Callers

nothing calls this directly

Calls 3

xParEmitterResetFunction · 0.85
memsetFunction · 0.85
xParEmitterEmitCustomFunction · 0.70

Tested by

no test coverage detected