| | 1 | | using System.Linq; |
| | 2 | |
|
| | 3 | | namespace DCL.ECSComponents |
| | 4 | | { |
| | 5 | | public static class AvatarUtils |
| | 6 | | { |
| | 7 | | public static bool HaveSameWearablesAndColors(PBAvatarShape avatar, PBAvatarShape otheravatar) |
| | 8 | | { |
| 0 | 9 | | if (otheravatar == null || avatar == null) |
| 0 | 10 | | return false; |
| | 11 | |
|
| 0 | 12 | | bool wearablesAreEqual = avatar.GetWereables().All(otheravatar.GetWereables().Contains) && avatar.GetWereabl |
| | 13 | |
|
| 0 | 14 | | return avatar.GetBodyShape().Equals(otheravatar.GetBodyShape()) && |
| | 15 | | avatar.GetSkinColor().Equals(otheravatar.GetSkinColor()) && |
| | 16 | | avatar.GetHairColor().Equals(otheravatar.GetHairColor()) && |
| | 17 | | avatar.GetEyeColor().Equals(otheravatar.GetEyeColor()) && |
| | 18 | | wearablesAreEqual; |
| | 19 | | } |
| | 20 | | } |
| | 21 | | } |