diff --git a/lib-numberxd/src/main/love/distributedrebirth/numberxd/base2t/BasePartFactory.java b/lib-numberxd/src/main/love/distributedrebirth/numberxd/base2t/Base2PartsFactory.java similarity index 95% rename from lib-numberxd/src/main/love/distributedrebirth/numberxd/base2t/BasePartFactory.java rename to lib-numberxd/src/main/love/distributedrebirth/numberxd/base2t/Base2PartsFactory.java index 421c7fc3..6cfe7f76 100644 --- a/lib-numberxd/src/main/love/distributedrebirth/numberxd/base2t/BasePartFactory.java +++ b/lib-numberxd/src/main/love/distributedrebirth/numberxd/base2t/Base2PartsFactory.java @@ -25,9 +25,9 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnCoffinʸᴰ; import love.distributedrebirth.bassboonyd.BãßBȍőnPackageInfoʸᴰ; @BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") -@BãßBȍőnClassInfoʸᴰ(name = "BasePartFactory", purpose = "Factory to access the bases.") +@BãßBȍőnClassInfoʸᴰ(name = "Base2PartsFactory", purpose = "Factory to access the bases.") @BãßBȍőnPackageInfoʸᴰ(name = "love.distributedrebirth.numberxd") -public enum BasePartFactory implements DefaultEnumInstanceᴶᴹˣ { +public enum Base2PartsFactory implements DefaultEnumInstanceᴶᴹˣ { INSTANCE; @@ -49,7 +49,7 @@ public enum BasePartFactory implements DefaultEnumInstanceᴶᴹˣ BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance(); public BãßBȍőnCoffinʸᴰ GET_BBC() { return BBC; } - private BasePartFactory() { + private Base2PartsFactory() { BBC.BOON_INIT(this); BȍőnJmxInit(MBeanStoreKeyᴶᴹˣ.JMX); baseT02Reads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "baseT02Reads"); diff --git a/lib-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/warp/TOSWarpCore.java b/lib-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/warp/TOSWarpCore.java index 6bb25bfc..0e7876ef 100644 --- a/lib-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/warp/TOSWarpCore.java +++ b/lib-numberxd/src/main/love/distributedrebirth/numberxd/base2t/part/warp/TOSWarpCore.java @@ -13,7 +13,7 @@ import love.distributedrebirth.bassboonyd.jmx.MBeanStoreKeyᴶᴹˣ; import love.distributedrebirth.bassboonyd.jmx.DefaultEnumInstanceᴶᴹˣ; import love.distributedrebirth.bassboonyd.jmx.GuageCounterᴶᴹˣ; import love.distributedrebirth.bassboonyd.jmx.StringAttributeᴶᴹˣ; -import love.distributedrebirth.numberxd.base2t.BasePartFactory; +import love.distributedrebirth.numberxd.base2t.Base2PartsFactory; import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartKeyʸᴰ; import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartʸᴰ; @@ -49,8 +49,8 @@ public enum TOSWarpCore implements DefaultEnumInstanceᴶᴹˣ part:BasePartFactory.INSTANCE.BãßBuildPartsByBase(base)) { + for (int base:Base2PartsFactory.INSTANCE.BãßBases()) { + for (BãßBȍőnPartʸᴰ part:Base2PartsFactory.INSTANCE.BãßBuildPartsByBase(base)) { BãßBȍőnCoffinOpenʸᴰ.class.cast(part.GET_BBC()).LOCK_COFFIN(); } } @@ -61,9 +61,9 @@ public enum TOSWarpCore implements DefaultEnumInstanceᴶᴹˣ[] bases = BasePartFactory.INSTANCE.BãßBuildPartsByBase(base); + BãßBȍőnPartʸᴰ[] bases = Base2PartsFactory.INSTANCE.BãßBuildPartsByBase(base); heart.setBass(bases[0].BãßInstances().length); for (BãßBȍőnPartʸᴰ part:bases) { WaterCipherHeartTone tone = new WaterCipherHeartTone(); @@ -85,7 +85,7 @@ public enum TOSWarpCore implements DefaultEnumInstanceᴶᴹˣ chinaKey = new HashMap<>(); Map chinaValue = new HashMap<>(); for (WaterCipherHeart heart:warpBucket.theWater().getCipherHearts()) { - BãßBȍőnPartʸᴰ[] bases = BasePartFactory.INSTANCE.BãßBuildPartsByBase(heart.getBass()); + BãßBȍőnPartʸᴰ[] bases = Base2PartsFactory.INSTANCE.BãßBuildPartsByBase(heart.getBass()); Map> baseParts = new HashMap<>(); for (BãßBȍőnPartʸᴰ base:bases) { baseParts.put(base.BȍőnNaam(), base); @@ -109,7 +109,7 @@ public enum TOSWarpCore implements DefaultEnumInstanceᴶᴹˣ[] bases = BasePartFactory.INSTANCE.BãßBuildPartsByBase(heart.getBass()); + BãßBȍőnPartʸᴰ[] bases = Base2PartsFactory.INSTANCE.BãßBuildPartsByBase(heart.getBass()); Map> baseParts = new HashMap<>(); for (BãßBȍőnPartʸᴰ base:bases) { baseParts.put(base.BȍőnNaam(), base); diff --git a/lib-numberxd/src/test/love/distributedrebirth/numberxd/base2t/BasePartFactoryTest.java b/lib-numberxd/src/test/love/distributedrebirth/numberxd/base2t/BasePartFactoryTest.java index 832f01b2..d8b667b9 100644 --- a/lib-numberxd/src/test/love/distributedrebirth/numberxd/base2t/BasePartFactoryTest.java +++ b/lib-numberxd/src/test/love/distributedrebirth/numberxd/base2t/BasePartFactoryTest.java @@ -14,7 +14,7 @@ public class BasePartFactoryTest { @Test public void testSupportedBases() { - int[] bases = BasePartFactory.INSTANCE.BãßBases(); + int[] bases = Base2PartsFactory.INSTANCE.BãßBases(); Assertions.assertNotNull(bases); Assertions.assertTrue(bases.length > 1); Assertions.assertTrue(bases.length < 100); @@ -23,8 +23,8 @@ public class BasePartFactoryTest { @Test public void testGlobalChinaKeyMap() { Map global = new HashMap<>(); - for (int base:BasePartFactory.INSTANCE.BãßBases()) { - for (BãßBȍőnPartʸᴰ part:BasePartFactory.INSTANCE.BãßBuildPartsByBase(base)) { + for (int base:Base2PartsFactory.INSTANCE.BãßBases()) { + for (BãßBȍőnPartʸᴰ part:Base2PartsFactory.INSTANCE.BãßBuildPartsByBase(base)) { Assertions.assertFalse(global.containsKey(part.BȍőnChinaKey()), "key: "+part.BȍőnChinaKey()); global.put(part.BȍőnChinaKey(), part.BȍőnChinaValue()); } @@ -35,8 +35,8 @@ public class BasePartFactoryTest { @Test public void testGlobalChinaValueMap() { Map global = new HashMap<>(); - for (int base:BasePartFactory.INSTANCE.BãßBases()) { - for (BãßBȍőnPartʸᴰ part:BasePartFactory.INSTANCE.BãßBuildPartsByBase(base)) { + for (int base:Base2PartsFactory.INSTANCE.BãßBases()) { + for (BãßBȍőnPartʸᴰ part:Base2PartsFactory.INSTANCE.BãßBuildPartsByBase(base)) { Assertions.assertFalse(global.containsKey(part.BȍőnChinaValue())); global.put(part.BȍőnChinaValue(), part.BȍőnChinaValue()); } @@ -48,8 +48,8 @@ public class BasePartFactoryTest { public void testGlobalToneMap() { boolean duplicate = false; Map global = new HashMap<>(); - for (int base:BasePartFactory.INSTANCE.BãßBases()) { - for (BãßBȍőnPartʸᴰ part:BasePartFactory.INSTANCE.BãßBuildPartsByBase(base)) { + for (int base:Base2PartsFactory.INSTANCE.BãßBases()) { + for (BãßBȍőnPartʸᴰ part:Base2PartsFactory.INSTANCE.BãßBuildPartsByBase(base)) { if (global.containsKey(part.BȍőnDialTone())) { duplicate = true; break; diff --git a/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/SystemBasePartRenderer.java b/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/SystemBasePartRenderer.java index 22ace274..a7439ad2 100644 --- a/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/SystemBasePartRenderer.java +++ b/main-gdxapp/src/main/love/distributedrebirth/gdxapp/screen/SystemBasePartRenderer.java @@ -11,7 +11,7 @@ import imgui.type.ImInt; import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; import love.distributedrebirth.gdxapp.GDXAppMain; import love.distributedrebirth.gdxapp.ImGuiRendererMain; -import love.distributedrebirth.numberxd.base2t.BasePartFactory; +import love.distributedrebirth.numberxd.base2t.Base2PartsFactory; import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartAlt1ʸᴰ; import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartAlt2ʸᴰ; import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartAlt3ʸᴰ; @@ -35,14 +35,14 @@ public class SystemBasePartRenderer extends ImGuiRendererMain { if (ImGui.begin("Base part", widgetOpen)) { List bases = new ArrayList<>(); - for (int base:BasePartFactory.INSTANCE.BãßBases()) { + for (int base:Base2PartsFactory.INSTANCE.BãßBases()) { bases.add(Integer.toString(base)); } String[] items = new String[bases.size()]; items = bases.toArray(items); String selectedItem = items[selectedBasePart.get()]; Integer baseNumber = Integer.valueOf(selectedItem); - BãßBȍőnPartʸᴰ[] baseParts = BasePartFactory.INSTANCE.BãßBuildPartsByBase(baseNumber); + BãßBȍőnPartʸᴰ[] baseParts = Base2PartsFactory.INSTANCE.BãßBuildPartsByBase(baseNumber); ImGui.combo("Base", selectedBasePart, items);