From c1d5b1fc8fcdd3a9a154a6ed59637c839b94f115 Mon Sep 17 00:00:00 2001 From: Melledy <52122272+Melledy@users.noreply.github.com> Date: Mon, 18 Apr 2022 10:14:45 -0700 Subject: [PATCH] Set scene names to generate in the handbook --- src/main/java/emu/grasscutter/tools/Tools.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/emu/grasscutter/tools/Tools.java b/src/main/java/emu/grasscutter/tools/Tools.java index b7c565672..2e4a7e153 100644 --- a/src/main/java/emu/grasscutter/tools/Tools.java +++ b/src/main/java/emu/grasscutter/tools/Tools.java @@ -20,6 +20,7 @@ import emu.grasscutter.data.ResourceLoader; import emu.grasscutter.data.def.AvatarData; import emu.grasscutter.data.def.ItemData; import emu.grasscutter.data.def.MonsterData; +import emu.grasscutter.data.def.SceneData; public final class Tools { @@ -63,6 +64,17 @@ public final class Tools { writer.println(); + writer.println("// Scenes"); + list = new ArrayList<>(GenshinData.getSceneDataMap().keySet()); + Collections.sort(list); + + for (Integer id : list) { + SceneData data = GenshinData.getSceneDataMap().get(id); + writer.println(data.getId() + " : " + data.getScriptData()); + } + + writer.println(); + writer.println("// Monsters"); list = new ArrayList<>(GenshinData.getMonsterDataMap().keySet()); Collections.sort(list);