Added runtime copyright and fixed method naming
This commit is contained in:
parent
71e4719cdf
commit
4306fb6a43
|
@ -77,13 +77,13 @@ public class Demo4DMain extends Game {
|
||||||
try {
|
try {
|
||||||
if (args.contains("warpcore-load")) {
|
if (args.contains("warpcore-load")) {
|
||||||
System.out.println("warpcore-load: requested");
|
System.out.println("warpcore-load: requested");
|
||||||
WaterBucket bucket = TOSWarpCoreDriver.getInstance().createReader().readFile("./warpcore.xml");
|
WaterBucket bucket = TOSWarpCoreDriver.newInstance().createReader().readFile("./warpcore.xml");
|
||||||
TOSWarpCore.INSTANCE.BãßArmWarpCore(bucket);
|
TOSWarpCore.INSTANCE.BãßArmWarpCore(bucket);
|
||||||
}
|
}
|
||||||
if (args.contains("warpcore-save")) {
|
if (args.contains("warpcore-save")) {
|
||||||
System.out.println("warpcore-save: requested");
|
System.out.println("warpcore-save: requested");
|
||||||
WaterBucket bucket = TOSWarpCore.INSTANCE.BãßCurrentWarpCore();
|
WaterBucket bucket = TOSWarpCore.INSTANCE.BãßCurrentWarpCore();
|
||||||
TOSWarpCoreDriver.getInstance().createWriter().writeFile(bucket, "./warpcore.xml");
|
TOSWarpCoreDriver.newInstance().createWriter().writeFile(bucket, "./warpcore.xml");
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
|
|
|
@ -3,6 +3,9 @@ package love.distributedrebirth.numberxd.base2t.part.warp;
|
||||||
import org.x4o.xml.X4ODriver;
|
import org.x4o.xml.X4ODriver;
|
||||||
import org.x4o.xml.X4ODriverManager;
|
import org.x4o.xml.X4ODriverManager;
|
||||||
|
|
||||||
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||||
|
|
||||||
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||||
public class TOSWarpCoreDriver extends X4ODriver<WaterBucket> {
|
public class TOSWarpCoreDriver extends X4ODriver<WaterBucket> {
|
||||||
|
|
||||||
static final public String LANGUAGE_NAME = "warpcore";
|
static final public String LANGUAGE_NAME = "warpcore";
|
||||||
|
@ -18,7 +21,7 @@ public class TOSWarpCoreDriver extends X4ODriver<WaterBucket> {
|
||||||
return LANGUAGE_VERSIONS;
|
return LANGUAGE_VERSIONS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static public TOSWarpCoreDriver getInstance() {
|
static public TOSWarpCoreDriver newInstance() {
|
||||||
return (TOSWarpCoreDriver)X4ODriverManager.getX4ODriver(LANGUAGE_NAME);
|
return (TOSWarpCoreDriver)X4ODriverManager.getX4ODriver(LANGUAGE_NAME);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue