예제 #1
0
        public static Model FromWearableItem(WearableItem wearable)
        {
            var iconsIds = wearable.data.representations.SelectMany(x => x.bodyShapes).ToList();

            iconsIds.Add(wearable.data.category);

            return(new Model()
            {
                name = wearable.GetName(),
                thumbnail = wearable.baseUrl + wearable.thumbnail,
                iconIds = iconsIds,
                description = wearable.description,
                issuedId = wearable.issuedId,
                issuedTotal = wearable.GetIssuedCountFromRarity(wearable.rarity),
                isInL2 = wearable.IsInL2()
            });
        }