Added number matrix viewer and fixed generator
This commit is contained in:
parent
ce325e4bf9
commit
7c0c7d7df7
|
@ -11,6 +11,7 @@ import love.distributedrebirth.gdxapp4d.app.glyphdemo.apps.DemoUnicodePlaneDeskA
|
||||||
import love.distributedrebirth.gdxapp4d.app.glyphdemo.apps.DemoUnitConverterDeskApp;
|
import love.distributedrebirth.gdxapp4d.app.glyphdemo.apps.DemoUnitConverterDeskApp;
|
||||||
import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注;
|
import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注;
|
||||||
import love.distributedrebirth.gdxapp4d.app.glyphdemo.apps.DemoGlyphSetDeskApp;
|
import love.distributedrebirth.gdxapp4d.app.glyphdemo.apps.DemoGlyphSetDeskApp;
|
||||||
|
import love.distributedrebirth.gdxapp4d.app.glyphdemo.apps.DemoNumberMatrixDeskApp;
|
||||||
import love.distributedrebirth.gdxapp4d.app.glyphdemo.apps.DemoNumberPartDeskApp;
|
import love.distributedrebirth.gdxapp4d.app.glyphdemo.apps.DemoNumberPartDeskApp;
|
||||||
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxLog;
|
import love.distributedrebirth.gdxapp4d.tos4.service.SystemGdxLog;
|
||||||
import love.distributedrebirth.gdxapp4d.vrgem4.service.VrGem4DeskAppService;
|
import love.distributedrebirth.gdxapp4d.vrgem4.service.VrGem4DeskAppService;
|
||||||
|
@ -43,12 +44,14 @@ public class GlyphDemoComponent {
|
||||||
private final DeskAppLauncher unicodeLauncher;
|
private final DeskAppLauncher unicodeLauncher;
|
||||||
private final DeskAppLauncher baseGlyphLauncher;
|
private final DeskAppLauncher baseGlyphLauncher;
|
||||||
private final DeskAppLauncher basePartLauncher;
|
private final DeskAppLauncher basePartLauncher;
|
||||||
|
private final DeskAppLauncher numberMatrixLauncher;
|
||||||
private final DeskAppLauncher unitConverterLauncher;
|
private final DeskAppLauncher unitConverterLauncher;
|
||||||
|
|
||||||
public GlyphDemoComponent() {
|
public GlyphDemoComponent() {
|
||||||
unicodeLauncher = new DeskAppLauncher(DeskAppMenuSection.PROGRAMMING, "Unicode Plane", () -> new DemoUnicodePlaneDeskApp(createBundle(), unicode4DService));
|
unicodeLauncher = new DeskAppLauncher(DeskAppMenuSection.PROGRAMMING, "Unicode Plane", () -> new DemoUnicodePlaneDeskApp(createBundle(), unicode4DService));
|
||||||
baseGlyphLauncher = new DeskAppLauncher(DeskAppMenuSection.PROGRAMMING, "Glyph Set", () -> new DemoGlyphSetDeskApp(createBundle()));
|
baseGlyphLauncher = new DeskAppLauncher(DeskAppMenuSection.PROGRAMMING, "Glyph Set", () -> new DemoGlyphSetDeskApp(createBundle()));
|
||||||
basePartLauncher = new DeskAppLauncher(DeskAppMenuSection.PROGRAMMING, "Number Parts", () -> new DemoNumberPartDeskApp(createBundle()));
|
basePartLauncher = new DeskAppLauncher(DeskAppMenuSection.EDUCATION, "Number Parts", () -> new DemoNumberPartDeskApp(createBundle()));
|
||||||
|
numberMatrixLauncher = new DeskAppLauncher(DeskAppMenuSection.EDUCATION, "Number Matrix", () -> new DemoNumberMatrixDeskApp(createBundle()));
|
||||||
unitConverterLauncher = new DeskAppLauncher(DeskAppMenuSection.SCIENCE, "Unitˣᶜ Converter", () -> new DemoUnitConverterDeskApp(unitManager));
|
unitConverterLauncher = new DeskAppLauncher(DeskAppMenuSection.SCIENCE, "Unitˣᶜ Converter", () -> new DemoUnitConverterDeskApp(unitManager));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,6 +65,7 @@ public class GlyphDemoComponent {
|
||||||
deskAppService.installDeskApp(unicodeLauncher);
|
deskAppService.installDeskApp(unicodeLauncher);
|
||||||
deskAppService.installDeskApp(baseGlyphLauncher);
|
deskAppService.installDeskApp(baseGlyphLauncher);
|
||||||
deskAppService.installDeskApp(basePartLauncher);
|
deskAppService.installDeskApp(basePartLauncher);
|
||||||
|
deskAppService.installDeskApp(numberMatrixLauncher);
|
||||||
deskAppService.installDeskApp(unitConverterLauncher);
|
deskAppService.installDeskApp(unitConverterLauncher);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,6 +75,7 @@ public class GlyphDemoComponent {
|
||||||
deskAppService.removeDeskApp(unicodeLauncher);
|
deskAppService.removeDeskApp(unicodeLauncher);
|
||||||
deskAppService.removeDeskApp(baseGlyphLauncher);
|
deskAppService.removeDeskApp(baseGlyphLauncher);
|
||||||
deskAppService.removeDeskApp(basePartLauncher);
|
deskAppService.removeDeskApp(basePartLauncher);
|
||||||
|
deskAppService.removeDeskApp(numberMatrixLauncher);
|
||||||
deskAppService.removeDeskApp(unitConverterLauncher);
|
deskAppService.removeDeskApp(unitConverterLauncher);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,88 @@
|
||||||
|
package love.distributedrebirth.gdxapp4d.app.glyphdemo.apps;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.ResourceBundle;
|
||||||
|
|
||||||
|
import imgui.ImGui;
|
||||||
|
import imgui.flag.ImGuiTableFlags;
|
||||||
|
import imgui.type.ImBoolean;
|
||||||
|
import imgui.type.ImInt;
|
||||||
|
import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注;
|
||||||
|
import love.distributedrebirth.bassboon.jpp.lang.number.matrix.BãßBȍőnNumberMatrixʸᴰ;
|
||||||
|
import love.distributedrebirth.bassboon.jpp.lang.number.matrix.NumberMatrixFactory;
|
||||||
|
import love.distributedrebirth.bassboon.jpp.lang.number.matrix.NumberMatrixSet;
|
||||||
|
import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.AbstractDeskApp;
|
||||||
|
import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.DeskAppContourSection;
|
||||||
|
import love.distributedrebirth.gdxapp4d.vrgem4.service.deskapp.DeskAppRenderer;
|
||||||
|
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ʸᴰ;
|
||||||
|
import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartAlt4ʸᴰ;
|
||||||
|
import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartʸᴰ;
|
||||||
|
import love.distributedrebirth.numberxd.unicode.BaseGlyphSet;
|
||||||
|
|
||||||
|
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||||
|
public class DemoNumberMatrixDeskApp extends AbstractDeskApp implements DeskAppRenderer {
|
||||||
|
|
||||||
|
private final ResourceBundle bundle;
|
||||||
|
private ImInt selectedMatrixPart = new ImInt();
|
||||||
|
|
||||||
|
public DemoNumberMatrixDeskApp(ResourceBundle bundle) {
|
||||||
|
this.bundle = bundle;
|
||||||
|
}
|
||||||
|
|
||||||
|
// private String getTxt(String key) {
|
||||||
|
// return bundle.getString(DemoNumberMatrixDeskApp.class.getSimpleName()+"."+key);
|
||||||
|
// }
|
||||||
|
|
||||||
|
public void create() {
|
||||||
|
getContours().setTitle("NumberMatrix");
|
||||||
|
getContours().registrateContour(DeskAppContourSection.MAIN, this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render() {
|
||||||
|
List<String> bases = new ArrayList<>();
|
||||||
|
bases.add("2");
|
||||||
|
bases.add("3");
|
||||||
|
bases.add("4");
|
||||||
|
bases.add("5");
|
||||||
|
bases.add("6");
|
||||||
|
bases.add("7");
|
||||||
|
String[] items = new String[bases.size()];
|
||||||
|
items = bases.toArray(items);
|
||||||
|
String selectedItem = items[selectedMatrixPart.get()];
|
||||||
|
Integer baseNumber = Integer.valueOf(selectedItem);
|
||||||
|
NumberMatrixSet numberMatrix = NumberMatrixFactory.ײاللهזأَكْبَرײ.getFilmRol(baseNumber);
|
||||||
|
|
||||||
|
ImGui.combo("selectMatrix", selectedMatrixPart, items);
|
||||||
|
|
||||||
|
int columns = 2 + numberMatrix.getDimension();
|
||||||
|
int flags = ImGuiTableFlags.ScrollX | ImGuiTableFlags.RowBg | ImGuiTableFlags.BordersOuter | ImGuiTableFlags.BordersV;
|
||||||
|
ImGui.beginTable("base-part", columns, flags);
|
||||||
|
ImGui.tableSetupColumn("rȧñkNaam");
|
||||||
|
ImGui.tableSetupColumn("rȧñkRingToon");
|
||||||
|
for (int i=0;i<numberMatrix.getDimension();i++) {
|
||||||
|
ImGui.tableSetupColumn("col"+i);
|
||||||
|
}
|
||||||
|
ImGui.tableHeadersRow();
|
||||||
|
|
||||||
|
for (BãßBȍőnNumberMatrixʸᴰ<?> part:numberMatrix.values()) {
|
||||||
|
ImGui.tableNextRow();
|
||||||
|
|
||||||
|
ImGui.tableNextColumn();
|
||||||
|
ImGui.text(part.rȧñkNaam());
|
||||||
|
|
||||||
|
ImGui.tableNextColumn();
|
||||||
|
ImGui.text(part.rȧñkRingToon());
|
||||||
|
|
||||||
|
for (int i=0;i<numberMatrix.getDimension();i++) {
|
||||||
|
ImGui.tableNextColumn();
|
||||||
|
ImGui.text(Integer.toString(part.rȧñkNummerBlokWaarde(i)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ImGui.endTable();
|
||||||
|
}
|
||||||
|
}
|
|
@ -65,9 +65,9 @@ public interface BãßBȍőnCoffinDuytschenᵗˣᵗ {
|
||||||
// opt3 = "ן"
|
// opt3 = "ן"
|
||||||
// opt8 = "ך"
|
// opt8 = "ך"
|
||||||
class ױןיװיזױױודזיןןזזזןױ extends BãßBȍőnCoffinDuytschenᴬᵖᶦ {
|
class ױןיװיזױױודזיןןזזזןױ extends BãßBȍőnCoffinDuytschenᴬᵖᶦ {
|
||||||
public BãßBȍőnCoffinGhost ײןןזזײ(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> familyName) { return ᵃpᵢ.UNHOLY(familyName); }
|
public BãßBȍőnCoffinGhost ײןןזזײ(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> ײןןךז) { return ᵃpᵢ.UNHOLY(ײןןךז); }
|
||||||
public BãßBȍőnCoffinGhostSpell ײזזןןײןןךזזײ(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> familyName) { return ᵃpᵢ.UNHOLY_SPELL(familyName); }
|
public BãßBȍőnCoffinGhostSpell ײזזןןײןןךזזײ(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> ײןןךז) { return ᵃpᵢ.UNHOLY_SPELL(ײןןךז); }
|
||||||
public <T extends BãßBȍőnꝐŕḯṿª₮ḕ響ᴼᶠ> T ײןזןזןזײ(Class<T> noiseName) { return ᵃpᵢ.NOISE_OF(noiseName); }
|
public <T extends BãßBȍőnꝐŕḯṿª₮ḕ響ᴼᶠ> T ײןזןזןזײ(Class<T> ןזײ) { return ᵃpᵢ.NOISE_OF(ןזײ); }
|
||||||
}
|
}
|
||||||
|
|
||||||
class BASIC extends BãßBȍőnCoffinDuytschenᴬᵖᶦ {
|
class BASIC extends BãßBȍőnCoffinDuytschenᴬᵖᶦ {
|
||||||
|
@ -77,26 +77,26 @@ public interface BãßBȍőnCoffinDuytschenᵗˣᵗ {
|
||||||
}
|
}
|
||||||
|
|
||||||
class 中國 extends BãßBȍőnCoffinDuytschenᴬᵖᶦ {
|
class 中國 extends BãßBȍőnCoffinDuytschenᴬᵖᶦ {
|
||||||
public BãßBȍőnCoffinGhost 邪惡的(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> familyName) { return ᵃpᵢ.UNHOLY(familyName); }
|
public BãßBȍőnCoffinGhost 邪惡的(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> 姓) { return ᵃpᵢ.UNHOLY(姓); }
|
||||||
public BãßBȍőnCoffinGhostSpell 邪惡的龸魅力(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> familyName) { return ᵃpᵢ.UNHOLY_SPELL(familyName); }
|
public BãßBȍőnCoffinGhostSpell 邪惡的龸魅力(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> 姓) { return ᵃpᵢ.UNHOLY_SPELL(姓); }
|
||||||
public <T extends BãßBȍőnꝐŕḯṿª₮ḕ響ᴼᶠ> T 噪音龸的(Class<T> noiseName) { return ᵃpᵢ.NOISE_OF(noiseName); }
|
public <T extends BãßBȍőnꝐŕḯṿª₮ḕ響ᴼᶠ> T 噪音龸的(Class<T> 音名) { return ᵃpᵢ.NOISE_OF(音名); }
|
||||||
}
|
}
|
||||||
|
|
||||||
class 𓃬𓍄𓋹𓀭 extends BãßBȍőnCoffinDuytschenᴬᵖᶦ {
|
class 𓃬𓍄𓋹𓀭 extends BãßBȍőnCoffinDuytschenᴬᵖᶦ {
|
||||||
public BãßBȍőnCoffinGhost 𓆙𓄿𓏀𓃟𓇋𓇋𓄋(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> familyName) { return ᵃpᵢ.UNHOLY(familyName); }
|
public BãßBȍőnCoffinGhost 𓆙𓄿𓏀𓃟𓇋𓇋𓄋(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> 𓊲𓅃𓅓𓇋𓊝) { return ᵃpᵢ.UNHOLY(𓊲𓅃𓅓𓇋𓊝); }
|
||||||
public BãßBȍőnCoffinGhostSpell 𓆙𓄿𓏀𓃟𓇋𓇋𓄋𓐘𓆘𓉯𓌇𓆅𓆅(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> familyName) { return ᵃpᵢ.UNHOLY_SPELL(familyName); }
|
public BãßBȍőnCoffinGhostSpell 𓆙𓄿𓏀𓃟𓇋𓇋𓄋𓐘𓆘𓉯𓌇𓆅𓆅(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> 𓊲𓅃𓅓𓇋𓊝) { return ᵃpᵢ.UNHOLY_SPELL(𓊲𓅃𓅓𓇋𓊝); }
|
||||||
public <T extends BãßBȍőnꝐŕḯṿª₮ḕ響ᴼᶠ> T 𓁵𓇋𓌗𓁬𓐘𓅂𓁿𓆑(Class<T> noiseName) { return ᵃpᵢ.NOISE_OF(noiseName); }
|
public <T extends BãßBȍőnꝐŕḯṿª₮ḕ響ᴼᶠ> T 𓁵𓇋𓌗𓁬𓐘𓅂𓁿𓆑(Class<T> 𓈖𓇋𓌗𓌇𓈖𓅂𓅓) { return ᵃpᵢ.NOISE_OF(𓈖𓇋𓌗𓌇𓈖𓅂𓅓); }
|
||||||
}
|
}
|
||||||
|
|
||||||
class عربى extends BãßBȍőnCoffinDuytschenᴬᵖᶦ {
|
class عربى extends BãßBȍőnCoffinDuytschenᴬᵖᶦ {
|
||||||
public BãßBȍőnCoffinGhost غير۵مقدس(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> familyName) { return ᵃpᵢ.UNHOLY(familyName); }
|
public BãßBȍőnCoffinGhost غير۵مقدس(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> لقب) { return ᵃpᵢ.UNHOLY(لقب); }
|
||||||
public BãßBȍőnCoffinGhostSpell غير۵مقدس۵سحر(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> familyName) { return ᵃpᵢ.UNHOLY_SPELL(familyName); }
|
public BãßBȍőnCoffinGhostSpell غير۵مقدس۵سحر(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> لقب) { return ᵃpᵢ.UNHOLY_SPELL(لقب); }
|
||||||
public <T extends BãßBȍőnꝐŕḯṿª₮ḕ響ᴼᶠ> T ضوضاء۵من(Class<T> noiseName) { return ᵃpᵢ.NOISE_OF(noiseName); }
|
public <T extends BãßBȍőnꝐŕḯṿª₮ḕ響ᴼᶠ> T ضوضاء۵من(Class<T> هناك۵صوت) { return ᵃpᵢ.NOISE_OF(هناك۵صوت); }
|
||||||
}
|
}
|
||||||
|
|
||||||
class עִברִית extends BãßBȍőnCoffinDuytschenᴬᵖᶦ {
|
class עִברִית extends BãßBȍőnCoffinDuytschenᴬᵖᶦ {
|
||||||
public BãßBȍőnCoffinGhost לאײקדוש(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> familyName) { return ᵃpᵢ.UNHOLY(familyName); }
|
public BãßBȍőnCoffinGhost לאײקדוש(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> שםײמשפחה) { return ᵃpᵢ.UNHOLY(שםײמשפחה); }
|
||||||
public BãßBȍőnCoffinGhostSpell לאײקדושײקֶסֶם(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> familyName) { return ᵃpᵢ.UNHOLY_SPELL(familyName); }
|
public BãßBȍőnCoffinGhostSpell לאײקדושײקֶסֶם(Class<? extends BãßBȍőnꝐŕḯṿª₮ḕ<?>> שםײמשפחה) { return ᵃpᵢ.UNHOLY_SPELL(שםײמשפחה); }
|
||||||
public <T extends BãßBȍőnꝐŕḯṿª₮ḕ響ᴼᶠ> T צלילײשל(Class<T> noiseName) { return ᵃpᵢ.NOISE_OF(noiseName); }
|
public <T extends BãßBȍőnꝐŕḯṿª₮ḕ響ᴼᶠ> T צלילײשל(Class<T> ישײצליל) { return ᵃpᵢ.NOISE_OF(ישײצליל); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,7 @@ public interface BãßBȍőnNumberMatrixʸᴰ<T extends BãßBȍőnNumberMatrix
|
||||||
@SafeVarargs
|
@SafeVarargs
|
||||||
public static <Y extends BãßBȍőnNumberMatrixʸᴰ<Y>> void 魎ᴵⁿᶦᵗ(Y boon, int dialTone, int...args) {
|
public static <Y extends BãßBȍőnNumberMatrixʸᴰ<Y>> void 魎ᴵⁿᶦᵗ(Y boon, int dialTone, int...args) {
|
||||||
Bãß.石棺ʸᴰ.魎ᴵⁿᶦᵗ(boon);
|
Bãß.石棺ʸᴰ.魎ᴵⁿᶦᵗ(boon);
|
||||||
boon.toBBC().NOISE_OF(BãßBȍőnAbacusEnumBase響ᴼᶠ.class).ráàmRingToonInluiden(Integer.toString(dialTone));
|
boon.toBBC().NOISE_OF(BãßBȍőnAbacusEnumBase響ᴼᶠ.class).rȧñkRingToonInluiden(Integer.toHexString(dialTone).toUpperCase());
|
||||||
boon.toBBC().UNHOLY_SPELL(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST_LIST(GHOST_NUMBER_BLOCK);
|
boon.toBBC().UNHOLY_SPELL(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST_LIST(GHOST_NUMBER_BLOCK);
|
||||||
for (int arg:args) {
|
for (int arg:args) {
|
||||||
boon.toBBC().UNHOLY_SPELL(Ꝑŕḯṿª₮ḕ.class).GHOST_LIST_INT(GHOST_NUMBER_BLOCK).add(arg);
|
boon.toBBC().UNHOLY_SPELL(Ꝑŕḯṿª₮ḕ.class).GHOST_LIST_INT(GHOST_NUMBER_BLOCK).add(arg);
|
||||||
|
|
|
@ -104,19 +104,12 @@ public enum NumberMatrixFactory implements BãßBȍőnAbacusInstanceMBeanʸᴰ<N
|
||||||
set.add(c);
|
set.add(c);
|
||||||
}
|
}
|
||||||
if (set.size() == size) {
|
if (set.size() == size) {
|
||||||
String cntHex = Integer.toHexString(cnt).toUpperCase();
|
|
||||||
if (cntHex.length() < size-1) {
|
|
||||||
cntHex = "0"+cntHex;
|
|
||||||
}
|
|
||||||
if (cntHex.length() < size-1) {
|
|
||||||
cntHex = "0"+cntHex;
|
|
||||||
}
|
|
||||||
String numberStr = digiFormat.format(i);
|
String numberStr = digiFormat.format(i);
|
||||||
String name = "M_"+numberStr;
|
String name = "M_"+numberStr;
|
||||||
int[] args = new int[size];
|
int[] args = new int[size];
|
||||||
for (int y=size-1;y>=0;y--) {
|
for (int y=size-1;y>=0;y--) {
|
||||||
char c = ii.charAt(y);
|
char c = ii.charAt(y);
|
||||||
args[y] = c;
|
args[y] = c - '0';
|
||||||
}
|
}
|
||||||
result.createAbacus(cnt, name, cnt, args);
|
result.createAbacus(cnt, name, cnt, args);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package love.distributedrebirth.bassboon.jpp.util;
|
package love.distributedrebirth.bassboon.jpp.util;
|
||||||
|
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.Spliterator;
|
import java.util.Spliterator;
|
||||||
import java.util.Spliterators;
|
import java.util.Spliterators;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
@ -19,15 +18,15 @@ public interface Collectionᴿᵈ<E> {
|
||||||
}
|
}
|
||||||
|
|
||||||
default boolean isEmpty() {
|
default boolean isEmpty() {
|
||||||
return !iteratorᴿᵈ().hasNext();
|
return iteratorᴿᵈ().hasNext() == false;
|
||||||
}
|
}
|
||||||
|
|
||||||
default boolean contains(Object o) {
|
default boolean contains(Object obj) {
|
||||||
return streamᴿᵈ().collect(Collectors.toSet()).contains(o);
|
return streamᴿᵈ().collect(Collectors.toSet()).contains(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
default boolean containsAll(Collectionᴿᵈ<?> c) {
|
default boolean containsAll(Collectionᴿᵈ<?> set) {
|
||||||
return streamᴿᵈ().collect(Collectors.toSet()).containsAll(c.streamᴿᵈ().collect(Collectors.toSet()));
|
return streamᴿᵈ().collect(Collectors.toSet()).containsAll(set.streamᴿᵈ().collect(Collectors.toSet()));
|
||||||
}
|
}
|
||||||
|
|
||||||
default Stream<E> parallelStreamᴿᵈ() {
|
default Stream<E> parallelStreamᴿᵈ() {
|
||||||
|
@ -42,24 +41,11 @@ public interface Collectionᴿᵈ<E> {
|
||||||
return streamᴿᵈ().collect(Collectors.toList()).toArray();
|
return streamᴿᵈ().collect(Collectors.toList()).toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
default <T> T[] toArray(T[] a) {
|
default <T> T[] toArray(T[] arr) {
|
||||||
return streamᴿᵈ().collect(Collectors.toList()).toArray(a);
|
return streamᴿᵈ().collect(Collectors.toList()).toArray(arr);
|
||||||
}
|
}
|
||||||
|
|
||||||
default Stream<E> streamᴿᵈ() {
|
default Stream<E> streamᴿᵈ() {
|
||||||
Iteratorᴿᵈ<E> iterator = iteratorᴿᵈ();
|
return StreamSupport.stream(Spliterators.spliteratorUnknownSize(Iteratorᴿᵈ.wrap(iteratorᴿᵈ()), Spliterator.ORDERED), false);
|
||||||
Iterator<E> wrap = new Iterator<>() {
|
|
||||||
@Override
|
|
||||||
public boolean hasNext() {
|
|
||||||
return iterator.hasNext();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public E next() {
|
|
||||||
return iterator.next();
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
return StreamSupport.stream(Spliterators.spliteratorUnknownSize(wrap, Spliterator.ORDERED), false);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,9 +14,9 @@ public interface Collectionᵂʳ<E> extends Collectionᴿᵈ<E>, Appenderᵂʳ<E
|
||||||
streamᴿᵈ().collect(Collectors.toList()).forEach(v -> remove(v));
|
streamᴿᵈ().collect(Collectors.toList()).forEach(v -> remove(v));
|
||||||
}
|
}
|
||||||
|
|
||||||
default boolean removeAll(Collectionᴿᵈ<?> c) {
|
default boolean removeAll(Collectionᴿᵈ<?> set) {
|
||||||
boolean result = false;
|
boolean result = false;
|
||||||
Iteratorᴿᵈ<?> iterator = c.iteratorᴿᵈ();
|
Iteratorᴿᵈ<?> iterator = set.iteratorᴿᵈ();
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
if (remove(iterator.next())) {
|
if (remove(iterator.next())) {
|
||||||
result = true;
|
result = true;
|
||||||
|
@ -35,10 +35,10 @@ public interface Collectionᵂʳ<E> extends Collectionᴿᵈ<E>, Appenderᵂʳ<E
|
||||||
return removeAll(delete);
|
return removeAll(delete);
|
||||||
}
|
}
|
||||||
|
|
||||||
default boolean retainAll(Collectionᴿᵈ<?> c) {
|
default boolean retainAll(Collectionᴿᵈ<?> set) {
|
||||||
boolean result = false;
|
boolean result = false;
|
||||||
for (E e:streamᴿᵈ().collect(Collectors.toList())) {
|
for (E e:streamᴿᵈ().collect(Collectors.toList())) {
|
||||||
if (!c.contains(e)) {
|
if (!set.contains(e)) {
|
||||||
remove(e);
|
remove(e);
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ public interface BãßBȍőnAbacusEnumBaseʸᴰ<T extends BãßBȍőnʸᴰ<T> &
|
||||||
boon.toBBC().UNHOLY_SPELL(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_RANK_RING_TONE, boon.rȧñkNaam());
|
boon.toBBC().UNHOLY_SPELL(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_RANK_RING_TONE, boon.rȧñkNaam());
|
||||||
return new BãßBȍőnAbacusEnumBase響ᴼᶠ() {
|
return new BãßBȍőnAbacusEnumBase響ᴼᶠ() {
|
||||||
@Override
|
@Override
|
||||||
public void ráàmRingToonInluiden(String dialTone) {
|
public void rȧñkRingToonInluiden(String dialTone) {
|
||||||
boon.toBBC().UNHOLY_SPELL(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_RANK_RING_TONE, dialTone);
|
boon.toBBC().UNHOLY_SPELL(Ꝑŕḯṿª₮ḕ.class).PUT_GHOST(GHOST_RANK_RING_TONE, dialTone);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,5 +6,5 @@ import love.distributedrebirth.bassboon.clazz.pirate.BãßBȍőnꝐŕḯṿª₮
|
||||||
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
|
||||||
public interface BãßBȍőnAbacusEnumBase響ᴼᶠ extends BãßBȍőnꝐŕḯṿª₮ḕ響ᴼᶠ {
|
public interface BãßBȍőnAbacusEnumBase響ᴼᶠ extends BãßBȍőnꝐŕḯṿª₮ḕ響ᴼᶠ {
|
||||||
|
|
||||||
void ráàmRingToonInluiden(String dialTone);
|
void rȧñkRingToonInluiden(String dialTone);
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ public interface BãßBȍőnAbacusSetʸᴰ<T extends BãßBȍőnʸᴰ<T> & Abacu
|
||||||
@BãßBȍőnDuytschen注(中國 = "算盤 討厭 最後的", BASIC = "RANK_TO_LAST", 𓃬𓍄𓋹𓀭 = "𓂏𓅃𓈁𓎡 𓅲 𓆅𓅃𓆘𓋶")
|
@BãßBȍőnDuytschen注(中國 = "算盤 討厭 最後的", BASIC = "RANK_TO_LAST", 𓃬𓍄𓋹𓀭 = "𓂏𓅃𓈁𓎡 𓅲 𓆅𓅃𓆘𓋶")
|
||||||
default T rȧñkNaarLaatste() {
|
default T rȧñkNaarLaatste() {
|
||||||
T[] values = ráàmWaardes();
|
T[] values = ráàmWaardes();
|
||||||
return values[values.length - Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ZERO];
|
return values[values.length - Bãß.ℭỗᶇṧⱦᶏꬼȶʂ.INT_ONE];
|
||||||
}
|
}
|
||||||
|
|
||||||
@BãßBȍőnDuytschen注(中國 = "算盤 討厭 比鄰", BASIC = "RANK_TO_NEXT", 𓃬𓍄𓋹𓀭 = "𓂏𓅃𓈁𓎡 𓅲 𓌒𓎡𓋶𓌟")
|
@BãßBȍőnDuytschen注(中國 = "算盤 討厭 比鄰", BASIC = "RANK_TO_NEXT", 𓃬𓍄𓋹𓀭 = "𓂏𓅃𓈁𓎡 𓅲 𓌒𓎡𓋶𓌟")
|
||||||
|
|
|
@ -125,7 +125,7 @@ public enum Base2WarpCore implements BãßBȍőnAbacusInstanceMBeanʸᴰ<Base2Wa
|
||||||
}
|
}
|
||||||
for (WaterCipherHeartTone tone:heart.getHeartTones()) {
|
for (WaterCipherHeartTone tone:heart.getHeartTones()) {
|
||||||
BãßBȍőnPartʸᴰ<?> bassTone = baseParts.get(tone.getPart());
|
BãßBȍőnPartʸᴰ<?> bassTone = baseParts.get(tone.getPart());
|
||||||
bassTone.toBBC().NOISE_OF(BãßBȍőnAbacusEnumBase響ᴼᶠ.class).ráàmRingToonInluiden(tone.getDialTone());
|
bassTone.toBBC().NOISE_OF(BãßBȍőnAbacusEnumBase響ᴼᶠ.class).rȧñkRingToonInluiden(tone.getDialTone());
|
||||||
BãßBȍőnAbacusZombieCorpse<BãßBȍőnPartBullet> corpse = BãßBȍőnAbacusZombieCorpse.castᴼᶠ(bassTone.toEnumZombie());
|
BãßBȍőnAbacusZombieCorpse<BãßBȍőnPartBullet> corpse = BãßBȍőnAbacusZombieCorpse.castᴼᶠ(bassTone.toEnumZombie());
|
||||||
corpse.PUT_OBJ(BãßBȍőnPartBullet.CHINA_KEY, tone.getChinaKey());
|
corpse.PUT_OBJ(BãßBȍőnPartBullet.CHINA_KEY, tone.getChinaKey());
|
||||||
corpse.PUT_OBJ(BãßBȍőnPartBullet.CHINA_VALUE, tone.getChinaValue());
|
corpse.PUT_OBJ(BãßBȍőnPartBullet.CHINA_VALUE, tone.getChinaValue());
|
||||||
|
|
|
@ -44,7 +44,7 @@ public interface BãßBȍőnPartʸᴰ<T extends BãßBȍőnPartʸᴰ<T>> extends
|
||||||
@SafeVarargs
|
@SafeVarargs
|
||||||
public static <Y extends BãßBȍőnPartʸᴰ<Y>> void 魎ᴵⁿᶦᵗ(Y boon, String dialTone, Consumer<BãßBȍőnAbacusZombieCorpse<BãßBȍőnPartBullet>>...fleshFeeders) {
|
public static <Y extends BãßBȍőnPartʸᴰ<Y>> void 魎ᴵⁿᶦᵗ(Y boon, String dialTone, Consumer<BãßBȍőnAbacusZombieCorpse<BãßBȍőnPartBullet>>...fleshFeeders) {
|
||||||
Bãß.石棺ʸᴰ.魎ᴵⁿᶦᵗ(boon);
|
Bãß.石棺ʸᴰ.魎ᴵⁿᶦᵗ(boon);
|
||||||
boon.toBBC().NOISE_OF(BãßBȍőnAbacusEnumBase響ᴼᶠ.class).ráàmRingToonInluiden(dialTone);
|
boon.toBBC().NOISE_OF(BãßBȍőnAbacusEnumBase響ᴼᶠ.class).rȧñkRingToonInluiden(dialTone);
|
||||||
BãßBȍőnAbacusZombieCorpse<BãßBȍőnPartBullet> corpse = BãßBȍőnAbacusZombieCorpse.castᴼᶠ(boon.toEnumZombie());
|
BãßBȍőnAbacusZombieCorpse<BãßBȍőnPartBullet> corpse = BãßBȍőnAbacusZombieCorpse.castᴼᶠ(boon.toEnumZombie());
|
||||||
for (Consumer<BãßBȍőnAbacusZombieCorpse<BãßBȍőnPartBullet>> flesh:fleshFeeders) {
|
for (Consumer<BãßBȍőnAbacusZombieCorpse<BãßBȍőnPartBullet>> flesh:fleshFeeders) {
|
||||||
flesh.accept(corpse);
|
flesh.accept(corpse);
|
||||||
|
|
|
@ -123,6 +123,10 @@ public class GDXAppTos4BootFactory {
|
||||||
"love.distributedrebirth.bassboon.clazz.pirate,"+
|
"love.distributedrebirth.bassboon.clazz.pirate,"+
|
||||||
"love.distributedrebirth.bassboon.death,"+
|
"love.distributedrebirth.bassboon.death,"+
|
||||||
"love.distributedrebirth.bassboon.death.spider,"+
|
"love.distributedrebirth.bassboon.death.spider,"+
|
||||||
|
"love.distributedrebirth.bassboon.jpp.lang,"+
|
||||||
|
"love.distributedrebirth.bassboon.jpp.lang.number,"+
|
||||||
|
"love.distributedrebirth.bassboon.jpp.lang.number.matrix,"+
|
||||||
|
"love.distributedrebirth.bassboon.jpp.util,"+
|
||||||
"love.distributedrebirth.bassboon.yd,"+
|
"love.distributedrebirth.bassboon.yd,"+
|
||||||
"love.distributedrebirth.bassboon.yd.abacus,"+
|
"love.distributedrebirth.bassboon.yd.abacus,"+
|
||||||
"love.distributedrebirth.bassboon.yd.abacus.zombie,"+
|
"love.distributedrebirth.bassboon.yd.abacus.zombie,"+
|
||||||
|
|
4
pom.xml
4
pom.xml
|
@ -133,6 +133,10 @@
|
||||||
love.distributedrebirth.bassboon.clazz.pirate,
|
love.distributedrebirth.bassboon.clazz.pirate,
|
||||||
love.distributedrebirth.bassboon.death,
|
love.distributedrebirth.bassboon.death,
|
||||||
love.distributedrebirth.bassboon.death.spider,
|
love.distributedrebirth.bassboon.death.spider,
|
||||||
|
love.distributedrebirth.bassboon.jpp.lang,
|
||||||
|
love.distributedrebirth.bassboon.jpp.lang.number,
|
||||||
|
love.distributedrebirth.bassboon.jpp.lang.number.matrix,
|
||||||
|
love.distributedrebirth.bassboon.jpp.util,
|
||||||
love.distributedrebirth.bassboon.yd,
|
love.distributedrebirth.bassboon.yd,
|
||||||
love.distributedrebirth.bassboon.yd.abacus,
|
love.distributedrebirth.bassboon.yd.abacus,
|
||||||
love.distributedrebirth.bassboon.yd.abacus.zombie,
|
love.distributedrebirth.bassboon.yd.abacus.zombie,
|
||||||
|
|
Loading…
Reference in a new issue