Added attributes to warp sea

This commit is contained in:
Willem Cazander 2022-02-23 21:01:53 +01:00
parent 569fc724c5
commit d032830cf9
3 changed files with 25 additions and 1 deletions

View file

@ -9,6 +9,8 @@ import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
public class WaterSea {
private String name;
private String author;
private String provider;
private List<WaterSeaChain> seaChains = new ArrayList<>();
private List<WaterSeaMagic> seaMagics = new ArrayList<>();
@ -20,6 +22,22 @@ public class WaterSea {
this.name = name;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getProvider() {
return provider;
}
public void setProvider(String provider) {
this.provider = provider;
}
public List<WaterSeaChain> getSeaChains() {
return seaChains;
}

View file

@ -37,7 +37,11 @@
description="Language namespace to store warp sea"
name="WarpSea Language Namespace" id="link">
<eld:element tag="sea"
objectClass="love.distributedrebirth.warpme.sea.WaterSea" />
objectClass="love.distributedrebirth.warpme.sea.WaterSea">
<eld:attribute id="name" writeOrder="0"/>
<eld:attribute id="provider" writeOrder="1" required="false"/>
<eld:attribute id="author" writeOrder="2" required="false"/>
</eld:element>
<eld:element tag="chain"
objectClass="love.distributedrebirth.warpme.sea.WaterSeaChain" />
<eld:element tag="magic"

View file

@ -17,6 +17,8 @@ public class WaterOceanDriverTest {
WaterOcean ocean = new WaterOcean();
WaterSea sea = new WaterSea();
sea.setName("MyFirstSea");
sea.setAuthor("willemtsade");
sea.setProvider("GDXApp-base");
ocean.fillWater(sea);