Added attributes to warp sea
This commit is contained in:
parent
569fc724c5
commit
d032830cf9
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue