예제 #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
        private void DeleteMulti_Callback()
        {
            if (m_PlotMulti != null)
            {
                m_PlotMulti.Delete();
            }

            m_PlotMulti = null;
        }
예제 #4
0
        public void RemoveTempPlot()
        {
            EndTempMultiTimer();

            if (m_PlotMulti != null)
            {
                m_PlotMulti.Delete();
                m_PlotMulti = null;
            }
        }
예제 #5
0
        public void FireBroker()
        {
            if (m_Merchant != null)
            {
                m_Merchant.Delete();
                m_Merchant = null;

                if (m_PlotMulti != null)
                {
                    m_PlotMulti.Delete();
                    m_PlotMulti = null;
                }
            }
        }
예제 #6
0
        public void AddTempMulti(int idx1, int idx2)
        {
            if (m_PlotMulti != null)
            {
                m_PlotMulti.Delete();
                m_PlotMulti = null;
            }

            BaseBazaarMulti multi = null;

            if (idx1 == 0)
            {
                switch (idx2)
                {
                case 0: multi = new CommodityStyle1(); break;

                case 1: multi = new CommodityStyle2(); break;

                case 2: multi = new CommodityStyle3(); break;
                }
            }
            else
            {
                switch (idx2)
                {
                case 0: multi = new PetStyle1(); break;

                case 1: multi = new PetStyle2(); break;

                case 2: multi = new PetStyle3(); break;
                }
            }

            if (multi != null)
            {
                PlotMulti = multi;
                BeginTempMultiTimer();
            }
        }
예제 #7
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;
		}
예제 #8
0
		public void FireBroker()
		{
			if(m_Merchant != null)
			{
				m_Merchant.Delete();
				m_Merchant = null;

                if (m_PlotMulti != null)
                {
                    m_PlotMulti.Delete();
                    m_PlotMulti = null;
                }
			}
		}
예제 #9
0
		public void RemoveTempPlot()
		{
			EndTempMultiTimer();

            if (m_PlotMulti != null)
            {
                m_PlotMulti.Delete();
                m_PlotMulti = null;
            }
		}
예제 #10
0
		public void AddTempMulti(int idx1, int idx2)
		{
            if (m_PlotMulti != null)
            {
                m_PlotMulti.Delete();
                m_PlotMulti = null;
            }

            BaseBazaarMulti multi = null;

            if (idx1 == 0)
            {
                switch (idx2)
                {
                    case 0: multi = new CommodityStyle1(); break;
                    case 1: multi = new CommodityStyle2(); break;
                    case 2: multi = new CommodityStyle3(); break;
                }
            }
            else
            {
                switch (idx2)
                {
                    case 0: multi = new PetStyle1(); break;
                    case 1: multi = new PetStyle2(); break;
                    case 2: multi = new PetStyle3(); break;
                }
            }

            if (multi != null)
            {
                PlotMulti = multi;
                BeginTempMultiTimer();
            }
		}
예제 #11
0
        private void DeleteMulti_Callback()
        {
            if (m_PlotMulti != null)
                m_PlotMulti.Delete();

            m_PlotMulti = null;
        }
예제 #12
0
		public MaginciaBazaarPlot(PlotDef definition)
		{
			m_Definition = definition;
			m_Owner = null;
			m_PlotMulti = null;
			m_Merchant = null;
			m_ShopName = null;
		}