本文整理汇总了Java中ethanjones.cubes.world.save.Save.getSaveOptions方法的典型用法代码示例。如果您正苦于以下问题:Java Save.getSaveOptions方法的具体用法?Java Save.getSaveOptions怎么用?Java Save.getSaveOptions使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ethanjones.cubes.world.save.Save
的用法示例。
在下文中一共展示了Save.getSaveOptions方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSave
import ethanjones.cubes.world.save.Save; //导入方法依赖的package包/类
private static Save getSave(CubesCmdLineOptions.ServerCmdLineOptions options) {
FileHandle worldFolder = Compatibility.get().getBaseFolder().child("world");
if (options.worldFolder != null)
worldFolder = Gdx.files.absolute(options.worldFolder);
Save save = new Save("world", worldFolder);
if (save.readSaveOptions() == null) {
SaveOptions saveOptions = save.getSaveOptions();
if (options.worldSeedString != null)
saveOptions.setWorldSeed(options.worldSeedString);
if (options.worldGenerator != null)
saveOptions.worldType = options.worldGenerator;
if (options.worldGamemode != null)
saveOptions.worldGamemode = options.worldGamemode;
}
return save;
}
示例2: World
import ethanjones.cubes.world.save.Save; //导入方法依赖的package包/类
public World(Save save) {
this.save = save;
this.terrainGenerator = save == null ? null : GeneratorManager.getTerrainGenerator(save.getSaveOptions());
this.time = save == null ? 0 : save.getSaveOptions().worldTime;
map = new AreaMap(this);
entities = new Entities(this);
lua = LuaMapping.mapping(new LuaMappingWorld(this));
}
示例3: World
import ethanjones.cubes.world.save.Save; //导入方法依赖的package包/类
public World(Save save) {
this.save = save;
this.terrainGenerator = save == null ? null : GeneratorManager.getTerrainGenerator(save.getSaveOptions());
this.time = save == null ? 0 : save.getSaveOptions().worldTime;
map = new AreaMap(this);
entities = new Entities(this);
lua = LuaMapping.mapping(new LuaMappingWorld(this));
}
示例4: getSave
import ethanjones.cubes.world.save.Save; //导入方法依赖的package包/类
private static Save getSave(CubesCmdLineOptions.ServerCmdLineOptions options) {
FileHandle worldFolder = Compatibility.get().getBaseFolder().child("world");
if (options.worldFolder != null) worldFolder = Gdx.files.absolute(options.worldFolder);
Save save = new Save("world", worldFolder);
if (save.readSaveOptions() == null) {
SaveOptions saveOptions = save.getSaveOptions();
if (options.worldSeedString != null) saveOptions.setWorldSeed(options.worldSeedString);
if (options.worldGenerator != null) saveOptions.worldType = options.worldGenerator;
if (options.worldGamemode != null) saveOptions.worldGamemode = options.worldGamemode;
}
return save;
}