Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
 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()
Beispiel #4
0
 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()