mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 11:07:44 +00:00
Change how GIT revision information is handled
Add Cook to SCAN Prelim CCharAnimTime
This commit is contained in:
@@ -6,8 +6,57 @@ namespace Retro
|
||||
|
||||
class CCharAnimTime
|
||||
{
|
||||
};
|
||||
float m_time;
|
||||
int m_unk; // enum?
|
||||
public:
|
||||
CCharAnimTime(float time)
|
||||
: m_time(time),
|
||||
m_unk(m_time != 0.0 ? 0 : 2)
|
||||
{
|
||||
}
|
||||
|
||||
bool EqualsZero()
|
||||
{
|
||||
if (m_unk == 1 || m_unk == 2 || m_unk == 3)
|
||||
return false;
|
||||
|
||||
return (m_time == 0.0);
|
||||
}
|
||||
|
||||
bool GreaterThanZero()
|
||||
{
|
||||
if (EqualsZero())
|
||||
return false;
|
||||
return (m_time != 0.0);
|
||||
}
|
||||
#if 0
|
||||
bool operator>=(const CCharAnimTime& other)
|
||||
{
|
||||
if (*this == other)
|
||||
return true;
|
||||
|
||||
return (*this > other);
|
||||
}
|
||||
|
||||
bool operator<=(const CCharAnimTime& other)
|
||||
{
|
||||
if (*this == other)
|
||||
return true;
|
||||
|
||||
return (*this < other);
|
||||
}
|
||||
|
||||
void operator*=(const CCharAnimTime& other)
|
||||
{ *this = *this * other; }
|
||||
|
||||
void operator+=(const CCharAnimTime& other)
|
||||
{ *this = *this + other; }
|
||||
|
||||
void operator+(const CCharAnimTime& other)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
};
|
||||
}
|
||||
|
||||
#endif // __RETRO_CCHARANIMTIME_HPP__
|
||||
|
||||
Reference in New Issue
Block a user