mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
21 lines
496 B
C#
21 lines
496 B
C#
using System;
|
|
using System.IO;
|
|
using System.Text.Json;
|
|
|
|
namespace Csharp_Server_DotNetCore
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
var tables = new cfg.Tables(LoadJson);
|
|
Console.WriteLine("== load succ ==");
|
|
}
|
|
|
|
private static JsonElement LoadJson(string file)
|
|
{
|
|
return JsonDocument.Parse(System.IO.File.ReadAllBytes("../../../../GenerateDatas/json/" + file + ".json")).RootElement;
|
|
}
|
|
}
|
|
}
|