public void SetFriendProfileHeader(NodeAddedEvent e, ProfileScreenWithUserGroupNode profileScreen, [Context, JoinByUser] FriendUserNode friendUser) { SetScreenHeaderEvent eventInstance = new SetScreenHeaderEvent(); eventInstance.Immediate(profileScreen.profileScreenLocalization.FriendsProfileHeaderText); base.ScheduleEvent(eventInstance, profileScreen); }
public void Invite(ButtonClickEvent e, InviteToSquadButtonNode button, [JoinByUser] FriendUserNode friend, [JoinAll] SingleNode <FriendsComponent> friends, [JoinAll] SelfUserNode selfUser, [JoinBySquad] Optional <SquadNode> squad) { this.ScheduleEvent(new FriendInviteToSquadEvent(friend.Entity.Id, InteractionSource.SQUAD, !squad.IsPresent() ? 0L : squad.Get().Entity.Id), friend); }