2018-10-06 20:42:33 -07:00
|
|
|
#pragma once
|
2016-04-11 16:35:37 -07:00
|
|
|
|
2020-03-31 21:36:47 -07:00
|
|
|
#include <array>
|
|
|
|
|
2019-09-27 19:53:03 -07:00
|
|
|
#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;
|
2019-09-27 19:53:03 -07:00
|
|
|
class CSegIdList;
|
2016-04-11 16:35:37 -07:00
|
|
|
|
2018-12-07 21:30:43 -08:00
|
|
|
class CSegStatementSet {
|
2020-03-31 21:31:49 -07:00
|
|
|
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 */
|
2020-03-31 21:36:47 -07:00
|
|
|
std::array<CAnimPerSegmentData, 100> x4_segData;
|
2020-03-31 21:31:49 -07:00
|
|
|
|
|
|
|
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]; }
|
2019-08-14 03:04:11 -07:00
|
|
|
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
|