From 41dc5bcc88b2cdfd5cb454a03d7e6c274a75f734 Mon Sep 17 00:00:00 2001 From: Willem Date: Thu, 24 Feb 2022 02:28:26 +0100 Subject: [PATCH] Added warp-ship.xml boot structure. --- .../distributedrebirth/warpme/Warpᵐᵉ.java | 5 +-- .../warpme/ship/WaterDevice.java | 17 +++++++ .../warpme/ship/WaterDeviceDriver.java | 27 ++++++++++++ .../warpme/ship/WaterShip.java | 44 +++++++++++++++++++ .../warpme/ship/WaterShipOcean.java | 24 ++++++++++ .../META-INF/warp-ship/warp-ship-lang.eld | 40 +++++++++++++++++ .../META-INF/warp-ship/warp-ship-modules.xml | 10 +++++ .../src/resources/META-INF/x4o-drivers.xml | 1 + 8 files changed, 165 insertions(+), 3 deletions(-) create mode 100644 lib-warpme/src/main/love/distributedrebirth/warpme/ship/WaterDevice.java create mode 100644 lib-warpme/src/main/love/distributedrebirth/warpme/ship/WaterDeviceDriver.java create mode 100644 lib-warpme/src/main/love/distributedrebirth/warpme/ship/WaterShip.java create mode 100644 lib-warpme/src/main/love/distributedrebirth/warpme/ship/WaterShipOcean.java create mode 100644 lib-warpme/src/resources/META-INF/warp-ship/warp-ship-lang.eld create mode 100644 lib-warpme/src/resources/META-INF/warp-ship/warp-ship-modules.xml diff --git a/lib-warpme/src/main/love/distributedrebirth/warpme/Warpᵐᵉ.java b/lib-warpme/src/main/love/distributedrebirth/warpme/Warpᵐᵉ.java index 9828a7d8..dfd2ebb3 100644 --- a/lib-warpme/src/main/love/distributedrebirth/warpme/Warpᵐᵉ.java +++ b/lib-warpme/src/main/love/distributedrebirth/warpme/Warpᵐᵉ.java @@ -1,10 +1,9 @@ package love.distributedrebirth.warpme; public class Warpᵐᵉ { - - //public static final String WARP_BOOT = "warp-boot.xml"; + public static final String WARP_CORE = "warp-core.xml"; public static final String WARP_HASH = "warp-hash.xml"; public static final String WARP_SEA = "warp-sea.xml"; - public static final String WARP_ROOT = "warp-root.xml"; + public static final String WARP_SHIP = "warp-ship.xml"; } diff --git a/lib-warpme/src/main/love/distributedrebirth/warpme/ship/WaterDevice.java b/lib-warpme/src/main/love/distributedrebirth/warpme/ship/WaterDevice.java new file mode 100644 index 00000000..d8c63258 --- /dev/null +++ b/lib-warpme/src/main/love/distributedrebirth/warpme/ship/WaterDevice.java @@ -0,0 +1,17 @@ +package love.distributedrebirth.warpme.ship; + +import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; + +@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") +public class WaterDevice { + + private WaterShip ship; + + public WaterShip theShip() { + return ship; + } + + public void buildShip(WaterShip ship) { + this.ship = ship; + } +} diff --git a/lib-warpme/src/main/love/distributedrebirth/warpme/ship/WaterDeviceDriver.java b/lib-warpme/src/main/love/distributedrebirth/warpme/ship/WaterDeviceDriver.java new file mode 100644 index 00000000..d534d5c6 --- /dev/null +++ b/lib-warpme/src/main/love/distributedrebirth/warpme/ship/WaterDeviceDriver.java @@ -0,0 +1,27 @@ +package love.distributedrebirth.warpme.ship; + +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 WaterDeviceDriver extends X4ODriver { + + static final public String LANGUAGE_NAME = "warp-ship"; + 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 WaterDeviceDriver newInstance() { + return (WaterDeviceDriver)X4ODriverManager.getX4ODriver(LANGUAGE_NAME); + } +} diff --git a/lib-warpme/src/main/love/distributedrebirth/warpme/ship/WaterShip.java b/lib-warpme/src/main/love/distributedrebirth/warpme/ship/WaterShip.java new file mode 100644 index 00000000..f9738eaf --- /dev/null +++ b/lib-warpme/src/main/love/distributedrebirth/warpme/ship/WaterShip.java @@ -0,0 +1,44 @@ +package love.distributedrebirth.warpme.ship; + +import java.util.ArrayList; +import java.util.List; + +import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; + +@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") +public class WaterShip { + + private String name; + private String engine; + private List shipOceans = new ArrayList<>(); + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getEngine() { + return engine; + } + + public void setEngine(String engine) { + this.engine = engine; + } + + public List getShipOceans() { + return shipOceans; + } + + public void setShipOcean(List shipOceans) { + for (WaterShipOcean shipOcean:shipOceans) { + addShipOcean(shipOcean); + } + } + + public void addShipOcean(WaterShipOcean shipSea) { + shipOceans.add(shipSea); + } +} diff --git a/lib-warpme/src/main/love/distributedrebirth/warpme/ship/WaterShipOcean.java b/lib-warpme/src/main/love/distributedrebirth/warpme/ship/WaterShipOcean.java new file mode 100644 index 00000000..33c60ea5 --- /dev/null +++ b/lib-warpme/src/main/love/distributedrebirth/warpme/ship/WaterShipOcean.java @@ -0,0 +1,24 @@ +package love.distributedrebirth.warpme.ship; + +import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ; + +@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天") +public class WaterShipOcean { + + private String sea; + + public WaterShipOcean() { + } + + public WaterShipOcean(String sea) { + setSea(sea); + } + + public String getSea() { + return sea; + } + + public void setSea(String sea) { + this.sea = sea; + } +} diff --git a/lib-warpme/src/resources/META-INF/warp-ship/warp-ship-lang.eld b/lib-warpme/src/resources/META-INF/warp-ship/warp-ship-lang.eld new file mode 100644 index 00000000..e2714594 --- /dev/null +++ b/lib-warpme/src/resources/META-INF/warp-ship/warp-ship-lang.eld @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/lib-warpme/src/resources/META-INF/warp-ship/warp-ship-modules.xml b/lib-warpme/src/resources/META-INF/warp-ship/warp-ship-modules.xml new file mode 100644 index 00000000..7bb27943 --- /dev/null +++ b/lib-warpme/src/resources/META-INF/warp-ship/warp-ship-modules.xml @@ -0,0 +1,10 @@ + + + + warp-ship-lang.eld + + diff --git a/lib-warpme/src/resources/META-INF/x4o-drivers.xml b/lib-warpme/src/resources/META-INF/x4o-drivers.xml index 17e9234b..bd66f172 100644 --- a/lib-warpme/src/resources/META-INF/x4o-drivers.xml +++ b/lib-warpme/src/resources/META-INF/x4o-drivers.xml @@ -7,4 +7,5 @@ +