mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-07 11:34:46 +00:00
adding more checking
This commit is contained in:
@@ -197,6 +197,10 @@ namespace BBM {
|
|||||||
.addComponent<PositionComponent>(224 * (countPlayer + 1) + 200 * countPlayer, 1080 / 3, 0)
|
.addComponent<PositionComponent>(224 * (countPlayer + 1) + 200 * countPlayer, 1080 / 3, 0)
|
||||||
.addComponent<Drawable2DComponent, RAY::Texture>();
|
.addComponent<Drawable2DComponent, RAY::Texture>();
|
||||||
auto *lobby = playerLogo.addComponent<ResumeLobbyComponent>(countPlayer, ready, playerTile, colors.at(colorStr)).tryGetComponent<ResumeLobbyComponent>();
|
auto *lobby = playerLogo.addComponent<ResumeLobbyComponent>(countPlayer, ready, playerTile, colors.at(colorStr)).tryGetComponent<ResumeLobbyComponent>();
|
||||||
|
std::string iaPropertyValue = node.getProperty("ia");
|
||||||
|
if (iaPropertyValue != "false" && iaPropertyValue != "true") {
|
||||||
|
throw ParserError("Invalid value for ia property");
|
||||||
|
}
|
||||||
if (node.getProperty("ia") == "true") {
|
if (node.getProperty("ia") == "true") {
|
||||||
auto *texture = dynamic_cast<RAY::Texture *>(ready.getComponent<Drawable2DComponent>().drawable.get());
|
auto *texture = dynamic_cast<RAY::Texture *>(ready.getComponent<Drawable2DComponent>().drawable.get());
|
||||||
lobby->ready = true;
|
lobby->ready = true;
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
#include "AnimationsSystem.hpp"
|
#include "AnimationsSystem.hpp"
|
||||||
#include "Component/Animation/AnimationsComponent.hpp"
|
#include "Component/Animation/AnimationsComponent.hpp"
|
||||||
#include "Model/Model.hpp"
|
#include "Model/Model.hpp"
|
||||||
#include <iostream>
|
|
||||||
#include "Component/Tag/TagComponent.hpp"
|
#include "Component/Tag/TagComponent.hpp"
|
||||||
#include "Component/Position/PositionComponent.hpp"
|
#include "Component/Position/PositionComponent.hpp"
|
||||||
#include "Component/Renderer/Drawable3DComponent.hpp"
|
#include "Component/Renderer/Drawable3DComponent.hpp"
|
||||||
|
|||||||
Reference in New Issue
Block a user