metaforce/Runtime/Character/IMetaTrans.hpp

29 lines
956 B
C++
Raw Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2015-08-21 18:58:41 -07:00
#include <memory>
#include "Runtime/RetroTypes.hpp"
2015-08-21 18:58:41 -07:00
2021-04-10 01:42:06 -07:00
namespace metaforce {
2016-04-10 14:22:59 -07:00
class CAnimTreeNode;
2016-05-20 20:02:09 -07:00
struct CAnimSysContext;
2016-04-10 14:22:59 -07:00
2018-12-07 21:30:43 -08:00
enum class EMetaTransType { MetaAnim, Trans, PhaseTrans, Snap };
2015-08-21 18:58:41 -07:00
2018-12-07 21:30:43 -08:00
class IMetaTrans {
2016-04-10 14:22:59 -07:00
public:
2018-12-07 21:30:43 -08:00
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;
2016-09-03 19:27:35 -07:00
2018-12-07 21:30:43 -08:00
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);
}
2015-08-21 18:58:41 -07:00
};
2021-04-10 01:42:06 -07:00
} // namespace metaforce