mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 04:27:42 +00:00
More stubs
This commit is contained in:
@@ -92,7 +92,7 @@ bool CREAdd::GetValue(int frame, float& valOut) const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CREClamp::GetValue(int frame, float &valOut) const
|
||||
bool CREClamp::GetValue(int frame,float& valOut) const
|
||||
{
|
||||
float a, b;
|
||||
x4_min->GetValue(frame, a);
|
||||
@@ -115,6 +115,25 @@ bool CRERandom::GetValue(int frame, float& valOut) const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CREDotProduct::GetValue(int frame, float& valOut) const
|
||||
{
|
||||
Zeus::CVector3f a, b;
|
||||
x4_a->GetValue(frame, a);
|
||||
x8_b->GetValue(frame, b);
|
||||
valOut = a.dot(b);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
bool CREMultiply::GetValue(int frame, float& valOut) const
|
||||
{
|
||||
float a, b;
|
||||
x4_a->GetValue(frame, a);
|
||||
x8_b->GetValue(frame, b);
|
||||
valOut = a * b;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CREPulse::GetValue(int frame, float& valOut) const
|
||||
{
|
||||
int a, b;
|
||||
@@ -316,4 +335,51 @@ bool CREIntTimesReal::GetValue(int frame, float& valOut) const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CREConstantRange::GetValue(int frame, float& valOut) const
|
||||
{
|
||||
float val, min, max;
|
||||
x4_val->GetValue(frame, val);
|
||||
x8_min->GetValue(frame, min);
|
||||
xc_max->GetValue(frame, max);
|
||||
|
||||
if (val > min && val < max)
|
||||
x10_inRange->GetValue(Frame, valOut);
|
||||
else
|
||||
x14_outOfRange->GetValue(frame, valOut);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CREGetComponentRed::GetValue(int frame, float& valOut) const
|
||||
{
|
||||
Zeus::CColor a = Zeus::CColor::skBlack;
|
||||
x4_a->GetValue(frame, a);
|
||||
valOut = a.r;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CREGetComponentGreen::GetValue(int frame, float& valOut) const
|
||||
{
|
||||
Zeus::CColor a = Zeus::CColor::skBlack;
|
||||
x4_a->GetValue(frame, a);
|
||||
valOut = a.g;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CREGetComponentBlue::GetValue(int frame, float& valOut) const
|
||||
{
|
||||
Zeus::CColor a = Zeus::CColor::skBlack;
|
||||
x4_a->GetValue(frame, a);
|
||||
valOut = a.b;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CREGetComponentAlpha::GetValue(int frame, float& valOut) const
|
||||
{
|
||||
Zeus::CColor a = Zeus::CColor::skBlack;
|
||||
x4_a->GetValue(frame, a);
|
||||
valOut = a.a;
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user