def perspective_receiveNewModel(self, sender, type, object_id,): """Called by the client to notify that a new object has appeared. Notifies the dispatch mechanism. """ print 'received and adding model', object_id model = loader.typeByName(type)() self.models[model] = object_id dispatcher.send(signal=New, sender=self.username, model=model)
def perspective_receiveNewModel( self, sender, type, object_id, ): """Called by the client to notify that a new object has appeared. Notifies the dispatch mechanism. """ print 'received and adding model', object_id model = loader.typeByName(type)() self.models[model] = object_id dispatcher.send(signal=New, sender=self.username, model=model)
def remote_receiveNewModel(self, sender, type, object_id,): """Called by the avatar to notify that a new object has appeared on the map. Notifies the dispatch mechanism. """ print 'received propagated model', object_id model = loader.typeByName(type)() self.remote_models[model] = object_id dispatcher.send(signal=New, sender='remote', model=model) model.present()
def remote_receiveNewModel( self, sender, type, object_id, ): """Called by the avatar to notify that a new object has appeared on the map. Notifies the dispatch mechanism. """ print 'received propagated model', object_id model = loader.typeByName(type)() self.remote_models[model] = object_id dispatcher.send(signal=New, sender='remote', model=model) model.present()