mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-18 04:45:22 +00:00
FINALLY match and link CCharAnimTime
This commit is contained in:
@@ -36,10 +36,10 @@ public:
|
||||
bool GreaterThanZero() const;
|
||||
bool EqualsZero() const;
|
||||
void PutTo(COutputStream& out) const;
|
||||
//static CCharAnimTime Infinity() { return CCharAnimTime(kT_Infinity, 1.0f); }
|
||||
static CCharAnimTime Infinity() { return CCharAnimTime(kT_Infinity, 1.0f); }
|
||||
static CCharAnimTime ZeroFlat() { return CCharAnimTime(kT_ZeroSteady, 0.f); }
|
||||
//static CCharAnimTime ZeroPlus() { return CCharAnimTime(kT_ZeroIncreasing, 0.f); }
|
||||
//static CCharAnimTime ZeroMinus() { return CCharAnimTime(kT_ZeroDecreasing, 0.f); }
|
||||
static CCharAnimTime ZeroPlus() { return CCharAnimTime(kT_ZeroIncreasing, 0.f); }
|
||||
static CCharAnimTime ZeroMinus() { return CCharAnimTime(kT_ZeroDecreasing, 0.f); }
|
||||
|
||||
int ZeroOrdering() const {
|
||||
if (x4_type == kT_ZeroDecreasing) {
|
||||
@@ -62,6 +62,15 @@ public:
|
||||
return kT_ZeroIncreasing;
|
||||
}
|
||||
|
||||
CCharAnimTime ZeroSignScale(float other) const {
|
||||
if (other > 0.f) {
|
||||
return *this;
|
||||
} else if (other < 0.f) {
|
||||
return CCharAnimTime(ZeroTypeFromOrdering(-ZeroOrdering()), 0.f);
|
||||
}
|
||||
return ZeroFlat();
|
||||
}
|
||||
|
||||
private:
|
||||
float x0_time;
|
||||
EType x4_type;
|
||||
|
||||
Reference in New Issue
Block a user