コード例 #1
0
ファイル: Vegetable.cs プロジェクト: cberberian/GameSim
 public Vegetable(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }
コード例 #2
0
ファイル: Seed.cs プロジェクト: cberberian/GameSim
 public Seed(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }
コード例 #3
0
ファイル: LegacyProduct.cs プロジェクト: cberberian/GameSim
        public static LegacyProduct ResolveItem(IProduct legacyProduct, InventoryItemResolverOptions options)
        {
            // ReSharper disable once PossibleInvalidOperationException
            switch ((ProductTypeEnum)legacyProduct.ProductTypeId)
            {
                case ProductTypeEnum.Metal:
                    return new Metal(legacyProduct, options);
                case ProductTypeEnum.Wood:
                    return new Wood(legacyProduct, options);
                case ProductTypeEnum.Plastic:
                    return new Plastic(legacyProduct, options);
                case ProductTypeEnum.Seed:
                    return new Seed(legacyProduct, options);
                case ProductTypeEnum.Mineral:
                    return new Mineral(legacyProduct, options);
                case ProductTypeEnum.Chemical:
                    return new Chemical(legacyProduct, options);
                case ProductTypeEnum.Textiles:
                    return new Textiles(legacyProduct, options);
                case ProductTypeEnum.SugarAndSpice:
                    return new SugarAndSpice(legacyProduct, options);
                case ProductTypeEnum.Glass:
                    return new Glass(legacyProduct, options);
                case ProductTypeEnum.AnimalFeed:
                    return new AnimalFeed(legacyProduct, options);
                case ProductTypeEnum.Hammer:
                    return new Hammer(legacyProduct, options);
                case ProductTypeEnum.MeasuringTape:
                    return new MeasuringTape(legacyProduct, options);
                case ProductTypeEnum.Shovel:
                    return new Shovel(legacyProduct, options);
                case ProductTypeEnum.KitchenUtensils:
                    return new KitchenUtensils(legacyProduct, options);
                case ProductTypeEnum.Nail:
                    return new Nail(legacyProduct, options);
                case ProductTypeEnum.Planks:
                    return new Plank(legacyProduct, options);
                case ProductTypeEnum.Brick:
                    return new Brick(legacyProduct, options);
                case ProductTypeEnum.Cement:
                    return new Cement(legacyProduct, options);
                case ProductTypeEnum.Glue:
                    return new Glue(legacyProduct, options);
                case ProductTypeEnum.Chair:
                    return new Chair(legacyProduct, options);
                case ProductTypeEnum.Table:
                    return new Table(legacyProduct, options);
                case ProductTypeEnum.Grass:
                    return new Grass(legacyProduct, options);
                case ProductTypeEnum.TreeSapling:
                    return new TreeSapling(legacyProduct, options);
                case ProductTypeEnum.LawnFurniture:
                    return new LawnFurniture(legacyProduct, options);
                case ProductTypeEnum.Vegetable:
                    return new Vegetable(legacyProduct, options);
                case ProductTypeEnum.Flour:
                    return new Flour(legacyProduct, options);
                case ProductTypeEnum.FruitsAndBerries:
                    return new FruitsAndBerries(legacyProduct, options);
                case ProductTypeEnum.Cream:
                    return new Cream(legacyProduct, options);
                case ProductTypeEnum.Donut:
                    return new Donut(legacyProduct, options);
                case ProductTypeEnum.GreenSmoothie:
                    return new GreenSmoothie(legacyProduct, options);
                case ProductTypeEnum.Cap:
                    return new Cap(legacyProduct, options);
                case ProductTypeEnum.Shoe:
                    return new Shoe(legacyProduct, options);
                case ProductTypeEnum.Watch:
                    return new Watch(legacyProduct, options);
                default:
                    throw new ApplicationException("No Implementation for Item Type " + legacyProduct.ProductTypeId);

            }
        }
コード例 #4
0
ファイル: LegacyProduct.cs プロジェクト: cberberian/GameSim
 public MeasuringTape(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }
コード例 #5
0
ファイル: LegacyProduct.cs プロジェクト: cberberian/GameSim
 public LawnFurniture(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }
コード例 #6
0
ファイル: LegacyProduct.cs プロジェクト: cberberian/GameSim
 protected LegacyProduct(IProduct legacyProduct, InventoryItemResolverOptions options)
 {
     if (options.MapQuantity)
         Quantity = legacyProduct.Quantity;
 }
コード例 #7
0
ファイル: LegacyProduct.cs プロジェクト: cberberian/GameSim
 public KitchenUtensils(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }
コード例 #8
0
ファイル: LegacyProduct.cs プロジェクト: cberberian/GameSim
 public GreenSmoothie(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }
コード例 #9
0
ファイル: LegacyProduct.cs プロジェクト: cberberian/GameSim
 public FruitsAndBerries(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }
コード例 #10
0
ファイル: LegacyProduct.cs プロジェクト: cberberian/GameSim
 public TreeSapling(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }
コード例 #11
0
ファイル: LegacyProduct.cs プロジェクト: cberberian/GameSim
 public SugarAndSpice(IProduct legacyProduct, InventoryItemResolverOptions options)
     : base(legacyProduct, options)
 {
 }