Skip to content

Commit 91694ca

Browse files
committed
wait command
1 parent a7828d8 commit 91694ca

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

.gitignore

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
.vs/
2-
**/bin/**
3-
**/obj/**
4-
**/Debug/**
5-
**/Release/**
2+
**/bin
3+
**/obj
4+
**/Debug
5+
**/Release
66
**/**.exe
7-
**/**.pbd
8-
**/**.dll
7+
**/**.pbd

7Sharp/Intrerpreter/Sysfunctions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ internal static void Init(ref Interpreter interpreter)
3636
Interpreter.functions.Add("fgColor", new _7sFunction("fgColor", 1, new Action<dynamic>(FgColor)));
3737
Interpreter.functions.Add("bgColor", new _7sFunction("bgColor", 1, new Action<dynamic>(BgColor)));
3838
Interpreter.functions.Add("clear", new _7sFunction("clear", 0, new Action(Clear)));
39+
Interpreter.functions.Add("wait", new _7sFunction("wait", 1, new Action<int>(Wait)));
3940
}
4041
#region main
42+
static void Wait(int ms) => System.Threading.Thread.Sleep(ms);
43+
4144
static void ClearConsole() => Clear();
4245

4346
static string Read() => ReadLine();

7Sharp/obj/Debug/7Sharp.exe

512 Bytes
Binary file not shown.

7Sharp/obj/Debug/7Sharp.pdb

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)