Example #1
0
 public void AddPlotStone(Point3D p)
 {
     m_Stone = new MaginciaPlotStone
     {
         Plot = this
     };
     m_Stone.MoveToWorld(p, m_Map);
 }
Example #2
0
        public MaginciaHousingPlot(GenericReader reader)
        {
            int version = reader.ReadInt();

            m_Identifier  = reader.ReadString();
            m_Writ        = reader.ReadItem() as WritOfLease;
            m_Stone       = reader.ReadItem() as MaginciaPlotStone;
            m_LottoEnds   = reader.ReadDateTime();
            m_Bounds      = reader.ReadRect2D();
            m_Map         = reader.ReadMap();
            m_IsPrimeSpot = reader.ReadBool();
            m_Complete    = reader.ReadBool();
            m_Winner      = reader.ReadMobile();
            m_Expires     = reader.ReadDateTime();

            int c = reader.ReadInt();

            for (int i = 0; i < c; i++)
            {
                Mobile m      = reader.ReadMobile();
                int    amount = reader.ReadInt();

                if (m != null)
                {
                    m_Participants[m] = amount;
                }
            }

            if ((m_Stone == null || m_Stone.Deleted) && LottoOngoing && MaginciaLottoSystem.IsRegisteredPlot(this))
            {
                AddPlotStone();
            }
            else if (m_Stone != null)
            {
                m_Stone.Plot = this;
            }

            if (m_Writ != null)
            {
                m_Writ.Plot = this;
            }
        }
Example #3
0
 public void AddPlotStone(Point3D p)
 {
     m_Stone = new MaginciaPlotStone();
     m_Stone.Plot = this;
     m_Stone.MoveToWorld(p, m_Map);
 }
Example #4
0
        public MaginciaHousingPlot(GenericReader reader)
        {
            int version = reader.ReadInt();

            m_Identifier = reader.ReadString();
            m_Writ = reader.ReadItem() as WritOfLease;
            m_Stone = reader.ReadItem() as MaginciaPlotStone;
            m_LottoEnds = reader.ReadDateTime();
            m_Bounds = reader.ReadRect2D();
            m_Map = reader.ReadMap();
            m_IsPrimeSpot = reader.ReadBool();
            m_Complete = reader.ReadBool();
            m_Winner = reader.ReadMobile();
            m_Expires = reader.ReadDateTime();
            
            int c = reader.ReadInt();
            for (int i = 0; i < c; i++)
            {
                Mobile m = reader.ReadMobile();
                int amount = reader.ReadInt();

                if (m != null)
                    m_Participants[m] = amount;
            }

            if ((m_Stone == null || m_Stone.Deleted) && LottoOngoing && MaginciaLottoSystem.IsRegisteredPlot(this))
                AddPlotStone();
            else if (m_Stone != null)
                m_Stone.Plot = this;

            if (m_Writ != null)
                m_Writ.Plot = this;
        }