public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); m_ProductType = (TreeProductType)reader.ReadInt(); m_Product = (TreeProduct)reader.ReadInt(); }
public TreeProductItem(TreeProduct product) { Stackable = false; m_Product = product; switch (product) { case TreeProduct.CrushedAcorn: ItemID = 0x1604; ProductType = TreeProductType.Spice; break; case TreeProduct.AshStain: ItemID = 0x183B; Hue = 845; ProductType = TreeProductType.Crafting; break; case TreeProduct.BeechGum: ItemID = 0x1604; ProductType = TreeProductType.Food; break; case TreeProduct.CrushedBeechnut: ItemID = 0x1604; ProductType = TreeProductType.Spice; break; case TreeProduct.CherryStain: ItemID = 0x1604; Hue = 405; ProductType = TreeProductType.Crafting; break; case TreeProduct.BlackOakStain: ItemID = 0x183B; Hue = 435; ProductType = TreeProductType.Crafting; break; case TreeProduct.OliveOil: ItemID = 0x183B; ProductType = TreeProductType.Food; break; case TreeProduct.CactusNeedle: ItemID = 0x1604; Hue = 270; ProductType = TreeProductType.Crafting; break; case TreeProduct.CassiaPowder: ItemID = 0x1604; Hue = 735; ProductType = TreeProductType.Medicine; break; case TreeProduct.CedarChips: ItemID = 0x1604; Hue = 835; ProductType = TreeProductType.Reagent; break; case TreeProduct.CherrySyrup: ItemID = 0x183C; Hue = 135; ProductType = TreeProductType.Medicine; break; case TreeProduct.CypressPaste: ItemID = 0x1604; ProductType = TreeProductType.Medicine; break; case TreeProduct.DogwoodPowder: ItemID = 0x1604; Hue = 868; ProductType = TreeProductType.Reagent; break; case TreeProduct.EssenceOfEucalyptus: ItemID = 0x183B; ProductType = TreeProductType.Medicine; break; case TreeProduct.FigNewtons: ItemID = 0x1604; Hue = 20; ProductType = TreeProductType.Food; break; case TreeProduct.PearSauce: ItemID = 0x183B; Hue = 51; ProductType = TreeProductType.Food; break; case TreeProduct.PeachWine: ItemID = 0x183B; ProductType = TreeProductType.Food; break; case TreeProduct.HickoryFlavor: ItemID = 0x183B; Hue = 860; ProductType = TreeProductType.Spice; break; case TreeProduct.IronwoodPowder: ItemID = 0x1604; Hue = 749; ProductType = TreeProductType.Reagent; break; case TreeProduct.JuniperTea: ItemID = 0x183B; ProductType = TreeProductType.Food; break; case TreeProduct.MapleSyrup: ItemID = 0x183B; Hue = 147; ProductType = TreeProductType.Food; break; case TreeProduct.OakStain: ItemID = 0x183B; Hue = 644; ProductType = TreeProductType.Crafting; break; case TreeProduct.OhiiPowder: ItemID = 0x1604; ProductType = TreeProductType.Medicine; break; case TreeProduct.HeartOfPalm: ItemID = 0x1604; Hue = 345; ProductType = TreeProductType.Medicine; break; case TreeProduct.PalmOil: ItemID = 0x183B; Hue = 245; ProductType = TreeProductType.Medicine; break; case TreeProduct.PineTar: ItemID = 0x183B; Hue = 260; ProductType = TreeProductType.Crafting; break; case TreeProduct.PruneJuice: ItemID = 0x183C; ProductType = TreeProductType.Food; break; case TreeProduct.AppleSauce: ItemID = 0x1604; ProductType = TreeProductType.Food; break; case TreeProduct.AppleCider: ItemID = 0x183B; ProductType = TreeProductType.Food; break; case TreeProduct.AppleVinegar: ItemID = 0x183B; ProductType = TreeProductType.Medicine; break; case TreeProduct.ApplePowder: ItemID = 0x1604; ProductType = TreeProductType.Spice; break; case TreeProduct.BananaPuree: ItemID = 0x1604; ProductType = TreeProductType.Food; break; case TreeProduct.SandalwoodPowder: ItemID = 0x1604; Hue = 248; ProductType = TreeProductType.Reagent; break; case TreeProduct.SandalwoodSyrup: ItemID = 0x183B; Hue = 248; ProductType = TreeProductType.Spice; break; case TreeProduct.SpiderSprigs: ItemID = 0x1604; ProductType = TreeProductType.Reagent; break; case TreeProduct.Syrup: ItemID = 0x183B; ProductType = TreeProductType.Food; break; case TreeProduct.MincedDates: ItemID = 0x1604; ProductType = TreeProductType.Food; break; case TreeProduct.WalnutStain: ItemID = 0x183C; ProductType = TreeProductType.Crafting; break; case TreeProduct.ShavedCoconut: ItemID = 0x1604; ProductType = TreeProductType.Food; break; case TreeProduct.WillowOil: ItemID = 0x183B; ProductType = TreeProductType.Crafting; break; case TreeProduct.YewShavings: ItemID = 0x1604; Hue = 865; ProductType = TreeProductType.Crafting; break; case TreeProduct.YuccaExtract: ItemID = 0x183C; ProductType = TreeProductType.Medicine; break; } }
public TreeProductItem(TreeProduct product) { Stackable = false; m_Product = product; switch (product) { case TreeProduct.CrushedAcorn: ItemID = 0x1604; ProductType = TreeProductType.Spice; break; case TreeProduct.AshStain: ItemID = 0x183B; Hue = 845; ProductType = TreeProductType.Crafting; break; case TreeProduct.BeechGum: ItemID = 0x1604; ProductType = TreeProductType.Food; break; case TreeProduct.CrushedBeechnut: ItemID = 0x1604; ProductType = TreeProductType.Spice; break; case TreeProduct.CherryStain: ItemID = 0x1604; Hue = 405; ProductType = TreeProductType.Crafting; break; case TreeProduct.BlackOakStain: ItemID = 0x183B; Hue = 435; ProductType = TreeProductType.Crafting; break; case TreeProduct.OliveOil: ItemID = 0x183B; ProductType = TreeProductType.Food; break; case TreeProduct.CactusNeedle: ItemID = 0x1604; Hue = 270; ProductType = TreeProductType.Crafting; break; case TreeProduct.CassiaPowder: ItemID = 0x1604; Hue = 735; ProductType = TreeProductType.Medicine; break; case TreeProduct.CedarChips: ItemID = 0x1604; Hue = 835; ProductType = TreeProductType.Reagent; break; case TreeProduct.CherrySyrup: ItemID = 0x183C; Hue = 135; ProductType = TreeProductType.Medicine; break; case TreeProduct.CypressPaste: ItemID = 0x1604; ProductType = TreeProductType.Medicine; break; case TreeProduct.DogwoodPowder: ItemID = 0x1604; Hue = 868; ProductType = TreeProductType.Reagent; break; case TreeProduct.EssenceOfEucalyptus: ItemID = 0x183B; ProductType = TreeProductType.Medicine; break; case TreeProduct.FigNewtons: ItemID = 0x1604; Hue = 20; ProductType = TreeProductType.Food; break; case TreeProduct.PearSauce: ItemID = 0x183B; Hue = 51; ProductType = TreeProductType.Food; break; case TreeProduct.PeachWine: ItemID = 0x183B; ProductType = TreeProductType.Food; break; case TreeProduct.HickoryFlavor: ItemID = 0x183B; Hue = 860; ProductType = TreeProductType.Spice; break; case TreeProduct.IronwoodPowder: ItemID = 0x1604; Hue = 749; ProductType = TreeProductType.Reagent; break; case TreeProduct.JuniperTea: ItemID = 0x183B; ProductType = TreeProductType.Food; break; case TreeProduct.MapleSyrup: ItemID = 0x183B; Hue = 147; ProductType = TreeProductType.Food; break; case TreeProduct.OakStain: ItemID = 0x183B; Hue = 644; ProductType = TreeProductType.Crafting; break; case TreeProduct.OhiiPowder: ItemID = 0x1604; ProductType = TreeProductType.Medicine; break; case TreeProduct.HeartOfPalm: ItemID = 0x1604; Hue = 345; ProductType = TreeProductType.Medicine; break; case TreeProduct.PalmOil: ItemID = 0x183B; Hue = 245; ProductType = TreeProductType.Medicine; break; case TreeProduct.PineTar: ItemID = 0x183B; Hue = 260; ProductType = TreeProductType.Crafting; break; case TreeProduct.PruneJuice: ItemID = 0x183C; ProductType = TreeProductType.Food; break; case TreeProduct.AppleSauce: ItemID = 0x1604; ProductType = TreeProductType.Food; break; case TreeProduct.AppleCider: ItemID = 0x183B; ProductType = TreeProductType.Food; break; case TreeProduct.AppleVinegar: ItemID = 0x183B; ProductType = TreeProductType.Medicine; break; case TreeProduct.ApplePowder: ItemID = 0x1604; ProductType = TreeProductType.Spice; break; case TreeProduct.BananaPuree: ItemID = 0x1604; ProductType = TreeProductType.Food; break; case TreeProduct.SandalwoodPowder: ItemID = 0x1604; Hue = 248; ProductType = TreeProductType.Reagent; break; case TreeProduct.SandalwoodSyrup: ItemID = 0x183B; Hue = 248; ProductType = TreeProductType.Spice; break; case TreeProduct.SpiderSprigs: ItemID = 0x1604; ProductType = TreeProductType.Reagent; break; case TreeProduct.Syrup: ItemID = 0x183B; ProductType = TreeProductType.Food; break; case TreeProduct.MincedDates: ItemID = 0x1604; ProductType = TreeProductType.Food; break; case TreeProduct.WalnutStain: ItemID = 0x183C; ProductType = TreeProductType.Crafting; break; case TreeProduct.ShavedCoconut: ItemID = 0x1604; ProductType = TreeProductType.Food; break; case TreeProduct.WillowOil: ItemID = 0x183B; ProductType = TreeProductType.Crafting; break; case TreeProduct.YewShavings: ItemID = 0x1604; Hue = 865; ProductType = TreeProductType.Crafting; break; case TreeProduct.YuccaExtract: ItemID = 0x183C; ProductType = TreeProductType.Medicine; break; } }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); m_ProductType = (TreeProductType)reader.ReadInt(); m_Product = (TreeProduct)reader.ReadInt(); }