Esempio n. 1
0
 static void OnStopSound(MySyncSoundBlock sync, ref StopSoundMsg msg, MyNetworkClient sender)
 {
     sync.Entity.StopSound();
     if (Sync.IsServer)
     {
         Sync.Layer.SendMessageToAll(msg);
     }
 }
Esempio n. 2
0
        public void SendStopSoundRequest()
        {
            if (!Entity.IsWorking)
            {
                return;
            }

            StopSoundMsg msg = new StopSoundMsg();

            msg.EntityId = Entity.EntityId;

            Sync.Layer.SendMessageToServer(ref msg, MyTransportMessageEnum.Request);
        }
Esempio n. 3
0
        public void SendStopSoundRequest()
        {
            if (!Entity.IsWorking)
                return;

            StopSoundMsg msg = new StopSoundMsg();

            msg.EntityId = Entity.EntityId;

            Sync.Layer.SendMessageToServer(ref msg, MyTransportMessageEnum.Request);
        }
Esempio n. 4
0
 static void OnStopSound(MySyncSoundBlock sync, ref StopSoundMsg msg, MyNetworkClient sender)
 {
     sync.Entity.StopSound();
     if (Sync.IsServer)
         Sync.Layer.SendMessageToAll(msg);
 }