Example #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
            {
                m_Platform = reader.ReadItem() as PeerlessPlatform;
                m_Key      = reader.ReadItem();

                if (m_Platform == null)
                {
                    Delete();
                }

                if (m_Key != null)
                {
                    m_Key.Delete();
                    m_Key = null;
                }

                break;
            }
            }
        }
Example #2
0
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();

            switch ( version )
            {
                case 0:
                    {
                        m_Platform = reader.ReadItem() as PeerlessPlatform;
                        m_Key = reader.ReadItem();

                        if ( m_Platform == null )
                            Delete();

                        if ( m_Key != null )
                        {
                            m_Key.Delete();
                            m_Key = null;
                        }

                        break;
                    }
            }
        }
Example #3
0
        public PeerlessKeyBrazier(PeerlessPlatform platform)
            : base(0x19BB)
        {
            Hue   = 0x15F;
            Light = LightType.Circle300;

            m_Platform = platform;
        }
Example #4
0
        public PeerlessKeyBrazier( PeerlessPlatform platform )
            : base(0x19BB)
        {
            Hue = 0x15F;
            Light = LightType.Circle300;

            m_Platform = platform;
        }
Example #5
0
        public PeerlessInstance(PeerlessPlatform platform, Map map, Item light, Point3D entranceLoc, Point3D bossSpawnLoc, Rectangle2D regionBounds)
        {
            m_Owner = platform;
            m_Map   = map;
            m_Light = light;

            m_EntranceLocation  = entranceLoc;
            m_BossSpawnLocation = bossSpawnLoc;
            m_RegionBounds      = regionBounds;

            Initialize();
        }
Example #6
0
		public PeerlessInstance( PeerlessPlatform platform, Map map, Item light, Point3D entranceLoc, Point3D bossSpawnLoc, Rectangle2D regionBounds )
		{
			m_Owner = platform;
			m_Map = map;
			m_Light = light;

			m_EntranceLocation = entranceLoc;
			m_BossSpawnLocation = bossSpawnLoc;
			m_RegionBounds = regionBounds;

			Initialize();
		}
Example #7
0
        public PeerlessInstance( GenericReader reader )
        {
            m_Owner = reader.ReadItem<PeerlessPlatform>();
            m_Light = reader.ReadItem();
            m_Map = reader.ReadMap();
            m_EntranceLocation = reader.ReadPoint3D();
            m_BossSpawnLocation = reader.ReadPoint3D();
            m_RegionBounds = reader.ReadRect2D();

            Mobile boss = reader.ReadMobile();

            if ( boss != null )
                boss.Delete();

            Initialize();
        }
Example #8
0
        public PeerlessInstance(GenericReader reader)
        {
            m_Owner             = reader.ReadItem <PeerlessPlatform>();
            m_Light             = reader.ReadItem();
            m_Map               = reader.ReadMap();
            m_EntranceLocation  = reader.ReadPoint3D();
            m_BossSpawnLocation = reader.ReadPoint3D();
            m_RegionBounds      = reader.ReadRect2D();

            Mobile boss = reader.ReadMobile();

            if (boss != null)
            {
                boss.Delete();
            }

            Initialize();
        }