Exemplo n.º 1
0
 def __updateBattleSwitches(self, vehicle):
     if self.__isActive:
         if vehicle is not None:
             compactDescr = vehicle.typeDescriptor.type.compactDescr
             WWISE.WW_setSwitch(_SWITCH_CHAR, self.__compactDescrToSwitchValue(compactDescr))
         WWISE.WW_setSwitch(_SWITCH_RU, self.__switchRuValue)
     return
Exemplo n.º 2
0
 def start(self):
     sound = self.__getMapping().get(self.__videoID)
     if sound:
         WWISE.WW_setSwitch(BattlePassLanguageSwitch.GROUP_NAME,
                            self.__selectLanguageState())
         WWISE.WW_eventGlobal(sound)
         self.__state = SoundManagerStates.PLAYING
Exemplo n.º 3
0
 def setSwitch(self, group, switch):
     WWISE.WW_setSwitch(group, switch)
Exemplo n.º 4
0
 def setBoxSwitch(nation):
     name = NYSoundEvents.BOX_SWITCHES.get(nation,
                                           NYSoundEvents.DEFAULT_BOX_SWITCH)
     WWISE.WW_setSwitch(NYSoundEvents.BOX_SWITCH_ID, name)
 def start(self):
     sound = self.__VIDEO_TO_SOUND.get(self.__videoID)
     if sound:
         WWISE.WW_setSwitch(BattlePassLanguageSwitch.GROUP_NAME,
                            self.__selectLanguageState())
         WWISE.WW_eventGlobal(sound)