Library/Effect: Implement EffectSystemInfo#1069
Library/Effect: Implement EffectSystemInfo#1069guymakinggames wants to merge 1 commit intoMonsterDruide1:masterfrom
Conversation
a679600 to
0a38e4b
Compare
0a38e4b to
5890522
Compare
german77
left a comment
There was a problem hiding this comment.
@german77 reviewed 5 files and made 7 comments.
Reviewable status: 5 of 9 files reviewed, 7 unresolved discussions (waiting on guymakinggames).
lib/al/Library/Effect/EffectSystemInfo.cpp line 11 at r1 (raw file):
namespace al { EffectSystemInfo::EffectSystemInfo() : _0(0), mPtclSystem(nullptr), _10(nullptr), _18(0) {}
Move members initialization to the header
Suggestion:
EffectSystemInfo::EffectSystemInfo() = default;lib/al/Library/Effect/EffectSystemInfo.cpp line 111 at r1 (raw file):
handle->GetEmitterSet()->directionalVel = directionalVel; } }
bound checks are generated automatically
Suggestion:
for (s32 i = 0; i < emitterCount; i++) {
nn::vfx::Handle* handle = effect->getEmitters()[i]->getHandle();
if (handle->isValid())
handle->GetEmitterSet()->directionalVel = directionalVel;
}lib/al/Library/Effect/PtclSystem.h line 12 at r1 (raw file):
class EffectSystem; class PtclSystem {
Suggestion:
class PtclSystem : public sead::ptcl::PtclSystem {lib/al/Library/Model/JointMtxPtr.h line 9 at r1 (raw file):
template <typename T> class Matrix43; using Matrix43f = Matrix43<f32>;
No need for forward reference matrix types. You added the header
lib/al/Library/Model/JointMtxPtr.h line 23 at r1 (raw file):
private: const void* mMtxPtr;
Suggestion:
const sead::Matrix34f* mMtxPtr;lib/al/Project/Effect/Effect.h line 9 at r1 (raw file):
#include "Library/Model/JointMtxPtr.h" #include "Project/Effect/EffectEmitter.h"
You can forward reference this one
Code quote:
#include "Project/Effect/EffectEmitter.h"lib/al/Project/Effect/EffectEmitter.h line 8 at r1 (raw file):
#include "Library/Model/JointMtxPtr.h" namespace nn::vfx {
nn stuff should be defined in lib/NintendoSDK
This change is
Report for 1.0 (8f46da6 - 5890522)
📈 Matched code: 14.21% (+0.01%, +1648 bytes)
✅ 31 new matches
Library/Effect/EffectSystemInfoal::setEffectParticleDirectionalVel(al::IUseEffectKeeper*, char const*, float)Library/Effect/EffectSystemInfoal::trySetEffectNamedMtxPtr(al::IUseEffectKeeper*, char const*, sead::Matrix34<float> const*)Library/Effect/EffectSystemInfoal::setEffectNamedMtxPtr(al::IUseEffectKeeper*, char const*, sead::Matrix34<float> const*)Library/Effect/EffectSystemInfoal::setEffectEmitRatio(al::IUseEffectKeeper*, char const*, float)Library/Effect/EffectSystemInfoal::setEffectParticleScale(al::IUseEffectKeeper*, char const*, float)Library/Effect/EffectSystemInfoal::setEffectParticleAlpha(al::IUseEffectKeeper*, char const*, float)Library/Effect/EffectSystemInfoal::setParticleLifeScale(al::IUseEffectKeeper*, char const*, float)Library/Effect/EffectSystemInfoal::updateEffectMaterialWet(al::IUseEffectKeeper*, bool)Library/Effect/EffectSystemInfoal::updateEffectMaterialPuddle(al::IUseEffectKeeper*, bool)Library/Effect/EffectSystemInfoal::setEffectFollowPosPtr(al::IUseEffectKeeper*, char const*, sead::Vector3<float> const*)Library/Effect/EffectSystemInfoal::setEffectFollowMtxPtr(al::IUseEffectKeeper*, char const*, sead::Matrix34<float> const*)Library/Effect/EffectSystemInfoal::updateEffectMaterialWater(al::IUseEffectKeeper*, bool)Library/Effect/EffectSystemInfoal::emitEffect(al::IUseEffectKeeper*, char const*, sead::Vector3<float> const*)Library/Effect/EffectSystemInfoal::tryEmitEffect(al::IUseEffectKeeper*, char const*, sead::Vector3<float> const*)Library/Effect/EffectSystemInfoal::setEffectAllScale(al::IUseEffectKeeper*, char const*, sead::Vector3<float> const&)Library/Effect/EffectSystemInfoal::setEffectEmitterVolumeScale(al::IUseEffectKeeper*, char const*, sead::Vector3<float> const&)Library/Effect/EffectSystemInfoal::setEffectParticleScale(al::IUseEffectKeeper*, char const*, sead::Vector3<float> const&)Library/Effect/EffectSystemInfoal::setEffectParticleColor(al::IUseEffectKeeper*, char const*, sead::Color4f const&)Library/Effect/EffectSystemInfoal::isEffectEmitting(al::IUseEffectKeeper const*, char const*)Library/Effect/EffectSystemInfoal::emitEffectCurrentPos(al::IUseEffectKeeper*, char const*)Library/Effect/EffectSystemInfoal::deleteEffect(al::IUseEffectKeeper*, char const*)Library/Effect/EffectSystemInfoal::tryDeleteEffect(al::IUseEffectKeeper*, char const*)Library/Effect/EffectSystemInfoal::forceSetStopCalcAndDraw(al::IUseEffectKeeper*, bool)Library/Effect/EffectSystemInfoal::tryUpdateEffectMaterialCode(al::IUseEffectKeeper*, char const*)Library/Effect/EffectSystemInfoal::resetEffectMaterialCode(al::IUseEffectKeeper*)Library/Effect/EffectSystemInfoal::deleteEffectAll(al::IUseEffectKeeper*)Library/Effect/EffectSystemInfoal::tryKillEmitterAndParticleAll(al::IUseEffectKeeper*)Library/Effect/EffectSystemInfoal::onCalcAndDrawEffect(al::IUseEffectKeeper*)Library/Effect/EffectSystemInfoal::offCalcAndDrawEffect(al::IUseEffectKeeper*)Library/Effect/EffectSystemInfoal::EffectSystemInfo::EffectSystemInfo()...and 1 more new matches