Skip to content

Commit

Permalink
添加项目文件。
Browse files Browse the repository at this point in the history
  • Loading branch information
Megghy committed Aug 21, 2021
1 parent bf540a4 commit aad4200
Show file tree
Hide file tree
Showing 21 changed files with 11,409 additions and 0 deletions.
Binary file added DamageStatistic.zip
Binary file not shown.
Binary file added DamageStatistic/BCrypt.Net.dll
Binary file not shown.
201 changes: 201 additions & 0 deletions DamageStatistic/BCrypt.Net.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions DamageStatistic/Config.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using TShockAPI;
using TShockAPI.Hooks;

namespace VeinMiner
{
public class Config
{
public static void Load(ReloadEventArgs args = null)
{
try
{
if (!File.Exists(Path.Combine(TShock.SavePath, "VeinMiner.json"))) FileTools.CreateIfNot(Path.Combine(TShock.SavePath, "VeinMiner.json"), JsonConvert.SerializeObject(VeinMiner.Config, Formatting.Indented));
VeinMiner.Config = JsonConvert.DeserializeObject<Config>(File.ReadAllText(Path.Combine(TShock.SavePath, "VeinMiner.json")));
if (args != null) TShock.Log.ConsoleInfo($"<VeinMiner> 已重载配置.");
}
catch (Exception ex) { TShock.Log.Error(ex.Message); TShock.Log.ConsoleError("<VeinMiner> 配置文件读取失败."); }
}
public bool Enable = true;
public bool Broadcast = true;
public bool PutInInventory = true;
public List<int> Tile = new() { 7, 166, 6, 167, 9, 168, 8, 169, 56, 107, 221, 108, 222, 111, 223, 211, 37, 22, 204, 58 };
public List<Exchange> Exchange = new()
{
new()
{
OnlyGiveItem = true,
MinSize = 10,
Type = 169,
Item = new() { { 953, 1 }, { 2425, 5 } }
}
};
}
public struct Exchange
{
public bool OnlyGiveItem;
public int MinSize;
public int Type;
public Dictionary<int, int> Item;
}
}
Binary file added DamageStatistic/HttpServer.dll
Binary file not shown.
Binary file added DamageStatistic/Mono.Data.Sqlite.dll
Binary file not shown.
Binary file added DamageStatistic/MySql.Data.dll
Binary file not shown.
Binary file added DamageStatistic/Newtonsoft.Json.dll
Binary file not shown.
Loading

0 comments on commit aad4200

Please sign in to comment.