mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-05-13 15:51:22 +00:00
parent
17000766fe
commit
f1ef7f5fd7
@ -507,10 +507,10 @@ std::unique_ptr<CRealElement> CParticleDataFactory::GetRealElement(CInputStream&
|
|||||||
return std::make_unique<CRELifetimePercent>(std::move(a));
|
return std::make_unique<CRELifetimePercent>(std::move(a));
|
||||||
}
|
}
|
||||||
case SBIG('SINE'): {
|
case SBIG('SINE'): {
|
||||||
auto a = GetRealElement(in);
|
auto frequency = GetRealElement(in);
|
||||||
auto b = GetRealElement(in);
|
auto amplitude = GetRealElement(in);
|
||||||
auto c = GetRealElement(in);
|
auto phase = GetRealElement(in);
|
||||||
return std::make_unique<CRESineWave>(std::move(a), std::move(b), std::move(c));
|
return std::make_unique<CRESineWave>(std::move(phase), std::move(frequency), std::move(amplitude));
|
||||||
}
|
}
|
||||||
case SBIG('ISWT'): {
|
case SBIG('ISWT'): {
|
||||||
auto a = GetRealElement(in);
|
auto a = GetRealElement(in);
|
||||||
|
@ -151,8 +151,9 @@ class CRESineWave : public CRealElement {
|
|||||||
std::unique_ptr<CRealElement> xc_phase;
|
std::unique_ptr<CRealElement> xc_phase;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CRESineWave(std::unique_ptr<CRealElement>&& a, std::unique_ptr<CRealElement>&& b, std::unique_ptr<CRealElement>&& c)
|
CRESineWave(std::unique_ptr<CRealElement>&& phase, std::unique_ptr<CRealElement>&& frequency,
|
||||||
: x4_frequency(std::move(b)), x8_amplitude(std::move(c)), xc_phase(std::move(a)) {}
|
std::unique_ptr<CRealElement>&& amplitude)
|
||||||
|
: x4_frequency(std::move(frequency)), x8_amplitude(std::move(amplitude)), xc_phase(std::move(phase)) {}
|
||||||
bool GetValue(int frame, float& valOut) const override;
|
bool GetValue(int frame, float& valOut) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user