mirror of
https://github.com/zoriya/Bomberman.git
synced 2025-12-21 05:45:10 +00:00
37 lines
542 B
C++
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
|
|
}
|
|
} |