public void CreateFriendListItem(CreateInviteFriendListItemEvent e, OnlineFriendNode friend, [JoinSelf] Optional <OnlineFriendInBattleNode> friendInBattle, [JoinAll] SingleNode <InviteFriendsListComponent> inviteFriendsList, [JoinAll] SelectedBattle selectedBattle) { if (!friendInBattle.IsPresent() || (friendInBattle.Get().battleGroup.Key != selectedBattle.Entity.Id)) { this.CreateFriendListItem(friend.Entity.Id, inviteFriendsList.component); } }
public void CreateFriendListItem(NodeAddedEvent e, OnlineFriendNode friend, [JoinByUser] Optional <SingleNode <InviteFriendListItemComponent> > listItem, [JoinAll] UserFriendsLoadedNode inviteFriendsList) { if (!listItem.IsPresent()) { this.CreateFriendListItem(friend.Entity.Id, inviteFriendsList.inviteFriendsList); } }
public void HideInvitedFriendNotification(HideInvitedFriendNotificationEvent e, OnlineFriendNode friend, [JoinByUser] FriendUINode friendUI) { friendUI.inviteFriendListItem.NotificationContainer.SetActive(false); friendUI.inviteFriendListItem.UserLabelContainer.SetActive(true); }
public void AddFriendToList(NodeRemoveEvent e, FriendInBattleNode friendInBattle, [JoinSelf] OnlineFriendNode friend, [JoinByBattle] SelectedBattle battle, [JoinAll] SingleNode <InviteFriendsListComponent> inviteFriendsList) { this.CreateFriendListItem(friend.Entity.Id, inviteFriendsList.component); }
public void RemoveFriendFromList(NodeRemoveEvent e, OnlineFriendNode onlineFriend, [JoinByUser] SingleNode <InviteFriendListItemComponent> listItem, [JoinAll] SingleNode <InviteFriendsListComponent> inviteFriendsList) { Object.Destroy(listItem.component.gameObject); }