metaforce/Runtime/Character/IMetaTrans.hpp

27 lines
922 B
C++
Raw Normal View History

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