mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-21 16:19:12 +00:00
New code style refactor
This commit is contained in:
@@ -2,35 +2,25 @@
|
||||
|
||||
#include "../RetroTypes.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
namespace urde {
|
||||
class CAnimTreeNode;
|
||||
struct CAnimSysContext;
|
||||
|
||||
enum class EMetaTransType
|
||||
{
|
||||
MetaAnim,
|
||||
Trans,
|
||||
PhaseTrans,
|
||||
Snap
|
||||
};
|
||||
enum class EMetaTransType { MetaAnim, Trans, PhaseTrans, Snap };
|
||||
|
||||
class IMetaTrans
|
||||
{
|
||||
class IMetaTrans {
|
||||
public:
|
||||
virtual ~IMetaTrans() = default;
|
||||
virtual std::shared_ptr<CAnimTreeNode> VGetTransitionTree(const std::weak_ptr<CAnimTreeNode>& a,
|
||||
const std::weak_ptr<CAnimTreeNode>& b,
|
||||
const CAnimSysContext& animSys) const=0;
|
||||
virtual EMetaTransType GetType() const=0;
|
||||
virtual ~IMetaTrans() = default;
|
||||
virtual std::shared_ptr<CAnimTreeNode> VGetTransitionTree(const std::weak_ptr<CAnimTreeNode>& a,
|
||||
const std::weak_ptr<CAnimTreeNode>& b,
|
||||
const CAnimSysContext& animSys) const = 0;
|
||||
virtual EMetaTransType GetType() const = 0;
|
||||
|
||||
std::shared_ptr<CAnimTreeNode> GetTransitionTree(const std::weak_ptr<CAnimTreeNode>& a,
|
||||
const std::weak_ptr<CAnimTreeNode>& b,
|
||||
const CAnimSysContext& animSys)
|
||||
{
|
||||
return VGetTransitionTree(a, b, animSys);
|
||||
}
|
||||
std::shared_ptr<CAnimTreeNode> GetTransitionTree(const std::weak_ptr<CAnimTreeNode>& a,
|
||||
const std::weak_ptr<CAnimTreeNode>& b,
|
||||
const CAnimSysContext& animSys) {
|
||||
return VGetTransitionTree(a, b, animSys);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
} // namespace urde
|
||||
|
||||
Reference in New Issue
Block a user