Пример #1
0
        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;
            }
        }
Пример #2
0
 public MaginciaBazaarPlot(PlotDef definition)
 {
     m_Definition = definition;
     m_Owner      = null;
     m_PlotMulti  = null;
     m_Merchant   = null;
     m_ShopName   = null;
 }
Пример #3
0
        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();
        }
Пример #4
0
 public static void RegisterPlot(PlotDef plotDef)
 {
     m_Plots.Add(new MaginciaBazaarPlot(plotDef));
 }
Пример #5
0
		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;
		}
Пример #6
0
		public MaginciaBazaarPlot(PlotDef definition)
		{
			m_Definition = definition;
			m_Owner = null;
			m_PlotMulti = null;
			m_Merchant = null;
			m_ShopName = null;
		}
Пример #7
0
		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();
		}