0.5.1
little of javadocs, need to add them when writing code from now on
This commit is contained in:
parent
0d910d3baf
commit
bf5aa6cff0
26 changed files with 513 additions and 208 deletions
|
@ -1,11 +1,32 @@
|
|||
package gq.unurled.raxen.manager.server;
|
||||
|
||||
import gq.unurled.raxen.Raxen;
|
||||
import gq.unurled.raxen.components.dungeons.Dungeon;
|
||||
import gq.unurled.raxen.components.dungeons.Gate;
|
||||
import gq.unurled.raxen.components.dungeons.types.forest.ForestDungeon;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.UUID;
|
||||
|
||||
public class DungeonsManager {
|
||||
|
||||
private Raxen main;
|
||||
|
||||
private HashMap<UUID, Gate> gates = new HashMap<>();
|
||||
|
||||
private HashMap<String, Dungeon> dungeons = new HashMap<>();
|
||||
|
||||
public DungeonsManager(Raxen main) {
|
||||
this.main = main;
|
||||
registerDungeons();
|
||||
}
|
||||
|
||||
public void registerDungeons() {
|
||||
ForestDungeon forestDungeon = new ForestDungeon();
|
||||
dungeons.put("FOREST", forestDungeon);
|
||||
|
||||
for (String s : dungeons.keySet()) {
|
||||
main.getManager().getWorldManager().loadWorld(dungeons.get(s).getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue