备份CatanBuilding瘦身独立工程

This commit is contained in:
JSD\13999
2026-05-26 16:15:54 +08:00
commit 2d0e6a61b7
12001 changed files with 2431925 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace game
{
public class FriendAddItemData
{
public int Type = 0;
public BFriendInfo FriendInfo = null;
public int Extra = 0;
public bool EqualsPlayFabId(FriendAddItemData data)
{
if (this.FriendInfo == data.FriendInfo) return true;
if (this.FriendInfo != null && data.FriendInfo != null && this.FriendInfo.PlayFabId == data.FriendInfo.PlayFabId)
{
return true;
}
return false;
}
public bool Equals(FriendAddItemData data)
{
if (this.Type != data.Type || this.Extra != data.Extra) return false;
if (this.FriendInfo == data.FriendInfo) return true;
if (this.FriendInfo != null && data.FriendInfo != null)
{
if (this.FriendInfo.Level == data.FriendInfo.Level && this.FriendInfo.AvatarUrl == data.FriendInfo.AvatarUrl
&& this.FriendInfo.DisplayName == data.FriendInfo.DisplayName && this.FriendInfo.PlayFabId == data.FriendInfo.PlayFabId)
{
return true;
}
}
return false;
}
}
}