Beispiel #1
0
 private bool onFriendsServiceCleared(FriendsServiceEvents.FriendsServiceCleared evt)
 {
     Service.Get <EventDispatcher>().RemoveListener <FriendsServiceEvents.SendFriendInvitationSent>(onFriendInvitationSent);
     Service.Get <EventDispatcher>().RemoveListener <FriendsServiceEvents.AcceptFriendInvitationSent>(onAcceptFriendInvitationSent);
     Service.Get <EventDispatcher>().RemoveListener <FriendsServiceEvents.RejectFriendInvitationSent>(onRejectFriendInvitationSent);
     Service.Get <EventDispatcher>().RemoveListener <FriendsServiceEvents.UnfriendSent>(onUnfriendSent);
     dataEntityCollection.EventDispatcher.RemoveListener <DataEntityEvents.ComponentAddedEvent <IncomingFriendInvitationData> >(onIncomingFriendInvitationComponentAdded);
     dataEntityCollection.EventDispatcher.RemoveListener <DataEntityEvents.ComponentAddedEvent <OutgoingFriendInvitationData> >(onOutgoingFriendInvitationComponentAdded);
     return(false);
 }
Beispiel #2
0
 private bool onFriendsServiceCleared(FriendsServiceEvents.FriendsServiceCleared evt)
 {
     dataEntityCollection.EventDispatcher.RemoveListener <DataEntityEvents.ComponentAddedEvent <FriendData> >(onFriendComponentAdded);
     dataEntityCollection.EventDispatcher.RemoveListener <DataEntityEvents.ComponentAddedEvent <IncomingFriendInvitationData> >(onIncomingFriendInvitationComponentAdded);
     return(false);
 }