Make the world sector repository public.

This commit is contained in:
Major-
2014-02-15 15:19:29 +00:00
parent 8c6d6bf189
commit d2580074ae
+14 -5
View File
@@ -123,16 +123,16 @@ public final class World {
*/ */
private int releaseNumber; private int releaseNumber;
/**
* This world's {@link SectorRepository}.
*/
private final SectorRepository sectorRepository = new SectorRepository(false);
/** /**
* The scheduler. * The scheduler.
*/ */
private final Scheduler scheduler = new Scheduler(); private final Scheduler scheduler = new Scheduler();
/**
* This world's {@link SectorRepository}.
*/
private final SectorRepository sectorRepository = new SectorRepository(false);
/** /**
* Creates the world. * Creates the world.
*/ */
@@ -214,6 +214,15 @@ public final class World {
return releaseNumber; return releaseNumber;
} }
/**
* Gets this world's {@link SectorRepository}.
*
* @return The sector repository.
*/
public SectorRepository getSectorRepository() {
return sectorRepository;
}
/** /**
* Initialises the world by loading definitions from the specified file system. * Initialises the world by loading definitions from the specified file system.
* *