2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:47:43 +00:00

Add CPOINode family of classes

This commit is contained in:
Jack Andersen
2016-04-10 21:10:28 -10:00
parent 8242c3edda
commit 64d85d7427
28 changed files with 351 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
#ifndef __PSHAG_CCHARANIMTIME_HPP__
#define __PSHAG_CCHARANIMTIME_HPP__
#include <algorithm>
#include "IOStreams.hpp"
namespace urde
{
@@ -19,6 +19,9 @@ class CCharAnimTime
} m_type = Type::ZeroSteady;
public:
CCharAnimTime() = default;
CCharAnimTime(CInputStream& in)
: m_time(in.readFloatBig()),
m_type(Type(in.readUint32Big())) {}
CCharAnimTime(float time)
: m_time(time),
m_type(m_time != 0.f ? Type::NonZero : Type::ZeroSteady) {}