mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 22:27:43 +00:00
New code style refactor
This commit is contained in:
@@ -2,44 +2,42 @@
|
||||
|
||||
#include "CAnimTreeDoubleChild.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
namespace urde {
|
||||
|
||||
class CAnimTreeTweenBase : public CAnimTreeDoubleChild {
|
||||
static s32 sAdvancementDepth;
|
||||
|
||||
class CAnimTreeTweenBase : public CAnimTreeDoubleChild
|
||||
{
|
||||
static s32 sAdvancementDepth;
|
||||
protected:
|
||||
int x1c_flags;
|
||||
bool x20_24_b1 : 1;
|
||||
u8 x20_25_cullSelector : 2;
|
||||
int x1c_flags;
|
||||
bool x20_24_b1 : 1;
|
||||
u8 x20_25_cullSelector : 2;
|
||||
|
||||
public:
|
||||
CAnimTreeTweenBase(bool,
|
||||
const std::weak_ptr<CAnimTreeNode>& a,
|
||||
const std::weak_ptr<CAnimTreeNode>& b,
|
||||
int, std::string_view name);
|
||||
CAnimTreeTweenBase(bool, const std::weak_ptr<CAnimTreeNode>& a, const std::weak_ptr<CAnimTreeNode>& b, int,
|
||||
std::string_view name);
|
||||
|
||||
virtual void SetBlendingWeight(float w)=0;
|
||||
virtual float VGetBlendingWeight() const=0;
|
||||
virtual void SetBlendingWeight(float w) = 0;
|
||||
virtual float VGetBlendingWeight() const = 0;
|
||||
|
||||
float GetBlendingWeight() const { return VGetBlendingWeight(); }
|
||||
float GetBlendingWeight() const { return VGetBlendingWeight(); }
|
||||
|
||||
void VGetWeightedReaders(rstl::reserved_vector<std::pair<float, std::weak_ptr<IAnimReader>>, 16>& out, float w) const;
|
||||
float VGetRightChildWeight() const { return GetBlendingWeight(); }
|
||||
void VGetWeightedReaders(rstl::reserved_vector<std::pair<float, std::weak_ptr<IAnimReader>>, 16>& out, float w) const;
|
||||
float VGetRightChildWeight() const { return GetBlendingWeight(); }
|
||||
|
||||
void VGetSegStatementSet(const CSegIdList& list, CSegStatementSet& setOut) const;
|
||||
void VGetSegStatementSet(const CSegIdList& list, CSegStatementSet& setOut, const CCharAnimTime& time) const;
|
||||
bool VHasOffset(const CSegId& seg) const;
|
||||
zeus::CVector3f VGetOffset(const CSegId& seg) const;
|
||||
zeus::CQuaternion VGetRotation(const CSegId& seg) const;
|
||||
void VGetSegStatementSet(const CSegIdList& list, CSegStatementSet& setOut) const;
|
||||
void VGetSegStatementSet(const CSegIdList& list, CSegStatementSet& setOut, const CCharAnimTime& time) const;
|
||||
bool VHasOffset(const CSegId& seg) const;
|
||||
zeus::CVector3f VGetOffset(const CSegId& seg) const;
|
||||
zeus::CQuaternion VGetRotation(const CSegId& seg) const;
|
||||
|
||||
std::experimental::optional<std::unique_ptr<IAnimReader>> VSimplified();
|
||||
virtual std::experimental::optional<std::unique_ptr<IAnimReader>> VReverseSimplified()
|
||||
{ return CAnimTreeTweenBase::VSimplified(); }
|
||||
std::experimental::optional<std::unique_ptr<IAnimReader>> VSimplified();
|
||||
virtual std::experimental::optional<std::unique_ptr<IAnimReader>> VReverseSimplified() {
|
||||
return CAnimTreeTweenBase::VSimplified();
|
||||
}
|
||||
|
||||
static bool ShouldCullTree() { return 3 <= sAdvancementDepth; }
|
||||
static void IncAdvancementDepth() { sAdvancementDepth++; }
|
||||
static void DecAdvancementDepth() { sAdvancementDepth--; }
|
||||
static bool ShouldCullTree() { return 3 <= sAdvancementDepth; }
|
||||
static void IncAdvancementDepth() { sAdvancementDepth++; }
|
||||
static void DecAdvancementDepth() { sAdvancementDepth--; }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
} // namespace urde
|
||||
|
||||
Reference in New Issue
Block a user