public OutfitData Serialize(Outfit outfit) { var outfitData = new OutfitData(); outfitData.outfitType = outfit.GetOutfitType(); outfitData.slotUiIndex = outfit.GetItemUi().GetItemUiSlotIndex(); return(outfitData); }