public static LevelShopItem FromMetadata(ShopItemMetadata metadata) { var levelShopItem = new LevelShopItem(); FillWithMetadata(levelShopItem, metadata); return levelShopItem; }
public static void FillWithMetadata(LevelShopItem existingItem, ShopItemMetadata metadata) { existingItem.Price = metadata.Price; existingItem.UpgradeName = metadata.UpgradeName; existingItem.ItemTitle = metadata.ItemTitle; }