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.
51 lines
1.3 KiB
C++
51 lines
1.3 KiB
C++
/*
|
|
* 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, 0);
|
|
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
|
|
|