Moved warp core
This commit is contained in:
parent
5614033d63
commit
2a94f7a001
|
@ -1,4 +1,4 @@
|
||||||
package love.distributedrebirth.numberxd.base2t.part.warp;
|
package love.distributedrebirth.numberxd.base2t;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
@ -14,7 +14,6 @@ import love.distributedrebirth.bassboonyd.jmx.MBeanStoreKeyᴶᴹˣ;
|
||||||
import love.distributedrebirth.bassboonyd.jmx.DefaultEnumInstanceᴶᴹˣ;
|
import love.distributedrebirth.bassboonyd.jmx.DefaultEnumInstanceᴶᴹˣ;
|
||||||
import love.distributedrebirth.bassboonyd.jmx.GuageCounterᴶᴹˣ;
|
import love.distributedrebirth.bassboonyd.jmx.GuageCounterᴶᴹˣ;
|
||||||
import love.distributedrebirth.bassboonyd.jmx.StringAttributeᴶᴹˣ;
|
import love.distributedrebirth.bassboonyd.jmx.StringAttributeᴶᴹˣ;
|
||||||
import love.distributedrebirth.numberxd.base2t.Base2PartsFactory;
|
|
||||||
import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartKeyʸᴰ;
|
import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartKeyʸᴰ;
|
||||||
import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartʸᴰ;
|
import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartʸᴰ;
|
||||||
import love.distributedrebirth.warpme.core.WaterBucket;
|
import love.distributedrebirth.warpme.core.WaterBucket;
|
||||||
|
@ -23,9 +22,9 @@ import love.distributedrebirth.warpme.core.WaterCipherHeart;
|
||||||
import love.distributedrebirth.warpme.core.WaterCipherHeartTone;
|
import love.distributedrebirth.warpme.core.WaterCipherHeartTone;
|
||||||
|
|
||||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||||
@BãßBȍőnClassInfoʸᴰ(name = "TOSWarpCore", purpose = "The warpcore writer and armor manager.")
|
@BãßBȍőnClassInfoʸᴰ(name = "Base2WarpCore", purpose = "The warpcore writer and armor manager.")
|
||||||
@BãßBȍőnPackageInfoʸᴰ(name = "love.distributedrebirth.numberxd")
|
@BãßBȍőnPackageInfoʸᴰ(name = "love.distributedrebirth.numberxd")
|
||||||
public enum TOSWarpCore implements DefaultEnumInstanceᴶᴹˣ<TOSWarpCore,MBeanStoreKeyᴶᴹˣ> {
|
public enum Base2WarpCore implements DefaultEnumInstanceᴶᴹˣ<Base2WarpCore,MBeanStoreKeyᴶᴹˣ> {
|
||||||
|
|
||||||
INSTANCE;
|
INSTANCE;
|
||||||
|
|
||||||
|
@ -38,7 +37,7 @@ public enum TOSWarpCore implements DefaultEnumInstanceᴶᴹˣ<TOSWarpCore,MBean
|
||||||
private final BãßBȍőnCoffinOpenʸᴰ<MBeanStoreKeyᴶᴹˣ> BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance();
|
private final BãßBȍőnCoffinOpenʸᴰ<MBeanStoreKeyᴶᴹˣ> BBC = BãßBȍőnCoffinOpenʸᴰ.newInstance();
|
||||||
public BãßBȍőnCoffinʸᴰ<MBeanStoreKeyᴶᴹˣ> GET_BBC() { return BBC; }
|
public BãßBȍőnCoffinʸᴰ<MBeanStoreKeyᴶᴹˣ> GET_BBC() { return BBC; }
|
||||||
|
|
||||||
private TOSWarpCore() {
|
private Base2WarpCore() {
|
||||||
BBC.BOON_INIT(this);
|
BBC.BOON_INIT(this);
|
||||||
BȍőnJmxInit(MBeanStoreKeyᴶᴹˣ.JMX);
|
BȍőnJmxInit(MBeanStoreKeyᴶᴹˣ.JMX);
|
||||||
warpCoreReads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "warpCoreReads", "The amount of warpcore reads.");
|
warpCoreReads = BȍőnJmxInitGuageCounter(MBeanStoreKeyᴶᴹˣ.JMX, "warpCoreReads", "The amount of warpcore reads.");
|
|
@ -1,17 +1,18 @@
|
||||||
package love.distributedrebirth.numberxd.base2t.part.warp;
|
package love.distributedrebirth.numberxd.base2t;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Assertions;
|
import org.junit.jupiter.api.Assertions;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||||
|
import love.distributedrebirth.numberxd.base2t.Base2WarpCore;
|
||||||
import love.distributedrebirth.warpme.core.WaterBucket;
|
import love.distributedrebirth.warpme.core.WaterBucket;
|
||||||
|
|
||||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||||
public class TOSWarpCoreTest {
|
public class Base2WarpCoreTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCurrentWarpCore() {
|
public void testCurrentWarpCore() {
|
||||||
WaterBucket warpCore = TOSWarpCore.INSTANCE.BãßCurrentWarpCore();
|
WaterBucket warpCore = Base2WarpCore.INSTANCE.BãßCurrentWarpCore();
|
||||||
Assertions.assertNotNull(warpCore);
|
Assertions.assertNotNull(warpCore);
|
||||||
Assertions.assertNotNull(warpCore.theWater());
|
Assertions.assertNotNull(warpCore.theWater());
|
||||||
Assertions.assertNotNull(warpCore.theWater().getName());
|
Assertions.assertNotNull(warpCore.theWater().getName());
|
||||||
|
@ -23,19 +24,19 @@ public class TOSWarpCoreTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testValidateWarpCore() {
|
public void testValidateWarpCore() {
|
||||||
WaterBucket warpCore = TOSWarpCore.INSTANCE.BãßCurrentWarpCore();
|
WaterBucket warpCore = Base2WarpCore.INSTANCE.BãßCurrentWarpCore();
|
||||||
|
|
||||||
warpCore.theWater().getCipherHearts().get(5).getHeartTones().get(0).setChinaKey("零");
|
warpCore.theWater().getCipherHearts().get(5).getHeartTones().get(0).setChinaKey("零");
|
||||||
warpCore.theWater().getCipherHearts().get(5).getHeartTones().get(1).setChinaKey("零");
|
warpCore.theWater().getCipherHearts().get(5).getHeartTones().get(1).setChinaKey("零");
|
||||||
IllegalArgumentException thrownKey = Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
IllegalArgumentException thrownKey = Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||||
TOSWarpCore.INSTANCE.BãßValidateWarpCore(warpCore);
|
Base2WarpCore.INSTANCE.BãßValidateWarpCore(warpCore);
|
||||||
});
|
});
|
||||||
Assertions.assertEquals("Duplicate chinaKey: 零", thrownKey.getMessage());
|
Assertions.assertEquals("Duplicate chinaKey: 零", thrownKey.getMessage());
|
||||||
|
|
||||||
warpCore.theWater().getCipherHearts().get(4).getHeartTones().get(0).setChinaValue("pink");
|
warpCore.theWater().getCipherHearts().get(4).getHeartTones().get(0).setChinaValue("pink");
|
||||||
warpCore.theWater().getCipherHearts().get(4).getHeartTones().get(1).setChinaValue("pink");
|
warpCore.theWater().getCipherHearts().get(4).getHeartTones().get(1).setChinaValue("pink");
|
||||||
IllegalArgumentException thrownValue = Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
IllegalArgumentException thrownValue = Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||||
TOSWarpCore.INSTANCE.BãßValidateWarpCore(warpCore);
|
Base2WarpCore.INSTANCE.BãßValidateWarpCore(warpCore);
|
||||||
});
|
});
|
||||||
Assertions.assertEquals("Duplicate chinaValue: pink", thrownValue.getMessage());
|
Assertions.assertEquals("Duplicate chinaValue: pink", thrownValue.getMessage());
|
||||||
}
|
}
|
|
@ -123,7 +123,6 @@ public class GDXAppTos4BootFactory {
|
||||||
"love.distributedrebirth.numberxd,"+
|
"love.distributedrebirth.numberxd,"+
|
||||||
"love.distributedrebirth.numberxd.base2t,"+
|
"love.distributedrebirth.numberxd.base2t,"+
|
||||||
"love.distributedrebirth.numberxd.base2t.part,"+
|
"love.distributedrebirth.numberxd.base2t.part,"+
|
||||||
"love.distributedrebirth.numberxd.base2t.part.warp,"+
|
|
||||||
"love.distributedrebirth.numberxd.base2t.type,"+
|
"love.distributedrebirth.numberxd.base2t.type,"+
|
||||||
"love.distributedrebirth.numberxd.base2t.typexl,"+
|
"love.distributedrebirth.numberxd.base2t.typexl,"+
|
||||||
"love.distributedrebirth.numberxd.x4o,"+
|
"love.distributedrebirth.numberxd.x4o,"+
|
||||||
|
|
|
@ -32,7 +32,7 @@ import love.distributedrebirth.gdxapp4d.vrgem4.screen.ScreenIntroMission;
|
||||||
import love.distributedrebirth.gdxapp4d.vrgem4.service.VrGem4DeskAppService;
|
import love.distributedrebirth.gdxapp4d.vrgem4.service.VrGem4DeskAppService;
|
||||||
import love.distributedrebirth.numberxd.base2t.Base2PartsFactory;
|
import love.distributedrebirth.numberxd.base2t.Base2PartsFactory;
|
||||||
import love.distributedrebirth.numberxd.base2t.Base2Terminator;
|
import love.distributedrebirth.numberxd.base2t.Base2Terminator;
|
||||||
import love.distributedrebirth.numberxd.base2t.part.warp.TOSWarpCore;
|
import love.distributedrebirth.numberxd.base2t.Base2WarpCore;
|
||||||
import love.distributedrebirth.unicode4d.BaseGlyphSet;
|
import love.distributedrebirth.unicode4d.BaseGlyphSet;
|
||||||
import love.distributedrebirth.warpme.ship.WaterShipOcean;
|
import love.distributedrebirth.warpme.ship.WaterShipOcean;
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ public class GDXAppVrGem4Activator implements BundleActivator {
|
||||||
*/
|
*/
|
||||||
if (!bootArgs.isWarpCoreNoLock()) {
|
if (!bootArgs.isWarpCoreNoLock()) {
|
||||||
bootScreen.bootLine("warpcore-lock: BãßLockWarpCipher");
|
bootScreen.bootLine("warpcore-lock: BãßLockWarpCipher");
|
||||||
TOSWarpCore.INSTANCE.BãßLockWarpCipher(v -> {});
|
Base2WarpCore.INSTANCE.BãßLockWarpCipher(v -> {});
|
||||||
} else {
|
} else {
|
||||||
bootScreen.bootLine("warpcore-nolock: requested");
|
bootScreen.bootLine("warpcore-nolock: requested");
|
||||||
}
|
}
|
||||||
|
@ -238,7 +238,7 @@ public class GDXAppVrGem4Activator implements BundleActivator {
|
||||||
BaseGlyphSet.values()[0],
|
BaseGlyphSet.values()[0],
|
||||||
Base2Terminator.INSTANCE,
|
Base2Terminator.INSTANCE,
|
||||||
Base2PartsFactory.INSTANCE,
|
Base2PartsFactory.INSTANCE,
|
||||||
TOSWarpCore.INSTANCE
|
Base2WarpCore.INSTANCE
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
1
pom.xml
1
pom.xml
|
@ -125,7 +125,6 @@
|
||||||
love.distributedrebirth.numberxd,
|
love.distributedrebirth.numberxd,
|
||||||
love.distributedrebirth.numberxd.base2t,
|
love.distributedrebirth.numberxd.base2t,
|
||||||
love.distributedrebirth.numberxd.base2t.part,
|
love.distributedrebirth.numberxd.base2t.part,
|
||||||
love.distributedrebirth.numberxd.base2t.part.warp,
|
|
||||||
love.distributedrebirth.numberxd.base2t.type,
|
love.distributedrebirth.numberxd.base2t.type,
|
||||||
love.distributedrebirth.numberxd.base2t.typexl,
|
love.distributedrebirth.numberxd.base2t.typexl,
|
||||||
love.distributedrebirth.numberxd.x4o,
|
love.distributedrebirth.numberxd.x4o,
|
||||||
|
|
Loading…
Reference in a new issue