diff --git a/core/src/love/distributedrebirth/demo4d/base2t/V072Tong.java b/core/src/love/distributedrebirth/demo4d/base2t/V072Tong.java index 22d72dbd..3fbb2d89 100644 --- a/core/src/love/distributedrebirth/demo4d/base2t/V072Tong.java +++ b/core/src/love/distributedrebirth/demo4d/base2t/V072Tong.java @@ -35,6 +35,18 @@ public final class V072Tong implements BaseNumberTyte { values[part.ordinal()] = value; } + public V009Tyte getTytePart(T08PartOctal part) { + return getValue(part.splitPartBinary(T03PartTrit.PART_1)) + .getValue(part.splitPartBinary(T03PartTrit.PART_2)) + .getValue(part.splitPartBinary(T03PartTrit.PART_3)); + } + + public void setTytePart(T08PartOctal part, V009Tyte value) { + getValue(part.splitPartBinary(T03PartTrit.PART_1)) + .getValue(part.splitPartBinary(T03PartTrit.PART_2)) + .setValue(part.splitPartBinary(T03PartTrit.PART_3), value); + } + @Override public int getBitCount() { return BIT_COUNT;