Add numbers
This commit is contained in:
@@ -18,6 +18,7 @@ namespace CoopSweeper.GameTypes
|
||||
public FieldState State { get; set; }
|
||||
|
||||
public int SurroundingBombs { get; set; }
|
||||
|
||||
public int CheckID { get; set; }
|
||||
|
||||
public DisplayState GetDisplayState()
|
||||
@@ -31,7 +32,7 @@ namespace CoopSweeper.GameTypes
|
||||
case FieldState.REVEALED:
|
||||
if(ContainsBomb)
|
||||
return DisplayState.BOMB;
|
||||
return 0;
|
||||
return (DisplayState)SurroundingBombs;
|
||||
}
|
||||
return DisplayState.ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user