File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
samples/Terminal.Match3/GridTiles/States Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,24 +6,24 @@ namespace Terminal.Match3.GridTiles.States
6
6
public class LockedState : GridTile , IStatefulSlot
7
7
{
8
8
private bool _isLocked = true ;
9
- private TileGroup _group = TileGroup . Locked ;
9
+ private int _group = ( int ) TileGroup . Locked ;
10
10
11
- public override int GroupId => ( int ) _group ;
11
+ public override int GroupId => _group ;
12
12
public override bool IsLocked => _isLocked ;
13
13
public override bool CanContainItem => true ;
14
14
15
15
public bool NextState ( )
16
16
{
17
17
_isLocked = false ;
18
- _group = TileGroup . Available ;
18
+ _group = ( int ) TileGroup . Available ;
19
19
20
20
return false ;
21
21
}
22
22
23
23
public void ResetState ( )
24
24
{
25
25
_isLocked = true ;
26
- _group = TileGroup . Locked ;
26
+ _group = ( int ) TileGroup . Locked ;
27
27
}
28
28
}
29
29
}
You can’t perform that action at this time.
0 commit comments