static void OnChangeSoundRange(MySyncSoundBlock sync, ref ChangeSoundRangeMsg msg, MyNetworkClient sender)
 {
     sync.Entity.Range = msg.Range;
     if (Sync.IsServer)
     {
         Sync.Layer.SendMessageToAll(msg);
     }
 }
 static void OnStopSound(MySyncSoundBlock sync, ref StopSoundMsg msg, MyNetworkClient sender)
 {
     sync.Entity.StopSound();
     if (Sync.IsServer)
     {
         Sync.Layer.SendMessageToAll(msg);
     }
 }
 static void OnChangeLoopPeriod(MySyncSoundBlock sync, ref ChangeLoopPeriodMsg msg, MyNetworkClient sender)
 {
     sync.Entity.LoopPeriod = msg.LoopPeriod;
     if (Sync.IsServer)
     {
         Sync.Layer.SendMessageToAll(msg);
     }
 }
 static void OnSelectSound(MySyncSoundBlock sync, ref SelectSoundMsg msg, MyNetworkClient sender)
 {
     sync.Entity.SelectSound(msg.CueId, false);
     if (Sync.IsServer)
     {
         Sync.Layer.SendMessageToAll(msg);
     }
 }
 static void OnChangeSoundRange(MySyncSoundBlock sync, ref ChangeSoundRangeMsg msg, MyNetworkClient sender)
 {
     sync.Entity.Range = msg.Range;
     if (Sync.IsServer)
         Sync.Layer.SendMessageToAll(msg);
 }
 static void OnChangeLoopPeriod(MySyncSoundBlock sync, ref ChangeLoopPeriodMsg msg, MyNetworkClient sender)
 {
     sync.Entity.LoopPeriod = msg.LoopPeriod;
     if (Sync.IsServer)
         Sync.Layer.SendMessageToAll(msg);
 }
 static void OnStopSound(MySyncSoundBlock sync, ref StopSoundMsg msg, MyNetworkClient sender)
 {
     sync.Entity.StopSound();
     if (Sync.IsServer)
         Sync.Layer.SendMessageToAll(msg);
 }
 static void OnSelectSound(MySyncSoundBlock sync, ref SelectSoundMsg msg, MyNetworkClient sender)
 {
     sync.Entity.SelectSound(msg.CueId, false);
     if (Sync.IsServer)
         Sync.Layer.SendMessageToAll(msg);
 }