2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 22:31:21 +00:00
metaforce/Runtime/Character/CPASAnimInfo.hpp
Lioncash 0b74a3e995 CPASAnimState: Make use of size_t for indices
Same behavior, but plays nicer with containers.

This can technically result in less zero-extensions with regards to
memory indexing and registers, but this wasn't the underlying reason for the change.
2020-04-06 13:02:22 -04:00

22 lines
595 B
C++

#pragma once
#include "Runtime/IOStreams.hpp"
#include "Runtime/rstl.hpp"
#include "Runtime/Character/CPASAnimParm.hpp"
namespace urde {
class CPASAnimInfo {
u32 x0_id;
rstl::reserved_vector<CPASAnimParm::UParmValue, 8> x4_parms;
public:
explicit CPASAnimInfo(u32 id) : x0_id(id) {}
explicit CPASAnimInfo(u32 id, rstl::reserved_vector<CPASAnimParm::UParmValue, 8>&& parms);
u32 GetAnimId() const { return x0_id; }
CPASAnimParm::UParmValue GetAnimParmValue(size_t idx) const;
CPASAnimParm GetAnimParmData(size_t idx, CPASAnimParm::EParmType type) const;
};
} // namespace urde