metaforce/Runtime/Character/CSegStatementSet.hpp

26 lines
703 B
C++
Raw Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2016-04-11 16:35:37 -07:00
#include <array>
#include "Runtime/Character/CAnimPerSegmentData.hpp"
#include "Runtime/Character/CSegId.hpp"
2016-04-15 20:24:25 -07:00
2021-04-10 01:42:06 -07:00
namespace metaforce {
2016-04-15 20:24:25 -07:00
class CCharLayoutInfo;
class CSegIdList;
2016-04-11 16:35:37 -07:00
2018-12-07 21:30:43 -08:00
class CSegStatementSet {
private:
2018-12-07 21:30:43 -08:00
/* Used to be a pointer to arbitrary subclass-provided storage,
* now it's a self-stored array */
std::array<CAnimPerSegmentData, 100> x4_segData;
public:
2018-12-07 21:30:43 -08:00
void Add(const CSegIdList& list, const CCharLayoutInfo& layout, const CSegStatementSet& other, float weight);
2016-08-20 17:04:50 -07:00
2018-12-07 21:30:43 -08:00
CAnimPerSegmentData& operator[](const CSegId& idx) { return x4_segData[idx]; }
const CAnimPerSegmentData& operator[](const CSegId& idx) const { return x4_segData[idx]; }
2016-04-11 16:35:37 -07:00
};
2021-04-10 01:42:06 -07:00
} // namespace metaforce