Refactor amp into three modules, separating clients/server better
This commit is contained in:
parent
82fd9ff698
commit
b0d545a086
6 changed files with 711 additions and 706 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue