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