mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-12 00:38:48 -07:00
Add files via upload
This commit is contained in:
parent
6a9f2722e1
commit
489f262116
23
src/Util/OpenGamePrompt.cs
Normal file
23
src/Util/OpenGamePrompt.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using Microsoft.AspNetCore.Mvc.Filters;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace sodoff.Utils;
|
||||
|
||||
public class OpenGamePrompt {
|
||||
public static void prompt() {
|
||||
string key;
|
||||
Console.WriteLine("Do you want to open the game");
|
||||
Console.WriteLine("yes or no");
|
||||
key = Console.ReadLine();
|
||||
if (key == "yes")
|
||||
{
|
||||
Console.WriteLine("Opening game");
|
||||
Process.Start(Directory.GetParent(Environment.CurrentDirectory) + "/Client/" + "DOMain.exe");
|
||||
}
|
||||
if (key == "no")
|
||||
{
|
||||
Console.WriteLine("You can manually open the game now");
|
||||
}
|
||||
}
|
||||
}
|
10
src/Util/PrintInfo.cs
Normal file
10
src/Util/PrintInfo.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using Microsoft.AspNetCore.Mvc.Filters;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace sodoff.Utils;
|
||||
|
||||
public class PrintInfo {
|
||||
public static void print() {
|
||||
Console.WriteLine("Press Ctrl + C to close the server");
|
||||
}
|
||||
}
|
16
src/Util/VerboseLogging.cs
Normal file
16
src/Util/VerboseLogging.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using Microsoft.AspNetCore.Mvc.Filters;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace sodoff.Utils;
|
||||
|
||||
public class VerboseLogging {
|
||||
public static void log() {
|
||||
Console.WriteLine("[INFO] Server is loading Assets");
|
||||
Console.WriteLine("[INFO] Loading api");
|
||||
}
|
||||
public static void ServerStartedMessage()
|
||||
{
|
||||
Console.WriteLine("Server is running");
|
||||
Console.WriteLine("You can run the game now");
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user