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