Exemple #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            m_Active = reader.ReadBool();

            m_AllSpawn       = reader.ReadItemList();
            m_DungeonsSpawn  = reader.ReadItemList();
            m_LostLandsSpawn = reader.ReadItemList();
            m_IlshenarSpawn  = reader.ReadItemList();
            m_TokunoSpawn    = reader.ReadItemList();

            m_RandomizeDelay = reader.ReadTimeSpan();

            m_ActiveAltars = reader.ReadInt();

            //m_SpawnRange = 24;
            m_ExpireDelay  = TimeSpan.FromMinutes(10.0);
            m_RestartDelay = TimeSpan.FromMinutes(5.0);

            if (m_Active)
            {
                m_Timer = new RandomizeTimer(this, m_RandomizeDelay);

                m_Timer.Start();
            }
        }
Exemple #2
0
        public void Start()
        {
            if (m_Active || Deleted)
            {
                return;
            }

            m_Active = true;

            if (m_Timer == null)
            {
                m_Timer = new RandomizeTimer(this, m_RandomizeDelay);
            }

            Randomize(m_DungeonsSpawn);
            Randomize(m_LostLandsSpawn);

            foreach (ChampionSpawn cs in m_IlshenarSpawn)
            {
                if (!cs.Deleted)
                {
                    cs.Active = true;
                }
            }

            foreach (ChampionSpawn cs in m_TokunoSpawn)
            {
                if (!cs.Deleted)
                {
                    cs.Active = true;
                }
            }

            m_Timer.Start();
        }
Exemple #3
0
        public void Start()
        {
            if (this.m_Active || this.Deleted)
            {
                return;
            }

            this.m_Active = true;

            if (this.m_Timer == null)
            {
                this.m_Timer = new RandomizeTimer(this, this.m_RandomizeDelay);
            }

            this.Randomize(this.m_DungeonsSpawn);
            this.Randomize(this.m_LostLandsSpawn);

            foreach (ChampionSpawn cs in this.m_IlshenarSpawn)
            {
                if (!cs.Deleted)
                {
                    cs.Active = true;
                }
            }

            foreach (ChampionSpawn cs in this.m_TokunoSpawn)
            {
                if (!cs.Deleted)
                {
                    cs.Active = true;
                }
            }

            foreach (ChampionSpawn cs in this.m_MalasSpawn)
            {
                if (!cs.Deleted)
                {
                    cs.Active = false;
                }
            }

            this.m_Timer.Start();
        }
Exemple #4
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            switch (version)
            {
            case 1:
            {
                this.m_MalasSpawn = reader.ReadItemList();
                goto case 0;
            }

            case 0:
            {
                this.m_Active = reader.ReadBool();

                this.m_AllSpawn       = reader.ReadItemList();
                this.m_DungeonsSpawn  = reader.ReadItemList();
                this.m_LostLandsSpawn = reader.ReadItemList();
                this.m_IlshenarSpawn  = reader.ReadItemList();
                this.m_TokunoSpawn    = reader.ReadItemList();

                this.m_RandomizeDelay = reader.ReadTimeSpan();

                this.m_ActiveAltars = reader.ReadInt();

                //m_SpawnRange = 24;
                this.m_ExpireDelay  = TimeSpan.FromMinutes(10.0);
                this.m_RestartDelay = TimeSpan.FromMinutes(5.0);

                if (this.m_Active)
                {
                    this.m_Timer = new RandomizeTimer(this, this.m_RandomizeDelay);

                    this.m_Timer.Start();
                }
                break;
            }
            }
        }
        public void Start()
        {
            if ( m_Active || Deleted ) return;

            m_Active = true;

            if (m_Timer == null)
            {
                m_Timer = new RandomizeTimer( this, m_RandomizeDelay );
            }

            Randomize( m_DungeonsSpawn );
            Randomize( m_LostLandsSpawn );

            foreach( ChampionSpawn cs in m_IlshenarSpawn )
            {
                if ( !cs.Deleted )
                    cs.Active = true;
            }

            foreach( ChampionSpawn cs in m_TokunoSpawn )
            {
                if ( !cs.Deleted )
                    cs.Active = true;
            }

            m_Timer.Start();
        }
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );
            int version = reader.ReadInt();

            m_Active  = reader.ReadBool();

            m_AllSpawn = reader.ReadItemList();
            m_DungeonsSpawn = reader.ReadItemList();
            m_LostLandsSpawn = reader.ReadItemList();
            m_IlshenarSpawn = reader.ReadItemList();
            m_TokunoSpawn = reader.ReadItemList();

            m_RandomizeDelay = reader.ReadTimeSpan();

            m_ActiveAltars = reader.ReadInt();

            //m_SpawnRange = 24;
            m_ExpireDelay = TimeSpan.FromMinutes( 10.0 );
            m_RestartDelay = TimeSpan.FromMinutes( 5.0 );

            if ( m_Active )
            {
                m_Timer = new RandomizeTimer( this, m_RandomizeDelay );

                m_Timer.Start();
            }
        }
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            switch (version)
            {
                case 1:
                    {
                        this.m_MalasSpawn = reader.ReadItemList();
                        goto case 0;
                    }
                case 0:
                    {
                        this.m_Active = reader.ReadBool();

                        this.m_AllSpawn = reader.ReadItemList();
                        this.m_DungeonsSpawn = reader.ReadItemList();
                        this.m_LostLandsSpawn = reader.ReadItemList();
                        this.m_IlshenarSpawn = reader.ReadItemList();
                        this.m_TokunoSpawn = reader.ReadItemList();
                       
                        this.m_RandomizeDelay = reader.ReadTimeSpan();

                        this.m_ActiveAltars = reader.ReadInt();

                        //m_SpawnRange = 24;
                        this.m_ExpireDelay = TimeSpan.FromMinutes(10.0);
                        this.m_RestartDelay = TimeSpan.FromMinutes(5.0);

                        if (this.m_Active)
                        {
                            this.m_Timer = new RandomizeTimer(this, this.m_RandomizeDelay);

                            this.m_Timer.Start();
                        }
                        break;
                    }
            }
        }
        public void Start()
        {
            if (this.m_Active || this.Deleted)
                return;

            this.m_Active = true;

            if (this.m_Timer == null)
            {
                this.m_Timer = new RandomizeTimer(this, this.m_RandomizeDelay);
            }

            this.Randomize(this.m_DungeonsSpawn);
            this.Randomize(this.m_LostLandsSpawn);

            foreach (ChampionSpawn cs in this.m_IlshenarSpawn)
            {
                if (!cs.Deleted)
                    cs.Active = true;
            }

            foreach (ChampionSpawn cs in this.m_TokunoSpawn)
            {
                if (!cs.Deleted)
                    cs.Active = true;
            }

            foreach (ChampionSpawn cs in this.m_MalasSpawn)
            {
                if (!cs.Deleted)
                    cs.Active = false;
            }
            
            this.m_Timer.Start();
        }