public void AddIncommingFriend(IncomingFriendAddedEvent e, SingleNode <FriendsComponent> userFriends) { userFriends.component.IncommingFriendsIds.Add(e.FriendId); MarkUserIfEntityLoaded <IncommingFriendComponent>(e.FriendId); }
public void AddIncommingFriend(IncomingFriendAddedEvent e, SingleNode <FriendsBadgeCounterComponent> friends, [JoinAll] Optional <SingleNode <OpenFriendsScreenButtonComponent> > button) { friends.component.Counter++; this.UpdateBadgeIfPresent(friends, button); }