mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 21:55:42 +12:00
Fix crashing on GetWinners of WaterBaloonGame.
This commit is contained in:
parent
c1a2b4d78f
commit
c9caa69805
1 changed files with 8 additions and 2 deletions
|
@ -15,12 +15,18 @@ namespace HISP.Game.Events
|
||||||
Active = false;
|
Active = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private List<ThrownCounter> thrownWaterBalloonMemory;
|
private List<ThrownCounter> thrownWaterBalloonMemory;
|
||||||
public ThrownCounter[] ThrownWaterBalloonMemory;
|
|
||||||
public bool Active;
|
public bool Active;
|
||||||
private Timer gameTimeout;
|
private Timer gameTimeout;
|
||||||
private const int WATER_BALLOON_GAME_TIMEOUT = 5;
|
private const int WATER_BALLOON_GAME_TIMEOUT = 5;
|
||||||
|
public ThrownCounter[] ThrownWaterBalloonMemory
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return thrownWaterBalloonMemory.ToArray();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public class ThrownCounter
|
public class ThrownCounter
|
||||||
{
|
{
|
||||||
public ThrownCounter(WaterBalloonGame game, User userHit, int numThrown)
|
public ThrownCounter(WaterBalloonGame game, User userHit, int numThrown)
|
||||||
|
|
Loading…
Add table
Reference in a new issue