cleanup console stuff

This commit is contained in:
2024-04-06 15:16:03 +03:00
parent e7dc19b1a1
commit c17614e393
13 changed files with 270 additions and 370 deletions

View File

@@ -3,13 +3,8 @@ using System.IO;
namespace Game;
public class ConfigParser
public static class ConfigParser
{
private ConfigParser()
{
}
public static Config ParseFile(string path)
{
Config config = new Config();
@@ -18,8 +13,8 @@ public class ConfigParser
Console.Print($"Config file not found in path: {path}");
return config;
}
/*using*/ FileStream file = File.OpenRead(path);
/*using*/ StreamReader sr = new StreamReader(file);
using FileStream file = File.OpenRead(path);
using StreamReader sr = new StreamReader(file);
List<string> commands = new List<string>();
string line;