Refactor amp into three modules, separating clients/server better

This commit is contained in:
Griatch 2018-01-11 23:43:58 +01:00
parent 82fd9ff698
commit b0d545a086
6 changed files with 711 additions and 706 deletions

View file

@ -548,9 +548,9 @@ if AMP_ENABLED:
ifacestr = "-%s" % AMP_INTERFACE
print(' amp (to Portal)%s: %s (internal)' % (ifacestr, AMP_PORT))
from evennia.server import amp
from evennia.server import amp_client
factory = amp.AmpClientFactory(EVENNIA)
factory = amp_client.AMPClientFactory(EVENNIA)
amp_service = internet.TCPClient(AMP_HOST, AMP_PORT, factory)
amp_service.setName('ServerAMPClient')
EVENNIA.services.addService(amp_service)