123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- /*
- * 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
- *
- */
- #ifndef CRYINCLUDE_CRYMOVIE_CVARNODE_H
- #define CRYINCLUDE_CRYMOVIE_CVARNODE_H
- #pragma once
- #include "AnimNode.h"
- class CAnimCVarNode
- : public CAnimNode
- {
- public:
- AZ_CLASS_ALLOCATOR(CAnimCVarNode, AZ::SystemAllocator);
- AZ_RTTI(CAnimCVarNode, "{9059B454-EE73-4865-9B76-8C8430E3BB82}", CAnimNode);
- CAnimCVarNode(const int id);
- CAnimCVarNode();
- //////////////////////////////////////////////////////////////////////////
- // Overrides from CAnimNode
- //////////////////////////////////////////////////////////////////////////
- void SetName(const char* name) override;
- void Animate(SAnimContext& ec) override;
- void CreateDefaultTracks() override;
- void OnReset() override;
- void OnResume() override;
- unsigned int GetParamCount() const override;
- CAnimParamType GetParamType(unsigned int nIndex) const override;
- int GetDefaultKeyTangentFlags() const override;
- static void Reflect(AZ::ReflectContext* context);
- protected:
- bool GetParamInfoFromType(const CAnimParamType& paramId, SParamInfo& info) const override;
- private:
- float m_value;
- };
- #endif // CRYINCLUDE_CRYMOVIE_CVARNODE_H
|