# coding=utf-8 from ..BlueFoxTools.SystemTools import SystemTools def PlaySoundToAllClient(posDim, soundName, pitch=1): """向所有玩家播放指定声音""" SystemTools.GetSystemByClsName('BlueFoxServerSystem').BroadcastToAllClient('PlaySound', { 'posDim': posDim, 'soundName': soundName, 'pitch': pitch }) def PlayAttackToClient(playerId): """向所有玩家播放指定声音""" SystemTools.GetSystemByClsName('BlueFoxServerSystem').NotifyToClient(playerId, 'PlayAttackAnim', {})