Пример #1
0
 static void OnChangeSoundRange(MySyncSoundBlock sync, ref ChangeSoundRangeMsg msg, MyNetworkClient sender)
 {
     sync.Entity.Range = msg.Range;
     if (Sync.IsServer)
     {
         Sync.Layer.SendMessageToAll(msg);
     }
 }
Пример #2
0
 static void OnStopSound(MySyncSoundBlock sync, ref StopSoundMsg msg, MyNetworkClient sender)
 {
     sync.Entity.StopSound();
     if (Sync.IsServer)
     {
         Sync.Layer.SendMessageToAll(msg);
     }
 }
Пример #3
0
 static void OnChangeLoopPeriod(MySyncSoundBlock sync, ref ChangeLoopPeriodMsg msg, MyNetworkClient sender)
 {
     sync.Entity.LoopPeriod = msg.LoopPeriod;
     if (Sync.IsServer)
     {
         Sync.Layer.SendMessageToAll(msg);
     }
 }
Пример #4
0
 static void OnSelectSound(MySyncSoundBlock sync, ref SelectSoundMsg msg, MyNetworkClient sender)
 {
     sync.Entity.SelectSound(msg.CueId, false);
     if (Sync.IsServer)
     {
         Sync.Layer.SendMessageToAll(msg);
     }
 }
Пример #5
0
 static void OnChangeSoundRange(MySyncSoundBlock sync, ref ChangeSoundRangeMsg msg, MyNetworkClient sender)
 {
     sync.Entity.Range = msg.Range;
     if (Sync.IsServer)
         Sync.Layer.SendMessageToAll(msg);
 }
Пример #6
0
 static void OnChangeLoopPeriod(MySyncSoundBlock sync, ref ChangeLoopPeriodMsg msg, MyNetworkClient sender)
 {
     sync.Entity.LoopPeriod = msg.LoopPeriod;
     if (Sync.IsServer)
         Sync.Layer.SendMessageToAll(msg);
 }
Пример #7
0
 static void OnStopSound(MySyncSoundBlock sync, ref StopSoundMsg msg, MyNetworkClient sender)
 {
     sync.Entity.StopSound();
     if (Sync.IsServer)
         Sync.Layer.SendMessageToAll(msg);
 }
Пример #8
0
 static void OnSelectSound(MySyncSoundBlock sync, ref SelectSoundMsg msg, MyNetworkClient sender)
 {
     sync.Entity.SelectSound(msg.CueId, false);
     if (Sync.IsServer)
         Sync.Layer.SendMessageToAll(msg);
 }