Clean up all files

This commit is contained in:
2022-05-13 11:39:07 +08:00
parent 3defcbbdc1
commit 2a3ba29b1d
18 changed files with 68 additions and 88 deletions

View File

@@ -1,13 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GrasscutterTools.Game.Gacha
namespace GrasscutterTools.Game.Gacha
{
public enum BannerType
{
STANDARD, EVENT, WEAPON
}
}
}

View File

@@ -117,6 +117,5 @@ namespace GrasscutterTools.Game.Gacha
/// </summary>
[JsonProperty("hardPity", DefaultValueHandling = DefaultValueHandling.Ignore), DefaultValue(90)]
public int HardPity { get; set; } = 90;
}
}

View File

@@ -4,12 +4,12 @@
{
public GameCommand(string name, string command)
{
Name=name;
Command=command;
Name = name;
Command = command;
}
public string Name { get; set; }
public string Command { get; set; }
}
}
}

View File

@@ -52,6 +52,5 @@ namespace GrasscutterTools.Game
public static ItemMap Ornaments { get; private set; }
public static ItemMap GachaBannerPrefabs { get; private set; }
}
}

View File

@@ -19,7 +19,7 @@ namespace GrasscutterTools.Game
var si = line.IndexOf(':');
if (si > 0 && int.TryParse(line.Substring(0, si).Trim(), out int id))
{
var name = line.Substring(si+1).Trim();
var name = line.Substring(si + 1).Trim();
if (!string.IsNullOrEmpty(name))
{
//IdMap[id] = name;
@@ -41,17 +41,16 @@ namespace GrasscutterTools.Game
//List<int> IdList;
//List<string> NameList;
public int Count => Ids.Length;
//public string this[int id] => IdMap[id];
//public int this[string name] => NameMap[name];
public int[] Ids { get; }
public string[] Names { get; }
public string[] Lines { get; }
}
}
}

View File

@@ -1,5 +1,4 @@
using System.Collections.Generic;
using System.Text;
using System.Text;
using GrasscutterTools.Properties;
@@ -13,9 +12,9 @@ namespace GrasscutterTools.Game
{
public Stat(string name, string argName, bool percent, string tip = "")
{
Name=name;
ArgName=argName;
Percent=percent;
Name = name;
ArgName = argName;
Percent = percent;
Tip = tip;
}

View File

@@ -1,9 +1,6 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
@@ -22,7 +19,7 @@ namespace GrasscutterTools.Game
public string[] TextMapFilePaths;
public string[] TextMapFiles;
void LoadManualTextMap(string manualTextMapPath)
private void LoadManualTextMap(string manualTextMapPath)
{
using (var fs = File.OpenRead(manualTextMapPath))
using (var sr = new StreamReader(fs))
@@ -41,7 +38,7 @@ namespace GrasscutterTools.Game
}
}
void LoadTextMaps(string textMapDirPath)
private void LoadTextMaps(string textMapDirPath)
{
TextMapFilePaths = Directory.GetFiles(textMapDirPath, "TextMap*.json");
if (TextMapFilePaths.Length == 0)
@@ -65,6 +62,5 @@ namespace GrasscutterTools.Game
}
}
}
}
}
}