Closed elmerbulthuis closed 6 years ago
welke feature file hoort hierbij ??
Eigenlijk wordt dit in vrijwel elke feature file getest, omdat in elke test gebruikt wordt gemaakt van de player name en vaak ook van stats per player. Als players er niet goed in zitten, dan falen vrijwel alle features.
We gaan hier een test voor maken!
@Smashmint kan jij een feature maken voor spelers in een game? van een stuk of 3 logs welke spelers erin zaten?
@TNGPS Belangrijk om te weten is: Player disconnect -> remove from player list. Als hij opnieuw connect (reconnect) voordat de game is aflopen dan moet hij teruggezet worden inde player list.
@Smashmint niet helemaal, als een player disconnect wordt connected op false gezet!
Dit werkt hetzelfde als bij CSGO.
Ook leuk om te weten is dat als een player opnieuw connect, krijgt hij een nieuwe key, en daarom lijkt het alsof het een nieuwe player is. De player kan zo meerdere malen voorkomen, elke keer als hij connect is hij een nieuwe player.
@TNGPS er is een test beschikbaar voor de players, deze is echter nog nooit gedaan dus we weten niet 100% zeker of ie correct is. Als hij faalt kan het dus ook bij ons liggen!
ff op letten!
closed by #33
in the
PlayerContainerState
there is a player field that is a hash of all players that are related to the match. When a player connects he should be added to this list, when he disconnects, the connected field of the player should be set to false.Teams have a statistic property, we will set that to an empty hash
{}
for now.