本文整理汇总了Python中FMOD.lightSoundRemove方法的典型用法代码示例。如果您正苦于以下问题:Python FMOD.lightSoundRemove方法的具体用法?Python FMOD.lightSoundRemove怎么用?Python FMOD.lightSoundRemove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FMOD
的用法示例。
在下文中一共展示了FMOD.lightSoundRemove方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __destroyDestructible
# 需要导入模块: import FMOD [as 别名]
# 或者: from FMOD import lightSoundRemove [as 别名]
def __destroyDestructible(self, chunkID, dmgType, destData, isNeedAnimation, explosionInfo=None):
if self.forceNoAnimation:
isNeedAnimation = False
if dmgType == DESTR_TYPE_FALLING_ATOM:
destrIndex, fallDirYaw, fallSpeed = decodeFallenColumn(destData)
pitchConstr, collisionFlags = BigWorld.wg_getDestructibleFallPitchConstr(
self.__spaceID, chunkID, destrIndex, fallDirYaw
)
if pitchConstr is None:
pitchConstr = math.pi / 2.0
self.__dropDestructible(
chunkID, destrIndex, fallDirYaw, pitchConstr, fallSpeed, isNeedAnimation, collisionFlags
)
if dmgType == DESTR_TYPE_TREE:
destrIndex, fallDirYaw, pitchConstr, fallSpeed = decodeFallenTree(destData)
_, collisionFlags = BigWorld.wg_getDestructibleFallPitchConstr(
self.__spaceID, chunkID, destrIndex, fallDirYaw
)
self.__dropDestructible(
chunkID, destrIndex, fallDirYaw, pitchConstr, fallSpeed, isNeedAnimation, collisionFlags
)
if FMOD.enabled:
FMOD.lightSoundRemove(self.__spaceID, chunkID, destrIndex)
elif dmgType == DESTR_TYPE_FRAGILE:
destrIndex, isShotDamage = decodeFragile(destData)
self.__destroyFragile(chunkID, destrIndex, isNeedAnimation, isShotDamage, explosionInfo)
if FMOD.enabled:
FMOD.lightSoundRemove(self.__spaceID, chunkID, destrIndex)
elif dmgType == DESTR_TYPE_STRUCTURE:
destrIndex, matKind, isShotDamage = decodeDestructibleModule(destData)
self.__destroyModule(chunkID, destrIndex, matKind, isNeedAnimation, isShotDamage, explosionInfo)