Exemple #1
0
    def onClientEnabled(self):
        """
        KBEngine method.
        该entity被正式激活为可使用, 此时entity已经建立了client对应实体, 可以在此创建它的
        cell部分。
        """
        #INFO_MSG("Avatar[%i-%s] entities enable. spaceUTypeB=%s, entityCall:%s" % (self.id, self.nameB, self.spaceUTypeB, self.client))
        Teleport.onClientEnabled(self)

        if self._destroyTimer > 0:
            self.delTimer(self._destroyTimer)
            self._destroyTimer = 0
Exemple #2
0
    def onClientEnabled(self):
        """
		Ouroboros method.
		The entity is officially activated to be usable.
		At this point, the entity has established the client corresponding entity,
		and its cell part can be created here.
		"""
        INFO_MSG(
            "Avatar[%i-%s] entities enable. spaceUTypeB=%s, entityCall:%s" %
            (self.id, self.playerName, self.spaceUTypeB, self.client))

        Teleport.onClientEnabled(self)

        if self._destroyTimer > 0:
            self.delTimer(self._destroyTimer)
            self._destroyTimer = 0