mirror of
https://github.com/zeldaret/ss
synced 2026-08-06 01:48:32 -04:00
More cursor stuff WIP
This commit is contained in:
@@ -43,15 +43,15 @@ public:
|
||||
return mpEmitterCallback;
|
||||
}
|
||||
|
||||
void setEmitterCallback(dEmitterCallback_c *cb);
|
||||
void setParticleCallback(dParticleCallback_c *cb);
|
||||
|
||||
protected:
|
||||
void deactivateEmitters();
|
||||
void stopCalcEmitters();
|
||||
void playCalcEmitters();
|
||||
static void loadColors(JPABaseEmitter *emitter, const GXColor *c1, const GXColor *c2, s32 idx1, s32 idx2);
|
||||
|
||||
void setEmitterCallback(dEmitterCallback_c *cb);
|
||||
void setParticleCallback(dParticleCallback_c *cb);
|
||||
|
||||
void setImmortal();
|
||||
|
||||
static JPABaseEmitter *GetNextEmitter(JPABaseEmitter *head);
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
#ifndef D_EMITTER_CALLBACKS_H
|
||||
#define D_EMITTER_CALLBACKS_H
|
||||
|
||||
#include "m/m_vec.h"
|
||||
#include "toBeSorted/d_emitter.h"
|
||||
|
||||
/**
|
||||
* A callback responsible for emitting the trail left by the red item cursor dot.
|
||||
* Used by Bow, Gust Bellows, Clawshots, Slingshot.
|
||||
*/
|
||||
class dEmitterCallbackCursorTrail_c : public dEmitterCallback_c {
|
||||
public:
|
||||
dEmitterCallbackCursorTrail_c(u32 x = 0x28, f32 y = 3.5f);
|
||||
virtual ~dEmitterCallbackCursorTrail_c() {}
|
||||
|
||||
virtual void executeAfter(JPABaseEmitter *) override;
|
||||
virtual void create(JPABaseEmitter *) override;
|
||||
virtual void vt_0x20(f32, f32) override;
|
||||
|
||||
private:
|
||||
/* 0x10 */ f32 field_0x10;
|
||||
/* 0x14 */ u16 field_0x14;
|
||||
/* 0x16 */ u8 _0x16[0x1C - 0x16];
|
||||
/* 0x1C */ mVec3_c posNMinus1;
|
||||
/* 0x28 */ mVec3_c posNMinus2;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user