added some static function in lobbysystem (createtile) and fixed some old changes not necessary now

This commit is contained in:
HENRY Benjamin
2021-06-18 22:38:32 +02:00
parent 4c9b8958ba
commit 68c219671f
5 changed files with 43 additions and 142 deletions
+5 -2
View File
@@ -17,8 +17,6 @@ namespace BBM
class LobbySystem : public WAL::System<LobbyComponent, Drawable2DComponent>
{
private:
//! @brief Add a controller for the player.
static void _addController(WAL::Entity &player, ControllableComponent::Layout layout);
void _nextColor(WAL::ViewEntity<LobbyComponent, Drawable2DComponent> &entity);
@@ -29,6 +27,11 @@ namespace BBM
public:
static std::array<std::string, 4> colors;
//! @brief Add a controller for the player.
static void addController(WAL::Entity &player, ControllableComponent::Layout layout);
static void createTile(std::shared_ptr<WAL::Scene> scene, WAL::Entity &player, int color, int playerCount);
//! @inherit
void onUpdate(WAL::ViewEntity<LobbyComponent, Drawable2DComponent> &entity, std::chrono::nanoseconds dtime) override;