Ejemplo n.º 1
0
 private void FireInviteRefreshCallback()
 {
     if (CommunityData.OnInviteRefresh != null)
     {
         CommunityData.OnInviteRefresh();
     }
 }
Ejemplo n.º 2
0
 private void FireChannelRefreshCallback(ulong clubID)
 {
     if (CommunityData.OnChannelRefresh != null)
     {
         CommunityData.OnChannelRefresh(clubID);
     }
 }
Ejemplo n.º 3
0
 private void FireRosterRefreshCallback(ulong clubID)
 {
     if (CommunityData.OnRosterRefresh != null)
     {
         CommunityData.OnRosterRefresh(clubID);
     }
 }
Ejemplo n.º 4
0
 private void FireCommunityRefreshCallback()
 {
     if (CommunityData.OnCommunityRefresh != null)
     {
         CommunityData.OnCommunityRefresh();
     }
 }
 static CommunityData()
 {
     CommunityData.m_instance            = null;
     CommunityData.m_communityDictionary = new Dictionary <ulong, Community>();
     CommunityData.m_pendingInvites      = new List <CommunityPendingInvite>();
     CommunityData.m_guildCommunity      = null;
 }
 public void Shutdown()
 {
     if (CommunityData.m_instance != null)
     {
         Club.OnClubAdded   -= new Club.ClubAddedHandler(this.OnClubAdded);
         Club.OnClubRemoved -= new Club.ClubRemovedHandler(this.OnClubRemoved);
         Club.OnClubUpdated -= new Club.ClubUpdatedHandler(this.OnClubUpdated);
         Club.OnClubInvitationAddedForSelf   -= new Club.ClubInvitationAddedForSelfHandler(this.OnInviteAdded);
         Club.OnClubInvitationRemovedForSelf -= new Club.ClubInvitationRemovedForSelfHandler(this.OnInviteRemoved);
         Club.OnClubMemberAdded           -= new Club.ClubMemberAddedHandler(this.OnMemberAdded);
         Club.OnClubMemberRemoved         -= new Club.ClubMemberRemovedHandler(this.OnMemberRemoved);
         Club.OnClubMemberUpdated         -= new Club.ClubMemberUpdatedHandler(this.OnMemberUpdated);
         Club.OnClubMemberRoleUpdated     -= new Club.ClubMemberRoleUpdatedHandler(this.OnMemberRoleUpdated);
         Club.OnClubMemberPresenceUpdated -= new Club.ClubMemberPresenceUpdatedHandler(this.OnMemberPresenceUpdated);
         Club.OnClubStreamAdded           -= new Club.ClubStreamAddedHandler(this.OnStreamAdded);
         Club.OnClubStreamRemoved         -= new Club.ClubStreamRemovedHandler(this.OnStreamRemoved);
         CommunityData.m_communityDictionary.Clear();
         CommunityData.m_pendingInvites.Clear();
         CommunityData.m_instance = null;
     }
 }