object-particle OK

This commit is contained in:
LagoLunatic
2025-04-08 17:03:42 -04:00
parent 6a64986a39
commit cd777aa35b
10 changed files with 97 additions and 65 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ namespace JStage {
virtual void JSGSetParent(JStage::TObject*, u32);
virtual void JSGSetRelation(bool, JStage::TObject*, u32);
virtual s32 JSGFindNodeID(char const*) const;
virtual int JSGGetNodeTransformation(u32, MtxP) const;
virtual bool JSGGetNodeTransformation(u32, MtxP) const;
};
};
@@ -61,14 +61,14 @@ struct TAdaptor_particle : public JStudio::TAdaptor_particle {
/* 0x19C */ JPAEmitterManager* mEmitterManager;
/* 0x1A0 */ JPABaseEmitter* mEmitter;
/* 0x1A4 */ TJPACallback_ mCallback;
/* 0x1B0 */ int _188;
/* 0x1B4 */ u32 _18C;
/* 0x1B8 */ u32 _190;
/* 0x1BC */ u32 _194;
/* 0x1B0 */ int field_0x1B0;
/* 0x1B4 */ int field_0x1B4;
/* 0x1B8 */ u32 field_0x1B8;
/* 0x1BC */ u32 field_0x1BC;
/* 0x1C0 */ const JStage::TSystem* mSystem;
/* 0x1C4 */ JStage::TObject* _19C;
/* 0x1C8 */ u32 _1A0;
/* 0x1CC */ bool _1A4;
/* 0x1C4 */ JStage::TObject* mObject;
/* 0x1C8 */ u32 field_0x1C8;
/* 0x1CC */ bool field_0x1CC;
}; // Size: 0x1D0
}; // namespace JStudio_JParticle
+7 -7
View File
@@ -48,28 +48,28 @@ public:
f32 get_pos_y() { return mPos.y; }
void set_pos(cXyz& pos) { mPos.set(pos); }
void set_pos_y(float y) { mPos.y = y; }
bool chk_stop() { return bIsActive == false; }
bool chk_stop() { return mbIsActive == false; }
void delete_s() {
if(mSplashCb.getEmitter() != NULL){
mSplashCb.remove();
bIsActive = false;
mbIsActive = false;
}
}
void play_particle() {
JPABaseEmitter* pSplashEmitter = mSplashCb.getEmitter();
if(pSplashEmitter != NULL){
pSplashEmitter->clearStatus(1);
bIsActive = true;
pSplashEmitter->playCreateParticle();
mbIsActive = true;
}
}
void stop_particle() {
JPABaseEmitter* pSplashEmitter = mSplashCb.getEmitter();
if(pSplashEmitter != NULL){
pSplashEmitter->setStatus(1);
bIsActive = false;
pSplashEmitter->stopCreateParticle();
mbIsActive = false;
}
}
@@ -80,7 +80,7 @@ public:
/* 0x14 */ cXyz mBasePos;
/* 0x20 */ cXyz mPos;
/* 0x2C */ csXyz mAngle;
/* 0x32 */ bool bIsActive;
/* 0x32 */ bool mbIsActive;
}; // Size : 0x34
+2 -2
View File
@@ -85,10 +85,10 @@ public:
JUT_ASSERT(0x4d, mModel != NULL);
return mModel->getModelData()->getJointName()->getIndex(name);
}
int JSGGetNodeTransformation(u32 no, Mtx dst) const {
bool JSGGetNodeTransformation(u32 no, Mtx dst) const {
JUT_ASSERT(0x52, mModel != NULL);
cMtx_copy(mModel->getAnmMtx((u16)no), dst);
return 1;
return true;
}
f32 JSGGetAnimationFrameMax() const { return mAnmFrameMax; }
f32 JSGGetTextureAnimationFrameMax() const { return mTexAnimationFrameMax; }