Exemple #1
0
        public static LevelShopItem FromMetadata(ShopItemMetadata metadata)
        {
            var levelShopItem = new LevelShopItem();
            FillWithMetadata(levelShopItem, metadata);

            return levelShopItem;
        }
Exemple #2
0
 public static new ShieldShopItem FromMetadata(ShopItemMetadata metadata)
 {
     var item = new ShieldShopItem();
     FillWithMetadata(item, metadata);
     return item;
 }
Exemple #3
0
 public static void FillWithMetadata(LevelShopItem existingItem, ShopItemMetadata metadata)
 {
     existingItem.Price = metadata.Price;
     existingItem.UpgradeName = metadata.UpgradeName;
     existingItem.ItemTitle = metadata.ItemTitle;
 }