Files
Bomberman/lib/wal/sources/Component/Component.cpp
2021-05-17 12:31:02 +02:00

37 lines
542 B
C++

//
// Created by Zoe Roux on 2021-05-14.
//
#include "Component/Component.hpp"
namespace WAL
{
Component::Component(Entity &entity)
: _entity(entity)
{ }
bool Component::isDisabled() const
{
return this->_disabled;
}
void Component::setDisable(bool disabled)
{
this->_disabled = disabled;
}
const std::vector<std::type_index> &Component::getDependencies() const
{
return this->_dependencies;
}
void Component::onStart()
{
//TODO handle events here
}
void Component::onStop()
{
//TODO handle events here
}
}