use of com.skelril.skree.service.internal.zone.ZoneRegion in project Skree by Skelril.
the class FreakyFourManager method discover.
@Override
public void discover(ZoneSpaceAllocator allocator, Consumer<Optional<FreakyFourInstance>> callback) {
allocator.regionFor(getSystemName(), clause -> {
ZoneRegion region = clause.getKey();
FreakyFourInstance instance = new FreakyFourInstance(region, config, charlotteManager, frimusManager, daBombManager, snipeeManager);
instance.init();
zones.add(instance);
callback.accept(Optional.of(instance));
});
}
use of com.skelril.skree.service.internal.zone.ZoneRegion in project Skree by Skelril.
the class TempleOfFateManager method init.
@Override
public void init(ZoneSpaceAllocator allocator, Consumer<TempleOfFateInstance> callback) {
allocator.regionFor(getSystemName(), clause -> {
ZoneRegion region = clause.getKey();
TempleOfFateInstance instance = new TempleOfFateInstance(region);
instance.init();
callback.accept(instance);
});
}
use of com.skelril.skree.service.internal.zone.ZoneRegion in project Skree by Skelril.
the class CatacombsManager method discover.
@Override
public void discover(ZoneSpaceAllocator allocator, Consumer<Optional<CatacombsInstance>> callback) {
allocator.regionFor(getSystemName(), clause -> {
ZoneRegion region = clause.getKey();
CatacombsInstance instance = new CatacombsInstance(region, bossManager, waveMobManager);
instance.init();
zones.add(instance);
callback.accept(Optional.of(instance));
});
}
use of com.skelril.skree.service.internal.zone.ZoneRegion in project Skree by Skelril.
the class JungleRaidManager method discover.
@Override
public void discover(ZoneSpaceAllocator allocator, Consumer<Optional<JungleRaidInstance>> callback) {
pendingRequest.add(clause -> {
ZoneRegion region = clause.getKey();
// The schematic is 1 too high
region = new ZoneRegion(allocator, region.getExtent(), region.getOrigin(), region.getBoundingBox().sub(0, 1, 0));
JungleRaidInstance instance = new JungleRaidInstance(region);
instance.init();
zones.add(instance);
callback.accept(Optional.of(instance));
});
processJobs(allocator);
}
use of com.skelril.skree.service.internal.zone.ZoneRegion in project Skree by Skelril.
the class TheButcherShopManager method discover.
@Override
public void discover(ZoneSpaceAllocator allocator, Consumer<Optional<TheButcherShopInstance>> callback) {
allocator.regionFor(getSystemName(), clause -> {
ZoneRegion region = clause.getKey();
TheButcherShopInstance instance = new TheButcherShopInstance(region);
instance.init();
zones.add(instance);
callback.accept(Optional.of(instance));
});
}
Aggregations