mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-06 19:22:20 +00:00
fix merge conflict
This commit is contained in:
@@ -8,9 +8,8 @@
|
||||
|
||||
namespace BBM
|
||||
{
|
||||
IAControllableSystem::IAControllableSystem()
|
||||
: WAL::System({ typeid(IAControllableComponent),
|
||||
typeid(ControllableComponent)})
|
||||
IAControllableSystem::IAControllableSystem(WAL::Wal &wal)
|
||||
: System(wal)
|
||||
{ }
|
||||
|
||||
float IAControllableSystem::getReturnNumber(lua_State *state)
|
||||
@@ -40,10 +39,10 @@ namespace BBM
|
||||
return res;
|
||||
}
|
||||
|
||||
void IAControllableSystem::onFixedUpdate(WAL::Entity &entity)
|
||||
void IAControllableSystem::onFixedUpdate(WAL::ViewEntity<ControllableComponent, IAControllableComponent> &entity)
|
||||
{
|
||||
auto &ia = entity.getComponent<IAControllableComponent>();
|
||||
auto &controllable = entity.getComponent<ControllableComponent>();
|
||||
auto &ia = entity.get<IAControllableComponent>();
|
||||
auto &controllable = entity.get<ControllableComponent>();
|
||||
|
||||
lua_getglobal(ia.state, "Update");
|
||||
//push parameters
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
namespace BBM
|
||||
{
|
||||
//! @brief A system to handle keyboard entities.
|
||||
class IAControllableSystem : public WAL::System
|
||||
class IAControllableSystem : public WAL::System<ControllableComponent, IAControllableComponent>
|
||||
{
|
||||
private:
|
||||
//! @brief extract a number from the lua stack
|
||||
@@ -18,10 +18,10 @@ namespace BBM
|
||||
bool getReturnBool(lua_State *state);
|
||||
public:
|
||||
//! @inherit
|
||||
void onFixedUpdate(WAL::Entity &entity) override;
|
||||
void onFixedUpdate(WAL::ViewEntity<ControllableComponent, IAControllableComponent> &entity) override;
|
||||
|
||||
//! @brief A default constructor
|
||||
IAControllableSystem();
|
||||
IAControllableSystem(WAL::Wal &wal);
|
||||
//! @brief A keyboard system is copy constructable
|
||||
IAControllableSystem(const IAControllableSystem &) = default;
|
||||
//! @brief A default destructor
|
||||
|
||||
Reference in New Issue
Block a user