Ejemplo n.º 1
0
 def _connected(self):
     # Register our channel
     self.setConnectionName(self.districtName)
     AIRepository._connected(self)
     self.registerShardDownMessage(self.serverId)
     if self.districtType is not None:
         self.fsm.request("districtReset")
Ejemplo n.º 2
0
 def _connected(self):
     """
     Callback for when we successfully connect to the otp_server cluster.
     """
     self.setConnectionName("UberDog")
     AIRepository._connected(self)
     # Listen for Account and Avatar online/offline messages
     self.registerForChannel(CHANNEL_PUPPET_ACTION)
     self.fsm.request("playGame")