public Auction(Mobile owner, AuctionSafe safe) { Safe = safe; Owner = owner; Bids = new List <BidEntry>(); Duration = DefaultDuration; }
public BaseAuctionGump(PlayerMobile p, AuctionSafe safe) : base(100, 100) { Safe = safe; Auction = safe.Auction; User = p; AddGumpLayout(); }
public Auction(AuctionSafe safe, GenericReader reader) { Safe = safe; int version = reader.ReadInt(); Owner = reader.ReadMobile(); AuctionItem = reader.ReadItem(); CurrentBid = reader.ReadLong(); StartBid = reader.ReadLong(); Buyout = reader.ReadLong(); Description = reader.ReadString(); Duration = reader.ReadInt(); StartTime = reader.ReadDateTime(); OnGoing = reader.ReadBool(); Bids = new List <BidEntry>(); int count = reader.ReadInt(); for (int i = 0; i < count; i++) { PlayerMobile m = reader.ReadMobile() as PlayerMobile; BidEntry entry = new BidEntry(m, reader); if (m != null) { Bids.Add(entry); if (entry.CurrentBid > 0 && (HighestBid == null || entry.CurrentBid > HighestBid.CurrentBid)) { HighestBid = entry; } } } count = reader.ReadInt(); if (count > 0) { BidHistory = new List <HistoryEntry>(); } for (int i = 0; i < count; i++) { BidHistory.Add(new HistoryEntry(reader)); } if (HasBegun) { Auctions.Add(this); } }
public override void GetProperties(ObjectPropertyList list) { base.GetProperties(list); AuctionSafe safe = this.Addon as AuctionSafe; if (safe != null && safe.Auction != null) { if (safe.Auction.OnGoing) { if (!safe.Auction.InClaimPeriod) { list.Add(1156440); // Auction Pending } else { list.Add(1156438); // Auction Ended } } } }
public AuctionBidGump(PlayerMobile pm, AuctionSafe safe) : base(pm, safe) { }
public AuctionOwnerGump(PlayerMobile pm, AuctionSafe safe) : base(pm, safe) { Owner = true; }