Пример #1
0
 private void OnStreamAdded(Club.ClubStreamAddedEvent newStreamEvent)
 {
     if (CommunityData.m_communityDictionary.ContainsKey(newStreamEvent.ClubID))
     {
         CommunityData.m_communityDictionary[newStreamEvent.ClubID].HandleStreamAddedEvent(newStreamEvent);
         this.FireChannelRefreshCallback(newStreamEvent.ClubID);
     }
 }
Пример #2
0
        public void HandleStreamAddedEvent(Club.ClubStreamAddedEvent streamAddedEvent)
        {
            ClubStreamInfo?streamInfo = Club.GetStreamInfo(streamAddedEvent.ClubID, streamAddedEvent.StreamID);

            if (streamInfo != null)
            {
                this.AddStream(streamInfo.Value);
            }
        }