#include "Actor.h"
#include "EngineFrame/Scene/Scene.h"
#include "EngineFrame/Component/RenderBase.h"
#include <algorithm>

Actor::Actor()
{
    Init();
}

void Actor::Init()
{
    addTag(Tag::ACTOR);
    addTag(Tag::RENDER);
    addTag(Tag::TRANSFORM);
    addTag(Tag::UPDATE);
}

void Actor::AddComponent(RefPtr<Component> Component)
{
    BaseNode::AddChild(Component);
}

void Actor::RemoveComponent(RefPtr<Component> Component)
{
    BaseNode::RemoveChild(Component);
}
