You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
2.0 KiB
C++
72 lines
2.0 KiB
C++
#pragma once
|
|
|
|
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
#include <AzCore/Memory/Memory.h>
|
|
#include <AzCore/std/containers/fixed_vector.h>
|
|
#include <SceneAPI/SceneCore/DataTypes/Rules/ISkeletonProxyRule.h>
|
|
|
|
namespace AZ
|
|
{
|
|
class ReflectContext;
|
|
|
|
namespace SceneAPI
|
|
{
|
|
namespace Containers
|
|
{
|
|
class Scene;
|
|
}
|
|
namespace SceneData
|
|
{
|
|
struct SkeletonProxy
|
|
{
|
|
AZ_RTTI(SkeletonProxy, "{49E188A9-CA04-4B85-9AD8-A0262796EA27}");
|
|
|
|
virtual ~SkeletonProxy() = default;
|
|
|
|
AZStd::string m_jointName;
|
|
AZStd::string m_proxyName;
|
|
|
|
static void Reflect(ReflectContext* context);
|
|
};
|
|
|
|
struct SkeletonProxyGroup
|
|
{
|
|
AZ_RTTI(SkeletonProxyGroup, "{243B8186-EDDB-48C7-BCE7-FC2D1974B58A}");
|
|
AZ_CLASS_ALLOCATOR_DECL
|
|
|
|
virtual ~SkeletonProxyGroup() = default;
|
|
|
|
AZStd::string m_proxyMaterialName;
|
|
AZStd::vector<SkeletonProxy> m_skeletonProxies;
|
|
|
|
static void Reflect(ReflectContext* context);
|
|
};
|
|
|
|
class SkeletonProxyRule
|
|
: public DataTypes::ISkeletonProxyRule
|
|
{
|
|
public:
|
|
AZ_RTTI(SkeletonProxyRule, "{142CF206-FC12-4138-B30C-FFA64EC3BB4E}", DataTypes::ISkeletonProxyRule);
|
|
AZ_CLASS_ALLOCATOR_DECL
|
|
|
|
~SkeletonProxyRule() override = default;
|
|
|
|
size_t GetProxyGroupCount() const override;
|
|
const SkeletonProxyGroup& GetProxyGroup() const;
|
|
|
|
static void Reflect(ReflectContext* context);
|
|
|
|
protected:
|
|
AZStd::vector<SkeletonProxyGroup> m_proxyGroups;
|
|
};
|
|
} // SceneData
|
|
} // SceneAPI
|
|
} // AZ
|