Пример #1
0
        private void SendMusicTransition(MyMusicEventEnum musicEventType, int?priority, MyMusicTransitionEnum?transitionEnum, string category, bool loop)
        {
            var msg = new MyEventMusicTransition();

            msg.MusicEventType = musicEventType;
            msg.TransitionEnum = transitionEnum.HasValue ? (int)transitionEnum.Value : 0;
            msg.Priority       = priority ?? 0;
            msg.Category       = category;
            msg.Loop           = loop;

            Peers.SendToAll(ref msg, NetDeliveryMethod.ReliableOrdered);
        }
        private void SendMusicTransition(MyMusicEventEnum musicEventType, int? priority, MyMusicTransitionEnum? transitionEnum, string category, bool loop)
        {
            var msg = new MyEventMusicTransition();
            msg.MusicEventType = musicEventType;
            msg.TransitionEnum = transitionEnum.HasValue ? (int)transitionEnum.Value : 0;
            msg.Priority = priority ?? 0;
            msg.Category = category;
            msg.Loop = loop;

            Peers.SendToAll(ref msg, NetDeliveryMethod.ReliableOrdered);
        }