mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 10:46:17 +00:00
update
This commit is contained in:
15
luban_examples/Projects/java_json/src/main/Main.java
Normal file
15
luban_examples/Projects/java_json/src/main/Main.java
Normal file
@@ -0,0 +1,15 @@
|
||||
import com.google.gson.Gson;
|
||||
import com.google.gson.JsonParser;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Paths;
|
||||
import cfg.*;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) throws IOException {
|
||||
Tables tables = new Tables(file -> JsonParser.parseString(
|
||||
new String(Files.readAllBytes(Paths.get("../GenerateDatas/json", file + ".json")), "UTF-8")));
|
||||
System.out.println("== run == " + tables.getTbGlobalConfig().getX1());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user