Added warpme features

This commit is contained in:
Willem Cazander 2022-02-17 19:57:57 +01:00
parent 84055bdcdc
commit b7361c05d0
23 changed files with 163 additions and 10 deletions

View file

@ -16,6 +16,10 @@ 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ȍőnPartʸᴰ;
import love.distributedrebirth.warpme.core.WaterBucket;
import love.distributedrebirth.warpme.core.WaterCipher;
import love.distributedrebirth.warpme.core.WaterCipherHeart;
import love.distributedrebirth.warpme.core.WaterCipherHeartTone;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
@BãßBȍőnClassInfoʸᴰ(name = "TOSWarpCore", purpose = "The warpcore writer and armor manager.")

View file

@ -1,27 +0,0 @@
package love.distributedrebirth.numberxd.base2t.part.warp;
import org.x4o.xml.X4ODriver;
import org.x4o.xml.X4ODriverManager;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class TOSWarpCoreDriver extends X4ODriver<WaterBucket> {
static final public String LANGUAGE_NAME = "warpcore";
static final public String[] LANGUAGE_VERSIONS = new String[]{X4ODriver.DEFAULT_LANGUAGE_VERSION};
@Override
public String getLanguageName() {
return LANGUAGE_NAME;
}
@Override
public String[] getLanguageVersions() {
return LANGUAGE_VERSIONS;
}
static public TOSWarpCoreDriver newInstance() {
return (TOSWarpCoreDriver)X4ODriverManager.getX4ODriver(LANGUAGE_NAME);
}
}

View file

@ -1,17 +0,0 @@
package love.distributedrebirth.numberxd.base2t.part.warp;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class WaterBucket {
private WaterCipher water;
public WaterCipher theWater() {
return water;
}
public void fillWater(WaterCipher water) {
this.water = water;
}
}

View file

@ -1,46 +0,0 @@
package love.distributedrebirth.numberxd.base2t.part.warp;
import java.util.ArrayList;
import java.util.List;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class WaterCipher {
private String name;
private String description;
private List<WaterCipherHeart> cipherHearts;
public WaterCipher() {
cipherHearts = new ArrayList<>();
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public List<WaterCipherHeart> getCipherHearts() {
return cipherHearts;
}
public void addCipherHeart(WaterCipherHeart cipherHeart) {
this.cipherHearts.add(cipherHeart);
}
public void setCipherHearts(List<WaterCipherHeart> cipherHearts) {
this.cipherHearts = cipherHearts;
}
}

View file

@ -1,37 +0,0 @@
package love.distributedrebirth.numberxd.base2t.part.warp;
import java.util.ArrayList;
import java.util.List;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class WaterCipherHeart {
private Integer bass;
private List<WaterCipherHeartTone> heartTones;
public WaterCipherHeart() {
heartTones = new ArrayList<>();
}
public Integer getBass() {
return bass;
}
public void setBass(Integer bass) {
this.bass = bass;
}
public List<WaterCipherHeartTone> getHeartTones() {
return heartTones;
}
public void addHeartTone(WaterCipherHeartTone heartTone) {
heartTones.add(heartTone);
}
public void setHeartTones(List<WaterCipherHeartTone> heartTones) {
this.heartTones = heartTones;
}
}

View file

@ -1,47 +0,0 @@
package love.distributedrebirth.numberxd.base2t.part.warp;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class WaterCipherHeartTone {
private String part;
private String dialTone;
private String chinaKey;
private String chinaValue;
public WaterCipherHeartTone() {
}
public String getPart() {
return part;
}
public void setPart(String part) {
this.part = part;
}
public String getDialTone() {
return dialTone;
}
public void setDialTone(String dialTone) {
this.dialTone = dialTone;
}
public String getChinaKey() {
return chinaKey;
}
public void setChinaKey(String chinaKey) {
this.chinaKey = chinaKey;
}
public String getChinaValue() {
return chinaValue;
}
public void setChinaValue(String chinaValue) {
this.chinaValue = chinaValue;
}
}

View file

@ -1,46 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<root:module xmlns:root="http://eld.x4o.org/xml/ns/eld-root"
xmlns:eld="http://eld.x4o.org/xml/ns/eld-lang"
xmlns:conv="http://eld.x4o.org/xml/ns/eld-conv"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://eld.x4o.org/xml/ns/eld-root http://eld.x4o.org/xml/ns/eld-root-1.0.xsd"
providerHost="warpcore.x4o.distributedrebirth.love" providerName="WarpCore Encryption"
id="warpcore-module">
<eld:classBindingHandler id="Bucket-Water"
parentClass="love.distributedrebirth.numberxd.base2t.part.warp.WaterBucket"
childClass="love.distributedrebirth.numberxd.base2t.part.warp.WaterCipher"
addMethod="fillWater" getMethod="theWater" />
<eld:classBindingHandler id="Water-Heart"
parentClass="love.distributedrebirth.numberxd.base2t.part.warp.WaterCipher"
childClass="love.distributedrebirth.numberxd.base2t.part.warp.WaterCipherHeart"
addMethod="addCipherHeart" getMethod="getCipherHearts" />
<eld:classBindingHandler id="Heart-Tone"
parentClass="love.distributedrebirth.numberxd.base2t.part.warp.WaterCipherHeart"
childClass="love.distributedrebirth.numberxd.base2t.part.warp.WaterCipherHeartTone"
addMethod="addHeartTone" getMethod="getHeartTones" />
<eld:namespace
uri="http://wrapcore.x4o.distributedrebirth.love/xml/ns/warpcore-root"
schemaUri="http://warpcore.x4o.distributedrebirth.love/xml/ns/warpcore-root-1.0.xsd"
schemaResource="warpcore-root-1.0.xsd" schemaPrefix="root"
description="Root namespace to have nice namespaceing."
name="WarpCore Root Namespace" languageRoot="true" id="root">
<eld:element tag="bucket"
objectClass="love.distributedrebirth.numberxd.base2t.part.warp.WaterBucket"/>
</eld:namespace>
<eld:namespace
uri="http://warpcore.x4o.distributedrebirth.love/xml/ns/warpcore-cipher"
schemaUri="http://warpcore.x4o.distributedrebirth.love/xml/ns/warpcore-cipher-1.0.xsd"
schemaResource="warpcore-lang-1.0.xsd" schemaPrefix="cipher"
description="Language namespace to store warp cipher"
name="WarpCore Language Namespace" id="cipher">
<eld:element tag="water"
objectClass="love.distributedrebirth.numberxd.base2t.part.warp.WaterCipher" />
<eld:element tag="heart"
objectClass="love.distributedrebirth.numberxd.base2t.part.warp.WaterCipherHeart" />
<eld:element tag="tone"
objectClass="love.distributedrebirth.numberxd.base2t.part.warp.WaterCipherHeartTone" />
</eld:namespace>
</root:module>

View file

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<modules version="1.0"
xmlns="http://language.x4o.org/xml/ns/modules"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://language.x4o.org/xml/ns/modules http://language.x4o.org/xml/ns/modules-1.0.xsd"
>
<language version="1.0">
<eld-resource>warpcore-lang.eld</eld-resource>
</language>
</modules>

View file

@ -4,7 +4,6 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://language.x4o.org/xml/ns/drivers http://language.x4o.org/xml/ns/drivers-1.0.xsd"
>
<driver language="warpcore" className="love.distributedrebirth.numberxd.base2t.part.warp.TOSWarpCoreDriver"/>
<!--
<defaultDriver language="numberxd"/>
-->

View file

@ -4,6 +4,7 @@ import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.warpme.core.WaterBucket;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class TOSWarpCoreTest {