Example #1
0
 private DataEntityHandle addFriendStatusAndSwid(DataEntityHandle handle, IFriend friend)
 {
     if (!handle.IsNull)
     {
         FriendData friendData = dataEntityCollection.AddComponent <FriendData>(handle);
         friendData.Friend = friend;
         SwidData swidData = dataEntityCollection.AddComponent <SwidData>(handle);
         swidData.Swid = friend.Id;
         DisplayNameData component = dataEntityCollection.GetComponent <DisplayNameData>(handle);
         component.DisplayName = friend.DisplayName.Text;
         Service.Get <OtherPlayerDetailsRequestBatcher>().RequestOtherPlayerDetails(handle);
     }
     return(handle);
 }
Example #2
0
 private void onDisplayNameDataAdded(DisplayNameData displayNameData)
 {
     onDisplayNameChanged(displayNameData.DisplayName);
     displayNameData.OnDisplayNameChanged += onDisplayNameChanged;
 }