Пример #1
0
 public void AddAcceptedFriend(AcceptedFriendAddedEvent e, SingleNode <FriendsBadgeCounterComponent> friends, [JoinAll] Optional <SingleNode <OpenFriendsScreenButtonComponent> > button)
 {
     friends.component.Counter--;
     this.UpdateBadgeIfPresent(friends, button);
 }
Пример #2
0
 public void AddAcceptedFriend(AcceptedFriendAddedEvent e, SingleNode <FriendsComponent> userFriends)
 {
     userFriends.component.AcceptedFriendsIds.Add(e.FriendId);
     MarkUserIfEntityLoaded <AcceptedFriendComponent>(e.FriendId);
 }
Пример #3
0
 public void AddAcceptedFriend(AcceptedFriendAddedEvent e, Node any, [JoinAll] SingleNode <IncomingFriendsCounterComponent> counter)
 {
     counter.component.Count--;
 }