def onEnterWorld(self, prereqs):
     if self.modelName not in prereqs.failedIDs:
         model = prereqs[self.modelName]
         self.model = model
         self.filter = BigWorld.DumbFilter()
         if not self.__bspModel.setModel(self.model):
             LOG_ERROR('ClientSelectableObject failed to setModel', self.modelName)
 def onEnterWorld(self, prereqs):
     if self.modelName not in prereqs.failedIDs:
         model = prereqs[self.modelName]
         model.castsShadow = self._castsShadow()
         self.model = model
         self.filter = BigWorld.DumbFilter()
         self.model.addMotor(BigWorld.Servo(self.matrix))
         self.__setBSP(model)
 def onEnterWorld(self, prereqs):
     if self.baseModelName not in prereqs.failedIDs:
         model = prereqs[self.baseModelName]
         self.model = model
         self.filter = BigWorld.DumbFilter()
         self.model.addMotor(BigWorld.Servo(self.matrix))
     g_eventBus.addListener(events.NewYearEvent.ON_PLACE_GROUND_LIGHTS,
                            self.__handlePlaceToyEvent,
                            EVENT_BUS_SCOPE.LOBBY)
     g_eventBus.addListener(events.NewYearEvent.ON_REMOVE_GROUND_LIGHTS,
                            self.__handleRemoveToyEvent,
                            EVENT_BUS_SCOPE.LOBBY)
 def onEnterWorld(self, prereqs):
     if not self.modelName:
         return
     if self.modelName not in prereqs.failedIDs:
         model = prereqs[self.modelName]
         self.model = model
         self.filter = BigWorld.DumbFilter()
         self.model.addMotor(BigWorld.Servo(self.matrix))
         self.collisions = prereqs['collisionAssembler']
         collisionData = ((0, self.model.matrix), )
         self.collisions.connect(self.id, ColliderTypes.DYNAMIC_COLLIDER,
                                 collisionData)
     ScriptGameObject.activate(self)