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

7
lib-warpme/build.gradle Normal file
View file

@ -0,0 +1,7 @@
sourceCompatibility = appJvmCode
[compileJava, compileTestJava]*.options*.encoding = appEncoding
sourceSets.main.java.srcDirs = [ "src/main/"]
sourceSets.main.resources.srcDirs = [ "src/resources/" ]
sourceSets.test.java.srcDirs = [ "src/test/"]
sourceSets.test.resources.srcDirs = [ "src/test-resources/" ]

View file

@ -0,0 +1,28 @@
package love.distributedrebirth.warpme;
import org.x4o.xml.X4ODriver;
import org.x4o.xml.X4ODriverManager;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
import love.distributedrebirth.warpme.core.WaterBucket;
@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

@ -0,0 +1,11 @@
package love.distributedrebirth.warpme.chain;
import java.util.List;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class WaterTag {
private List<WaterTagChain> tagChains;
}

View file

@ -0,0 +1,38 @@
package love.distributedrebirth.warpme.chain;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class WaterTagChain {
private String path;
private String key;
private String tag;
public WaterTagChain() {
}
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = key;
}
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
}

View file

@ -0,0 +1,17 @@
package love.distributedrebirth.warpme.core;
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

@ -0,0 +1,46 @@
package love.distributedrebirth.warpme.core;
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

@ -0,0 +1,37 @@
package love.distributedrebirth.warpme.core;
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

@ -0,0 +1,47 @@
package love.distributedrebirth.warpme.core;
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

@ -0,0 +1,14 @@
package love.distributedrebirth.warpme.store;
import java.util.List;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class WaterPathApplication {
private String name;
private String description;
private String resources;
private List<WaterPathDependency> dependencies;
}

View file

@ -0,0 +1,10 @@
package love.distributedrebirth.warpme.store;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class WaterPathDependency {
private String name;
private String version;
}

View file

@ -0,0 +1,14 @@
package love.distributedrebirth.warpme.store;
import java.util.List;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class WaterPathLibrary {
private String name;
private String resources;
private List<WaterPathLibraryFile> files;
private List<WaterPathDependency> dependencies;
}

View file

@ -0,0 +1,10 @@
package love.distributedrebirth.warpme.store;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class WaterPathLibraryFile {
private String name;
private String type;
}

View file

@ -0,0 +1,14 @@
package love.distributedrebirth.warpme.store;
import java.util.List;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class WaterPathMedia {
private String name;
private String description;
private String resources;
private List<WaterPathDependency> dependencies;
}

View file

@ -0,0 +1,11 @@
package love.distributedrebirth.warpme.store;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class WaterStore {
private WaterPathApplication application;
private WaterPathLibrary library;
private WaterPathMedia media;
}

View file

@ -0,0 +1,46 @@
<?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

@ -0,0 +1,10 @@
<?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

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<drivers version="1.0"
xmlns="http://language.x4o.org/xml/ns/drivers"
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"/>
</drivers>