Exemplo n.º 1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
            {
                m_Type     = (IdolType)reader.ReadInt();
                m_Platform = reader.ReadItem() as IdolPlatform;
                m_Idol     = reader.ReadItem();

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

                break;
            }
            }

            if (Hue == 0x497)
            {
                Hue = 0x455;
            }

            if (Light != LightType.Circle300)
            {
                Light = LightType.Circle300;
            }
        }
Exemplo n.º 2
0
 public IdolPedestal(IdolPlatform platform, IdolType type) : base(0x1F2A)
 {
     Hue        = 0x4AA;
     Light      = LightType.Circle300;
     Name       = "Pedestal of " + type;
     m_Platform = platform;
     m_Type     = type;
 }
Exemplo n.º 3
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			switch ( version )
			{
				case 0:
				{
					m_Type = (IdolType)reader.ReadInt();
					m_Platform = reader.ReadItem() as IdolPlatform;
					m_Idol = reader.ReadItem();

					if ( m_Platform == null )
						Delete();

					break;
				}
			}

			if ( Hue == 0x497 )
				Hue = 0x455;

			if ( Light != LightType.Circle300 )
				Light = LightType.Circle300;
		}
Exemplo n.º 4
0
		public IdolPedestal( IdolPlatform platform, IdolType type ) : base( 0x1F2A )
		{
			Hue = 0x4AA;
			Light = LightType.Circle300;
			Name = "Pedestal of " + type;
			m_Platform = platform;
			m_Type = type;
		}