public override void WriteXml(XmlWriter writer) { writer.WriteAttributeString("ItemID", ItemID); writer.WriteAttributeString("MaxBuyout", MaxBuyout.ToString()); writer.WriteAttributeString("Amount", Amount.ToString()); writer.WriteAttributeString("ItemListType", ItemListType.ToString()); writer.WriteAttributeString("AutoFindAh", AutoFindAh.ToString()); writer.WriteAttributeString("X", loc.X.ToString()); writer.WriteAttributeString("Y", loc.Y.ToString()); writer.WriteAttributeString("Z", loc.Z.ToString()); writer.WriteAttributeString("BidOnItem", BidOnItem.ToString()); writer.WriteAttributeString("BuyAdditively", BuyAdditively.ToString()); }
public override IPBComponent DeepCopy() { return(new BuyItemFromAhAction { ItemID = ItemID, MaxBuyout = new GoldEditor(MaxBuyout.ToString()), Amount = Amount, ItemListType = ItemListType, AutoFindAh = AutoFindAh, Location = Location, BidOnItem = BidOnItem, BuyAdditively = BuyAdditively, }); }
public override object Clone() { return(new BuyItemFromAhAction { ItemID = ItemID, MaxBuyout = new PropertyBag.GoldEditor(MaxBuyout.ToString()), Amount = Amount, ItemListType = ItemListType, AutoFindAh = AutoFindAh, Location = Location, BidOnItem = BidOnItem, BuyAdditively = BuyAdditively, }); }
public override void WriteXml(XmlWriter writer) { writer.WriteAttributeString("ItemID", ItemID); writer.WriteAttributeString("MinBuyout", MinBuyout.ToString()); writer.WriteAttributeString("MaxBuyout", MaxBuyout.ToString()); writer.WriteAttributeString("RunTime", RunTime.ToString()); writer.WriteAttributeString("Amount", Amount.ToString()); writer.WriteAttributeString("StackSize", StackSize.ToString()); writer.WriteAttributeString("AmountType", AmountType.ToString()); writer.WriteAttributeString("AutoFindAh", AutoFindAh.ToString()); writer.WriteAttributeString("BidPrecent", BidPrecent.ToString(CultureInfo.InvariantCulture)); writer.WriteAttributeString("UndercutPrecent", UndercutPrecent.ToString(CultureInfo.InvariantCulture)); writer.WriteAttributeString("UseCategory", UseCategory.ToString()); writer.WriteAttributeString("Category", Category.ToString()); writer.WriteAttributeString("SubCategoryType", SubCategory.GetType().Name); writer.WriteAttributeString("SubCategory", SubCategory.ToString()); writer.WriteAttributeString("X", loc.X.ToString()); writer.WriteAttributeString("Y", loc.Y.ToString()); writer.WriteAttributeString("Z", loc.Z.ToString()); writer.WriteAttributeString("PostIfBelowMinBuyout", PostIfBelowMinBuyout.ToString()); }
public override object Clone() { return(new SellItemOnAhAction { ItemID = ItemID, MinBuyout = new PropertyBag.GoldEditor(MinBuyout.ToString()), MaxBuyout = new PropertyBag.GoldEditor(MaxBuyout.ToString()), Amount = Amount, StackSize = StackSize, IgnoreStackSizeBelow = IgnoreStackSizeBelow, AmountType = AmountType, AutoFindAh = AutoFindAh, Location = Location, UndercutPrecent = UndercutPrecent, BidPrecent = BidPrecent, RunTime = RunTime, UseCategory = UseCategory, Category = Category, SubCategory = SubCategory, PostIfBelowMinBuyout = PostIfBelowMinBuyout, }); }