Added 60 part
This commit is contained in:
parent
390a6c657e
commit
3763ee3fdd
|
@ -18,6 +18,7 @@ import imgui.type.ImBoolean;
|
||||||
import love.distributedrebirth.demo4d.matrix4d.ScreenMatrix4D;
|
import love.distributedrebirth.demo4d.matrix4d.ScreenMatrix4D;
|
||||||
import love.distributedrebirth.demo4d.music.MusicManager;
|
import love.distributedrebirth.demo4d.music.MusicManager;
|
||||||
import love.distributedrebirth.demo4d.music.MusicPlayerRenderer;
|
import love.distributedrebirth.demo4d.music.MusicPlayerRenderer;
|
||||||
|
import love.distributedrebirth.demo4d.screen.BasePartRenderer;
|
||||||
import love.distributedrebirth.demo4d.screen.BasicConsoleRenderer;
|
import love.distributedrebirth.demo4d.screen.BasicConsoleRenderer;
|
||||||
import love.distributedrebirth.demo4d.screen.HebrewWalletRenderer;
|
import love.distributedrebirth.demo4d.screen.HebrewWalletRenderer;
|
||||||
import love.distributedrebirth.demo4d.screen.ScreenCredits;
|
import love.distributedrebirth.demo4d.screen.ScreenCredits;
|
||||||
|
@ -48,6 +49,7 @@ public class Demo4DMain extends Game {
|
||||||
private ImBoolean showImGuiDemo = new ImBoolean(false);
|
private ImBoolean showImGuiDemo = new ImBoolean(false);
|
||||||
private ImBoolean showMusicPlayer = new ImBoolean(false);
|
private ImBoolean showMusicPlayer = new ImBoolean(false);
|
||||||
private ImBoolean showHebrewWallet = new ImBoolean(false);
|
private ImBoolean showHebrewWallet = new ImBoolean(false);
|
||||||
|
private ImBoolean showBasePart = new ImBoolean(false);
|
||||||
private ImBoolean showBasicConsole = new ImBoolean(false);
|
private ImBoolean showBasicConsole = new ImBoolean(false);
|
||||||
|
|
||||||
public Demo4DMain(List<String> args, NativeFileChooser fileChooser) {
|
public Demo4DMain(List<String> args, NativeFileChooser fileChooser) {
|
||||||
|
@ -71,6 +73,7 @@ public class Demo4DMain extends Game {
|
||||||
widgets = new HashMap<>();
|
widgets = new HashMap<>();
|
||||||
putWidget(new MusicPlayerRenderer(this));
|
putWidget(new MusicPlayerRenderer(this));
|
||||||
putWidget(new HebrewWalletRenderer(this));
|
putWidget(new HebrewWalletRenderer(this));
|
||||||
|
putWidget(new BasePartRenderer(this));
|
||||||
putWidget(new BasicConsoleRenderer(this));
|
putWidget(new BasicConsoleRenderer(this));
|
||||||
|
|
||||||
screens = new HashMap<>();
|
screens = new HashMap<>();
|
||||||
|
@ -133,6 +136,9 @@ public class Demo4DMain extends Game {
|
||||||
if (showHebrewWallet.get()) {
|
if (showHebrewWallet.get()) {
|
||||||
widgets.get(HebrewWalletRenderer.class).render(showHebrewWallet);
|
widgets.get(HebrewWalletRenderer.class).render(showHebrewWallet);
|
||||||
}
|
}
|
||||||
|
if (showBasePart.get()) {
|
||||||
|
widgets.get(BasePartRenderer.class).render(showBasePart);
|
||||||
|
}
|
||||||
if (showBasicConsole.get()) {
|
if (showBasicConsole.get()) {
|
||||||
widgets.get(BasicConsoleRenderer.class).render(showBasicConsole);
|
widgets.get(BasicConsoleRenderer.class).render(showBasicConsole);
|
||||||
}
|
}
|
||||||
|
@ -170,6 +176,9 @@ public class Demo4DMain extends Game {
|
||||||
if (ImGui.menuItem("Hebrew Wallet")) {
|
if (ImGui.menuItem("Hebrew Wallet")) {
|
||||||
showHebrewWallet.set(true);
|
showHebrewWallet.set(true);
|
||||||
}
|
}
|
||||||
|
if (ImGui.menuItem("Base Part")) {
|
||||||
|
showBasePart.set(true);
|
||||||
|
}
|
||||||
if (ImGui.menuItem("Basic Console")) {
|
if (ImGui.menuItem("Basic Console")) {
|
||||||
showBasicConsole.set(true);
|
showBasicConsole.set(true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@ import imgui.ImGui;
|
||||||
import imgui.ImGuiIO;
|
import imgui.ImGuiIO;
|
||||||
import imgui.gl3.ImGuiImplGl3;
|
import imgui.gl3.ImGuiImplGl3;
|
||||||
import imgui.glfw.ImGuiImplGlfw;
|
import imgui.glfw.ImGuiImplGlfw;
|
||||||
|
import love.distributedrebirth.numberxd.base2t.T60Sexagesimal;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -55,6 +56,11 @@ public class ImGuiSetup {
|
||||||
rangesBuilder.addRanges(glyphRangesToneLetters0);
|
rangesBuilder.addRanges(glyphRangesToneLetters0);
|
||||||
rangesBuilder.addText("@Ω\u4ed9⁴ ˧꜏⋇꜊꜔ ⁴ﷲΩ@");
|
rangesBuilder.addText("@Ω\u4ed9⁴ ˧꜏⋇꜊꜔ ⁴ﷲΩ@");
|
||||||
rangesBuilder.addText("©Δ∞ \u4ed9\u4e0a\u4e3b\u5929");
|
rangesBuilder.addText("©Δ∞ \u4ed9\u4e0a\u4e3b\u5929");
|
||||||
|
|
||||||
|
for (T60Sexagesimal value:T60Sexagesimal.values()) {
|
||||||
|
rangesBuilder.addText(value.getIdentifierLetter());
|
||||||
|
rangesBuilder.addText(value.getChinaKey());
|
||||||
|
}
|
||||||
|
|
||||||
final ImFontConfig fontConfig = new ImFontConfig();
|
final ImFontConfig fontConfig = new ImFontConfig();
|
||||||
fontConfig.setMergeMode(true); // Enable merge mode to merge cyrillic, japanese and icons with default font
|
fontConfig.setMergeMode(true); // Enable merge mode to merge cyrillic, japanese and icons with default font
|
||||||
|
|
|
@ -0,0 +1,63 @@
|
||||||
|
package love.distributedrebirth.demo4d.screen;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import imgui.ImGui;
|
||||||
|
import imgui.flag.ImGuiCond;
|
||||||
|
import imgui.flag.ImGuiTableFlags;
|
||||||
|
import imgui.type.ImBoolean;
|
||||||
|
import love.distributedrebirth.demo4d.Demo4DMain;
|
||||||
|
import love.distributedrebirth.demo4d.ImGuiRendererMain;
|
||||||
|
import love.distributedrebirth.numberxd.base2t.T60Sexagesimal;
|
||||||
|
import love.distributedrebirth.numberxd.base2t.facet.BasePart;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author willemtsade ©Δ∞ 仙上主天
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class BasePartRenderer extends ImGuiRendererMain {
|
||||||
|
|
||||||
|
public BasePartRenderer(Demo4DMain main) {
|
||||||
|
super(main);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void render(ImBoolean widgetOpen) {
|
||||||
|
ImGui.setNextWindowPos(200, 200, ImGuiCond.FirstUseEver);
|
||||||
|
ImGui.setNextWindowSize(640, 480, ImGuiCond.FirstUseEver);
|
||||||
|
ImGui.begin("Base part", widgetOpen);
|
||||||
|
|
||||||
|
ImGui.text("Current part type:");
|
||||||
|
ImGui.sameLine();
|
||||||
|
ImGui.text("T60Sexagesimal");
|
||||||
|
int flags = ImGuiTableFlags.ScrollX | ImGuiTableFlags.RowBg | ImGuiTableFlags.BordersOuter | ImGuiTableFlags.BordersV;
|
||||||
|
ImGui.beginTable("base-part", 5, flags);
|
||||||
|
ImGui.tableSetupColumn("ordinal");
|
||||||
|
ImGui.tableSetupColumn("idTone");
|
||||||
|
ImGui.tableSetupColumn("idLetter");
|
||||||
|
ImGui.tableSetupColumn("ChinaKey");
|
||||||
|
ImGui.tableSetupColumn("ChinaValue");
|
||||||
|
ImGui.tableHeadersRow();
|
||||||
|
|
||||||
|
List<BasePart> parts = Arrays.asList(T60Sexagesimal.values());
|
||||||
|
|
||||||
|
for (BasePart part:parts) {
|
||||||
|
ImGui.tableNextRow();
|
||||||
|
ImGui.tableNextColumn();
|
||||||
|
ImGui.text(Integer.toString(part.ordinal()));
|
||||||
|
ImGui.tableNextColumn();
|
||||||
|
ImGui.text(part.getIdentifierTone());
|
||||||
|
ImGui.tableNextColumn();
|
||||||
|
ImGui.text(part.getIdentifierLetter());
|
||||||
|
ImGui.tableNextColumn();
|
||||||
|
ImGui.text(part.getChinaKey());
|
||||||
|
ImGui.tableNextColumn();
|
||||||
|
ImGui.text(part.getChinaValue());
|
||||||
|
}
|
||||||
|
ImGui.endTable();
|
||||||
|
|
||||||
|
ImGui.end();
|
||||||
|
}
|
||||||
|
}
|
|
@ -32,19 +32,10 @@ public class ScreenUnicode4D extends Demo4DMainAdapter {
|
||||||
ImVec2 size = new ImVec2(144f, 48f);
|
ImVec2 size = new ImVec2(144f, 48f);
|
||||||
ImGui.invisibleButton("canvas", size.x, size.y);
|
ImGui.invisibleButton("canvas", size.x, size.y);
|
||||||
ImVec2 p0 = ImGui.getItemRectMin();
|
ImVec2 p0 = ImGui.getItemRectMin();
|
||||||
ImVec2 p1 = ImGui.getItemRectMax();
|
ImVec2 p1 = ImGui.getItemRectMax(); // p1 = p0 + size
|
||||||
ImDrawList drawList = ImGui.getWindowDrawList();
|
ImDrawList drawList = ImGui.getWindowDrawList();
|
||||||
drawList.pushClipRect(p0.x, p0.y, p1.x, p1.y);
|
drawList.pushClipRect(p0.x, p0.y, p1.x, p1.y);
|
||||||
// draw unicode4D
|
// draw unicode4D
|
||||||
//System.out.println("p0.x="+p0.x+" p0.y="+p0.y);
|
|
||||||
//System.out.println("p1.x="+p1.x+" p1.y="+p1.y);
|
|
||||||
|
|
||||||
// for (int n = 0; n < (1.0f + Math.sin(ImGui.getTime() * 5.7f)) * 40.0f; n++) {
|
|
||||||
// drawList.addCircle(p0.x + size.x * 0.5f, p0.y + size.y * 0.5f, size.y * (0.01f + n * 0.03f),
|
|
||||||
// ImColor.intToColor(255, 140 - n * 4, n * 3, 255)
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
|
|
||||||
drawList.addQuad(p0.x, p0.y, p0.x+size.x, p0.y, p1.x, p1.y, p0.x, p0.y+size.y,
|
drawList.addQuad(p0.x, p0.y, p0.x+size.x, p0.y, p1.x, p1.y, p0.x, p0.y+size.y,
|
||||||
ImColor.intToColor(127, 127, 255, 255), 5f);
|
ImColor.intToColor(127, 127, 255, 255), 5f);
|
||||||
|
|
||||||
|
@ -54,5 +45,14 @@ public class ScreenUnicode4D extends Demo4DMainAdapter {
|
||||||
|
|
||||||
drawList.popClipRect();
|
drawList.popClipRect();
|
||||||
ImGui.end();
|
ImGui.end();
|
||||||
|
|
||||||
|
//System.out.println("p0.x="+p0.x+" p0.y="+p0.y);
|
||||||
|
//System.out.println("p1.x="+p1.x+" p1.y="+p1.y);
|
||||||
|
|
||||||
|
// for (int n = 0; n < (1.0f + Math.sin(ImGui.getTime() * 5.7f)) * 40.0f; n++) {
|
||||||
|
// drawList.addCircle(p0.x + size.x * 0.5f, p0.y + size.y * 0.5f, size.y * (0.01f + n * 0.03f),
|
||||||
|
// ImColor.intToColor(255, 140 - n * 4, n * 3, 255)
|
||||||
|
// );
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Map;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacet;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePart;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,7 +15,7 @@ import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
||||||
* @author willemtsade ©Δ∞ 仙上主天
|
* @author willemtsade ©Δ∞ 仙上主天
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public enum T02PartBinary implements BaseFacet {
|
public enum T02PartBinary implements BasePart {
|
||||||
|
|
||||||
PART_1("˧","0", "低", "low"),
|
PART_1("˧","0", "低", "low"),
|
||||||
PART_2("꜔","1", "高", "high"),
|
PART_2("꜔","1", "高", "high"),
|
||||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Map;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacet;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePart;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -15,7 +15,7 @@ import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
||||||
* @author willemtsade ©Δ∞ 仙上主天
|
* @author willemtsade ©Δ∞ 仙上主天
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public enum T03PartTrit implements BaseFacet {
|
public enum T03PartTrit implements BasePart {
|
||||||
|
|
||||||
PART_1("˦","0","一","1"),
|
PART_1("˦","0","一","1"),
|
||||||
PART_2("˧","1","二","2"),
|
PART_2("˧","1","二","2"),
|
||||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Map;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacet;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePart;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BasePartAlt1;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePartAlt1;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BasePartSplit4;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePartSplit4;
|
||||||
|
@ -17,7 +17,7 @@ import love.distributedrebirth.numberxd.base2t.facet.BasePartSplit4;
|
||||||
* @author willemtsade ©Δ∞ 仙上主天
|
* @author willemtsade ©Δ∞ 仙上主天
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public enum T04PartQuad implements BaseFacet,BasePartAlt1,BasePartSplit4 {
|
public enum T04PartQuad implements BasePart,BasePartAlt1,BasePartSplit4 {
|
||||||
|
|
||||||
PART_1("˥","0","北","north","N"),
|
PART_1("˥","0","北","north","N"),
|
||||||
PART_2("꜒","1","東","east", "E"),
|
PART_2("꜒","1","東","east", "E"),
|
||||||
|
|
|
@ -7,14 +7,14 @@ import java.util.Map;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacet;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePart;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The distribution by 5 called Wuxing.
|
* The distribution by 5 called Wuxing.
|
||||||
* @author willemtsade ©Δ∞ 仙上主天
|
* @author willemtsade ©Δ∞ 仙上主天
|
||||||
*/
|
*/
|
||||||
public enum T05PartPental implements BaseFacet {
|
public enum T05PartPental implements BasePart {
|
||||||
|
|
||||||
PART_1("˥","0","火","fire"),
|
PART_1("˥","0","火","fire"),
|
||||||
PART_2("˦","1","水","water"),
|
PART_2("˦","1","水","water"),
|
||||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Map;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacet;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePart;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BasePartAlt1;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePartAlt1;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BasePartSplit6;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePartSplit6;
|
||||||
|
@ -19,7 +19,7 @@ import love.distributedrebirth.numberxd.base2t.facet.BasePartSplit6;
|
||||||
* @author willemtsade ©Δ∞ 仙上主天
|
* @author willemtsade ©Δ∞ 仙上主天
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public enum T06PartSeximal implements BaseFacet,BasePartAlt1,BasePartSplit6 {
|
public enum T06PartSeximal implements BasePart,BasePartAlt1,BasePartSplit6 {
|
||||||
|
|
||||||
PART_1("˦","0","四","4","A"),
|
PART_1("˦","0","四","4","A"),
|
||||||
PART_2("˨","1","五","5","D"),
|
PART_2("˨","1","五","5","D"),
|
||||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Map;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacet;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePart;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BasePartAlt2;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePartAlt2;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BasePartSplit8;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePartSplit8;
|
||||||
|
@ -17,7 +17,7 @@ import love.distributedrebirth.numberxd.base2t.facet.BasePartSplit8;
|
||||||
* @author willemtsade ©Δ∞ 仙上主天
|
* @author willemtsade ©Δ∞ 仙上主天
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public enum T08PartOctal implements BaseFacet,BasePartAlt2,BasePartSplit8 {
|
public enum T08PartOctal implements BasePart,BasePartAlt2,BasePartSplit8 {
|
||||||
|
|
||||||
PART_1("˥","0","心","heart","˧˥˩","˥˩˧", 0),
|
PART_1("˥","0","心","heart","˧˥˩","˥˩˧", 0),
|
||||||
PART_2("˩","1","頭","head", "˧˩˥","˩˥˧", 3),
|
PART_2("˩","1","頭","head", "˧˩˥","˩˥˧", 3),
|
||||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Map;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacet;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePart;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BasePartAlt1;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePartAlt1;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ import love.distributedrebirth.numberxd.base2t.facet.BasePartAlt1;
|
||||||
* @author willemtsade ©Δ∞ 仙上主天
|
* @author willemtsade ©Δ∞ 仙上主天
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public enum T12PartUncial implements BaseFacet,BasePartAlt1 {
|
public enum T12PartUncial implements BasePart,BasePartAlt1 {
|
||||||
|
|
||||||
PART_1 ("˥","0","日","sun","0"),
|
PART_1 ("˥","0","日","sun","0"),
|
||||||
PART_2 ("˧","1","月","moon","1"),
|
PART_2 ("˧","1","月","moon","1"),
|
||||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Map;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacet;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePart;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BasePartAlt1;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePartAlt1;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BasePartSplit16;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePartSplit16;
|
||||||
|
@ -17,7 +17,7 @@ import love.distributedrebirth.numberxd.base2t.facet.BasePartSplit16;
|
||||||
* @author willemtsade ©Δ∞ 仙上主天
|
* @author willemtsade ©Δ∞ 仙上主天
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public enum T16PartHex implements BaseFacet,BasePartAlt1,BasePartSplit16 {
|
public enum T16PartHex implements BasePart,BasePartAlt1,BasePartSplit16 {
|
||||||
|
|
||||||
PART_1 ("˥","0","氫","hydrogen","1"),
|
PART_1 ("˥","0","氫","hydrogen","1"),
|
||||||
PART_2 ("˦","1","氦","helium","2"),
|
PART_2 ("˦","1","氦","helium","2"),
|
||||||
|
|
|
@ -7,7 +7,7 @@ import java.util.Map;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacet;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePart;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BasePartAlt1;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePartAlt1;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ import love.distributedrebirth.numberxd.base2t.facet.BasePartAlt1;
|
||||||
* @author willemtsade ©Δ∞ 仙上主天
|
* @author willemtsade ©Δ∞ 仙上主天
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public enum T20PartScore implements BaseFacet,BasePartAlt1 {
|
public enum T20PartScore implements BasePart,BasePartAlt1 {
|
||||||
|
|
||||||
PART_1 ("˥","0","尧","yotta","2"),
|
PART_1 ("˥","0","尧","yotta","2"),
|
||||||
PART_2 ("˦","1","泽","zetta","3"),
|
PART_2 ("˦","1","泽","zetta","3"),
|
||||||
|
|
|
@ -7,71 +7,80 @@ import java.util.Map;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacet;
|
import love.distributedrebirth.numberxd.base2t.facet.BasePart;
|
||||||
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
import love.distributedrebirth.numberxd.base2t.facet.BaseFacetKey;
|
||||||
|
|
||||||
public enum T60Sexagesimal implements BaseFacet {
|
/**
|
||||||
// TODO impl too
|
* The distribution by 60.
|
||||||
PART_1 ("˧","0","","100"),
|
*
|
||||||
PART_2 ("˧","1","","101"), // ?
|
* @author willemtsade ©Δ∞ 仙上主天
|
||||||
PART_3 ("˧","2","",""),
|
*
|
||||||
PART_4 ("˧","3","",""),
|
*/
|
||||||
PART_5 ("˧","4","",""),
|
public enum T60Sexagesimal implements BasePart {
|
||||||
PART_6 ("˧","5","",""),
|
|
||||||
PART_7 ("˧","6","",""),
|
PART_1 ("˧˩˥","ια","牛","cow"),
|
||||||
PART_8 ("˧","7","",""),
|
PART_2 ("˧˥˦","ιβ","鸡","chicken"),
|
||||||
PART_9 ("˧","8","",""),
|
PART_3 ("˧˩˨","ιγ","羊","sheep"),
|
||||||
PART_10("˧","9","",""),
|
PART_4 ("˧˦˦","ιδ","狼","wolf"),
|
||||||
PART_11("˧","10","",""),
|
PART_5 ("˧˨˨","ιε","鼠","rat"),
|
||||||
PART_12("˧","11","",""),
|
PART_6 ("˧˥˥","ιϚ","貓","cat"),
|
||||||
PART_13("˧","","",""),
|
PART_7 ("˧˩˩","ιζ","兔","rabbit"),
|
||||||
PART_14("˧","","",""),
|
PART_8 ("˥˩˧","ιη","猿","ape"),
|
||||||
PART_15("˧","","",""),
|
PART_9 ("˩˥˧","ιθ","蛇","snake"),
|
||||||
PART_16("˧","","",""),
|
PART_10("˥˦˧","κα","马","horse"),
|
||||||
PART_17("˧","","",""),
|
PART_11("˩˨˧","κβ","象","elepant"),
|
||||||
PART_18("˧","","",""),
|
PART_12("˦˦˧","κγ","豹","leopard"),
|
||||||
PART_19("˧","","",""),
|
PART_13("˨˨˧","κδ","鴉","crow"),
|
||||||
PART_20("˧","","",""),
|
PART_14("˥˥˧","κε","豬","pig"),
|
||||||
PART_21("˧","","",""),
|
PART_15("˩˩˧","κϚ","狗","dog"),
|
||||||
PART_22("˧","","",""),
|
|
||||||
PART_23("˧","","",""),
|
PART_16("꜔꜒꜖","κζ","魚","fish"),
|
||||||
PART_24("˧","","",""),
|
PART_17("꜔꜒꜓","κη","虾","shrimp"),
|
||||||
PART_25("˧","","",""),
|
PART_18("꜔꜖꜕","κθ","鲸","whale"),
|
||||||
PART_26("˧","","",""),
|
PART_19("꜔꜓꜓","λα","熊","bear"),
|
||||||
PART_27("˧","","",""),
|
PART_20("꜔꜕꜕","λβ","鹿","deer"),
|
||||||
PART_28("˧","","",""),
|
PART_21("꜔꜒꜒","λγ","驴","donkey"),
|
||||||
PART_29("˧","","",""),
|
PART_22("꜔꜖꜖","λδ","貘","tapir"),
|
||||||
PART_30("˧","","",""),
|
PART_23("꜒꜖꜔","λε","鸟","bird"),
|
||||||
PART_31("˧","","",""),
|
PART_24("꜖꜒꜔","λϚ","鹤","crane"),
|
||||||
PART_32("˧","","",""),
|
PART_25("꜒꜓꜔","λζ","鹰","eagle"),
|
||||||
PART_33("˧","","",""),
|
PART_26("꜖꜕꜔","λη","隼","falcon"),
|
||||||
PART_34("˧","","",""),
|
PART_27("꜓꜓꜔","λθ","鹅","goose"),
|
||||||
PART_35("˧","","",""),
|
PART_28("꜕꜕꜔","μα","蝾","salamander"),
|
||||||
PART_36("˧","","",""),
|
PART_29("꜒꜒꜔","μβ","龟","turtle"),
|
||||||
PART_37("˧","","",""),
|
PART_30("꜖꜖꜔","μγ","蜈","centipede"),
|
||||||
PART_38("˧","","",""),
|
|
||||||
PART_39("˧","","",""),
|
PART_31("꜊꜌꜈","μδ","蝇","fly"),
|
||||||
PART_40("˧","","",""),
|
PART_32("꜊꜈꜉","με","蝎","scorpion"),
|
||||||
PART_41("˧","","",""),
|
PART_33("꜊꜌꜋","μϚ","虫","worm"),
|
||||||
PART_42("˧","","",""),
|
PART_34("꜊꜉꜉","μζ","虎","tiger"),
|
||||||
PART_43("˧","","",""),
|
PART_35("꜊꜋꜋","μη","駝","camel"),
|
||||||
PART_44("˧","","",""),
|
PART_36("꜊꜈꜈","μθ","猴","monkey"),
|
||||||
PART_45("˧","","",""),
|
PART_37("꜊꜌꜌","να","鯊","shark"),
|
||||||
PART_46("˧","","",""),
|
PART_38("꜈꜌꜊","νβ","鴨","duck"),
|
||||||
PART_47("˧","","",""),
|
PART_39("꜌꜈꜊","νγ","芥","mustard"),
|
||||||
PART_48("˧","","",""),
|
PART_40("꜈꜉꜊","νδ","鹽","salt"),
|
||||||
PART_49("˧","","",""),
|
PART_41("꜌꜋꜊","νε","椒","pepper"),
|
||||||
PART_50("˧","","",""),
|
PART_42("꜉꜉꜊","νϚ","薑","ginger"),
|
||||||
PART_51("˧","","",""),
|
PART_43("꜋꜋꜊","νζ","穀","corn"),
|
||||||
PART_52("˧","","",""),
|
PART_44("꜈꜈꜊","νη","豆","beans"),
|
||||||
PART_53("˧","","",""),
|
PART_45("꜌꜌꜊","νθ","柚","pomelos"),
|
||||||
PART_54("˧","","",""),
|
|
||||||
PART_55("˧","","",""),
|
PART_46("꜏꜍꜑","ξα","棗","jujube"),
|
||||||
PART_56("˧","","",""),
|
PART_47("꜏꜍꜎","ξβ","瓜","melon"),
|
||||||
PART_57("˧","","",""),
|
PART_48("꜏꜑꜐","ξγ","葡","grape"),
|
||||||
PART_58("˧","","",""),
|
PART_49("꜏꜎꜎","ξδ","梅","plum"),
|
||||||
PART_59("˧","","",""),
|
PART_50("꜏꜐꜐","ξε","灰","lime"),
|
||||||
PART_60("˧","","",""),
|
PART_51("꜏꜍꜍","ξϚ","梨","pear"),
|
||||||
|
PART_52("꜏꜑꜑","ξζ","蕉","banana"),
|
||||||
|
PART_53("꜍꜑꜏","ξη","檸","lemon"),
|
||||||
|
PART_54("꜑꜍꜏","ξθ","柿","persimmon"),
|
||||||
|
PART_55("꜍꜎꜏","οα","橙","orange"),
|
||||||
|
PART_56("꜑꜐꜏","οβ","桃","peach"),
|
||||||
|
PART_57("꜎꜎꜏","ογ","杏","apricot"),
|
||||||
|
PART_58("꜐꜐꜏","οδ","莓","strawberry"),
|
||||||
|
PART_59("꜍꜍꜏","οε","薯","patato"),
|
||||||
|
PART_60("꜑꜑꜏","οϚ","蘋","apple"),
|
||||||
;
|
;
|
||||||
|
|
||||||
public static int LENGTH = 60;
|
public static int LENGTH = 60;
|
||||||
|
|
|
@ -5,7 +5,7 @@ package love.distributedrebirth.numberxd.base2t.facet;
|
||||||
* @author willemtsade ©Δ∞ 仙上主天
|
* @author willemtsade ©Δ∞ 仙上主天
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface BaseFacet extends BaseFacetStore {
|
public interface BasePart extends BaseFacetStore {
|
||||||
|
|
||||||
int ordinal();
|
int ordinal();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package love.distributedrebirth.numberxd.base2t.facet;
|
package love.distributedrebirth.numberxd.base2t.facet;
|
||||||
|
|
||||||
public interface BasePartAlt1 extends BaseFacet {
|
public interface BasePartAlt1 extends BasePart {
|
||||||
|
|
||||||
default String getAlt1Value() {
|
default String getAlt1Value() {
|
||||||
return (String)getFacetStore().get(BaseFacetKey.ALT_1_VALUE);
|
return (String)getFacetStore().get(BaseFacetKey.ALT_1_VALUE);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package love.distributedrebirth.numberxd.base2t.facet;
|
package love.distributedrebirth.numberxd.base2t.facet;
|
||||||
|
|
||||||
public interface BasePartShiftBits extends BaseFacet {
|
public interface BasePartShiftBits extends BasePart {
|
||||||
|
|
||||||
default Integer getShiftBits() {
|
default Integer getShiftBits() {
|
||||||
return (Integer)getFacetStore().get(BaseFacetKey.SHIFT_BITS);
|
return (Integer)getFacetStore().get(BaseFacetKey.SHIFT_BITS);
|
||||||
|
|
|
@ -3,7 +3,7 @@ package love.distributedrebirth.numberxd.base2t.facet;
|
||||||
import love.distributedrebirth.numberxd.base2t.T02PartBinary;
|
import love.distributedrebirth.numberxd.base2t.T02PartBinary;
|
||||||
import love.distributedrebirth.numberxd.base2t.T04PartQuad;
|
import love.distributedrebirth.numberxd.base2t.T04PartQuad;
|
||||||
|
|
||||||
public interface BasePartSplit16 extends BaseFacet {
|
public interface BasePartSplit16 extends BasePart {
|
||||||
|
|
||||||
default T02PartBinary splitPartBinary(T04PartQuad part) {
|
default T02PartBinary splitPartBinary(T04PartQuad part) {
|
||||||
return T02PartBinary.values()[(ordinal() >> part.ordinal()) & 1];
|
return T02PartBinary.values()[(ordinal() >> part.ordinal()) & 1];
|
||||||
|
|
|
@ -2,7 +2,7 @@ package love.distributedrebirth.numberxd.base2t.facet;
|
||||||
|
|
||||||
import love.distributedrebirth.numberxd.base2t.T02PartBinary;
|
import love.distributedrebirth.numberxd.base2t.T02PartBinary;
|
||||||
|
|
||||||
public interface BasePartSplit4 extends BaseFacet {
|
public interface BasePartSplit4 extends BasePart {
|
||||||
|
|
||||||
default T02PartBinary splitPartBinary(T02PartBinary part) {
|
default T02PartBinary splitPartBinary(T02PartBinary part) {
|
||||||
return T02PartBinary.values()[(ordinal() >> part.ordinal()) & 1];
|
return T02PartBinary.values()[(ordinal() >> part.ordinal()) & 1];
|
||||||
|
|
|
@ -3,7 +3,7 @@ package love.distributedrebirth.numberxd.base2t.facet;
|
||||||
import love.distributedrebirth.numberxd.base2t.T02PartBinary;
|
import love.distributedrebirth.numberxd.base2t.T02PartBinary;
|
||||||
import love.distributedrebirth.numberxd.base2t.T03PartTrit;
|
import love.distributedrebirth.numberxd.base2t.T03PartTrit;
|
||||||
|
|
||||||
public interface BasePartSplit6 extends BaseFacet {
|
public interface BasePartSplit6 extends BasePart {
|
||||||
|
|
||||||
default T02PartBinary splitPartBinary() {
|
default T02PartBinary splitPartBinary() {
|
||||||
return T02PartBinary.values()[ordinal() & 1];
|
return T02PartBinary.values()[ordinal() & 1];
|
||||||
|
|
Loading…
Reference in a new issue