コード例 #1
0
ファイル: net.py プロジェクト: BackupTheBerlios/vellum-svn
 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)
コード例 #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)
コード例 #3
0
ファイル: net.py プロジェクト: BackupTheBerlios/vellum-svn
 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()
コード例 #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()