mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-09 08:52:51 +00:00
Change-Id: Ifa069a09d1b603781a2c9255d89b77cd6f25a359
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
package com.l2jserver.service.game.world;
|
||||
|
||||
import com.l2jserver.model.world.AbstractObject;
|
||||
import com.l2jserver.model.world.event.WorldEvent;
|
||||
|
||||
public interface WorldEventDispatcher {
|
||||
void dispatch(AbstractObject object, WorldEvent event);
|
||||
}
|
||||
@@ -1,16 +1,13 @@
|
||||
package com.l2jserver.service.game.world;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
|
||||
import com.l2jserver.model.world.WorldObject;
|
||||
import com.l2jserver.model.world.filter.WorldFilter;
|
||||
import com.l2jserver.model.world.filter.WorldObjectFilter;
|
||||
import com.l2jserver.service.ServiceStartException;
|
||||
import com.l2jserver.service.ServiceStopException;
|
||||
|
||||
public class WorldServiceImpl implements WorldService {
|
||||
private Set<WorldObject> objects;
|
||||
|
||||
@Override
|
||||
public void start() throws ServiceStartException {
|
||||
// TODO Auto-generated method stub
|
||||
@@ -31,14 +28,15 @@ public class WorldServiceImpl implements WorldService {
|
||||
|
||||
@Override
|
||||
public Iterator<WorldObject> iterator() {
|
||||
return objects.iterator();
|
||||
}
|
||||
|
||||
public <T extends WorldObject> Iterator<T> iterator(WorldFilter<T> filter) {
|
||||
//return objects.iterator();
|
||||
// return objects.iterator();
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
public <T extends WorldObject> Iterator<T> iterator(WorldObjectFilter<T> filter) {
|
||||
// return objects.iterator();
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stop() throws ServiceStopException {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
Reference in New Issue
Block a user