File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ <wpf : ResourceDictionary xml : space =" preserve" xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml" xmlns : s =" clr-namespace:System;assembly=mscorlib" xmlns : ss =" urn:shemas-jetbrains-com:settings-storage-xaml" xmlns : wpf =" http://schemas.microsoft.com/winfx/2006/xaml/presentation" >
2
+ <s : Boolean x : Key =" /Default/UserDictionary/Words/=Spacebar/@EntryIndexedValue" >True</s : Boolean ></wpf : ResourceDictionary >
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using Match3 . Template . Interfaces ;
3
+
4
+ namespace Terminal . Match3 . GameModes
5
+ {
6
+ public class GameInfoMode : IGameMode , IDeactivatable
7
+ {
8
+ public event EventHandler Finished ;
9
+
10
+ public void Activate ( )
11
+ {
12
+ Console . ForegroundColor = ConsoleColor . DarkYellow ;
13
+ Console . WriteLine ( ) ;
14
+ Console . WriteLine ( "Navigation: Arrow keys" ) ;
15
+ Console . WriteLine ( "Selection: Spacebar key" ) ;
16
+ Console . WriteLine ( "Exit: Enter key" ) ;
17
+
18
+ Console . ForegroundColor = ConsoleColor . Gray ;
19
+ Console . WriteLine ( ) ;
20
+ Console . WriteLine ( "Press any key to continue..." ) ;
21
+
22
+ Console . ReadKey ( true ) ;
23
+ Finished ? . Invoke ( this , EventArgs . Empty ) ;
24
+ }
25
+
26
+ public void Deactivate ( )
27
+ {
28
+ Console . Clear ( ) ;
29
+ }
30
+ }
31
+ }
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ await Host
21
21
. ConfigureServices ( services =>
22
22
{
23
23
services . AddHostedService < GameService > ( ) ;
24
+ services . AddTransient < IGameMode , GameInfoMode > ( ) ;
24
25
services . AddTransient < IGameMode , GameInitMode > ( ) ;
25
26
services . AddTransient < IGameMode , GamePlayMode > ( ) ;
26
27
services . AddInfrastructure ( ) ;
You can’t perform that action at this time.
0 commit comments