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