Add java.util.random seed as initial parameter
- prepare for short save allowing to fully recreate initial lab having only seed and x,y,depth paramters
This commit is contained in:
@@ -16,7 +16,8 @@ public class Main
|
||||
|
||||
public LabyMap generate2(MazeParamEditor params)
|
||||
{
|
||||
LabyModel model = new LabyModel(params, new java.util.Random(1024L));
|
||||
params.setSeed(1024L);
|
||||
LabyModel model = new LabyModel(params);
|
||||
model.generateWithEntry(0, 0);
|
||||
|
||||
final int width = params.getWidth();
|
||||
|
||||
Reference in New Issue
Block a user