Moved registerForIntent() into constructors of all services

This commit is contained in:
Obique PSWG
2015-11-01 09:41:07 -06:00
parent 1a261a6556
commit ccad047e4f
26 changed files with 64 additions and 83 deletions
@@ -51,11 +51,12 @@ public class ClientBuildoutService extends Service {
areasById = new Hashtable<>(1000); // Number of buildout areas
getClientObjects = clientSdb.prepareStatement(GET_CLIENT_OBJECTS_SQL);
registerForIntent(PlayerTransformedIntent.TYPE);
}
@Override
public boolean initialize() {
registerForIntent(PlayerTransformedIntent.TYPE);
List<String> events = getEvents();
loadAreas(events);
return super.initialize();