fix: updateRoom
This commit is contained in:
parent
68a056b3a1
commit
388048553d
@ -62,24 +62,6 @@ public List<Question> GetQuestionsByPlayer(Player player)
|
|||||||
return questions;
|
return questions;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Proposition> GetPropositionsByPlayer(Player player)
|
|
||||||
{
|
|
||||||
List<Proposition> propositions = new();
|
|
||||||
|
|
||||||
foreach (Question question in GetQuestionList())
|
|
||||||
{
|
|
||||||
foreach (Proposition proposition in new List<Proposition>(question.propositions.Values))
|
|
||||||
{
|
|
||||||
if (proposition.owner.id == player.id)
|
|
||||||
{
|
|
||||||
propositions.Add(proposition);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return propositions;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void SetPlayersAreReady(int _state)
|
public void SetPlayersAreReady(int _state)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user