blob: a18f6c5b13b6abe882275230df1308c9f05b3d22 [file] [log] [blame]
#ifndef _NIMA_KEYFRAMEACTIVECHILD_HPP_
#define _NIMA_KEYFRAMEACTIVECHILD_HPP_
#include "KeyFrame.hpp"
namespace nima
{
class ActorComponent;
class KeyFrameActiveChild : public KeyFrame
{
typedef KeyFrame Base;
private:
unsigned m_Value;
protected:
void setValue(ActorComponent* component, float value, float mix);
public:
bool read(BlockReader* reader, ActorComponent* component) override;
void setNext(KeyFrame* frame) override;
void apply(ActorComponent* component, float mix) override;
void applyInterpolation(ActorComponent* component, float time, KeyFrame* toFrame, float mix) override;
};
}
#endif