blob: e63414852131205d0f394522876785bdf256b6f4 [file] [log] [blame]
#ifndef _NIMA_NESTEDACTORNODE_HPP_
#define _NIMA_NESTEDACTORNODE_HPP_
#include "ActorRenderNode.hpp"
namespace nima
{
class Actor;
class BlockReader;
class NestedActorAsset;
class NestedActorNode : public ActorRenderNode
{
typedef ActorRenderNode Base;
protected:
NestedActorAsset* m_Asset;
Actor* m_ActorInstance;
public:
NestedActorNode();
virtual ~NestedActorNode();
ActorComponent* makeInstance(Actor* resetActor) override;
void updateWorldTransform() override;
void copy(NestedActorNode* node, Actor* resetActor);
static NestedActorNode* read(Actor* actor, BlockReader* reader, NestedActorNode* node = NULL);
};
}
#endif