git mv Code\Sandbox\Editor Code/Editor
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright (c) Contributors to the Open 3D Engine Project
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef CRYINCLUDE_EDITOR_TRACKVIEW_DIRECTORNODEANIMATOR_H
|
||||
#define CRYINCLUDE_EDITOR_TRACKVIEW_DIRECTORNODEANIMATOR_H
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "TrackViewAnimNode.h"
|
||||
|
||||
// This is used to bind/unbind sub sequences in director nodes
|
||||
// when the sequence time changes. A sequence only gets bound if it was already
|
||||
// referred in time before.
|
||||
class CDirectorNodeAnimator
|
||||
: public IAnimNodeAnimator
|
||||
{
|
||||
public:
|
||||
CDirectorNodeAnimator(CTrackViewAnimNode* pDirectorNode);
|
||||
|
||||
virtual void Animate(CTrackViewAnimNode* pNode, const SAnimContext& ac) override;
|
||||
virtual void Render(CTrackViewAnimNode* pNode, const SAnimContext& ac) override;
|
||||
virtual void UnBind(CTrackViewAnimNode* pNode) override;
|
||||
|
||||
// Utility function to find a CTrackViewSequence* from an ISequenceKey
|
||||
static CTrackViewSequence* GetSequenceFromSequenceKey(const ISequenceKey& sequenceKey);
|
||||
|
||||
private:
|
||||
void ForEachActiveSequence(const SAnimContext& ac, CTrackViewTrack* pSequenceTrack,
|
||||
const bool bHandleOtherKeys, std::function<void(CTrackViewSequence*, const SAnimContext&)> animateFunction,
|
||||
std::function<void(CTrackViewSequence*, const SAnimContext&)> resetFunction);
|
||||
|
||||
CTrackViewAnimNode* m_pDirectorNode;
|
||||
};
|
||||
#endif // CRYINCLUDE_EDITOR_TRACKVIEW_DIRECTORNODEANIMATOR_H
|
||||
Reference in New Issue
Block a user