Add files via upload

This commit is contained in:
sonic 2024-08-18 11:35:14 +02:00 committed by GitHub
parent 6a9f2722e1
commit 489f262116
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 49 additions and 0 deletions

View 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
View 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");
}
}

View 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");
}
}