blob: aed4827ef9a427a7edcfd03df079f2585752668e [file] [log] [blame]
#ifndef _NIMA_COMPONENTANIMATION_HPP_
#define _NIMA_COMPONENTANIMATION_HPP_
#include <string>
#include <vector>
#include "PropertyAnimation.hpp"
namespace nima
{
class BlockReader;
class ActorComponent;
class Actor;
struct ActorAnimationEvent;
class ComponentAnimation
{
private:
unsigned short m_ComponentIndex;
PropertyAnimation* m_Properties;
int m_PropertiesCount;
public:
ComponentAnimation();
~ComponentAnimation();
int componentIndex() const;
void read(BlockReader* reader, ActorComponent** components);
void apply(float time, Actor* actor, float mix);
void triggerEvents(Actor* actor, float fromTime, float toTime, std::vector<ActorAnimationEvent>& events);
};
}
#endif