public MaginciaBazaarPlot(GenericReader reader) { int version = reader.ReadInt(); m_Definition = new PlotDef(reader); m_Owner = reader.ReadMobile(); m_ShopName = reader.ReadString(); m_Merchant = reader.ReadMobile() as BaseBazaarBroker; m_Sign = reader.ReadItem() as PlotSign; m_PlotMulti = reader.ReadItem() as BaseBazaarMulti; if (reader.ReadBool()) { m_Auction = new MaginciaPlotAuction(reader, this); } if (m_Merchant != null) { m_Merchant.Plot = this; } if (m_Sign != null) { m_Sign.Plot = this; } }
public MaginciaBazaarPlot(PlotDef definition) { m_Definition = definition; m_Owner = null; m_PlotMulti = null; m_Merchant = null; m_ShopName = null; }
public static void RegisterPlot(PlotDef plotDef) { m_Plots.Add(new MaginciaBazaarPlot(plotDef)); IPooledEnumerable eable = plotDef.Map.GetItemsInRange(plotDef.Location, 5); foreach (Item item in eable) { if (item is AddonComponent || item is PlayerVendorTile) { item.Delete(); } } eable.Free(); }
public static void RegisterPlot(PlotDef plotDef) { m_Plots.Add(new MaginciaBazaarPlot(plotDef)); }
public MaginciaBazaarPlot(GenericReader reader) { int version = reader.ReadInt(); m_Definition = new PlotDef(reader); m_Owner = reader.ReadMobile(); m_ShopName = reader.ReadString(); m_Merchant = reader.ReadMobile() as BaseBazaarBroker; m_Sign = reader.ReadItem() as PlotSign; m_PlotMulti = reader.ReadItem() as BaseBazaarMulti; if(reader.ReadBool()) m_Auction = new MaginciaPlotAuction(reader, this); if(m_Merchant != null) m_Merchant.Plot = this; if (m_Sign != null) m_Sign.Plot = this; }
public MaginciaBazaarPlot(PlotDef definition) { m_Definition = definition; m_Owner = null; m_PlotMulti = null; m_Merchant = null; m_ShopName = null; }
public static void RegisterPlot(PlotDef plotDef) { m_Plots.Add(new MaginciaBazaarPlot(plotDef)); IPooledEnumerable eable = plotDef.Map.GetItemsInRange(plotDef.Location, 5); foreach (Item item in eable) { if (item is AddonComponent || item is PlayerVendorTile) item.Delete(); } eable.Free(); }