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

            int version = reader.ReadInt();

            switch (version)
            {
            case 1:
            case 0:
            {
                m_Type = (ChampionSkullType)reader.ReadInt();

                break;
            }
            }

            if (version == 0)
            {
                if (LootType != LootType.Cursed)
                {
                    LootType = LootType.Cursed;
                }

                if (Insured)
                {
                    Insured = false;
                }
            }
        }
Esempio n. 2
0
		public ChampionSkull(ChampionSkullType type)
			: base(0x1AE1)
		{
			m_Type = type;

			LootType = LootType.Cursed;

			switch (type)
			{
				case ChampionSkullType.Power:
					Hue = 0x159;
					break;
				case ChampionSkullType.Venom:
					Hue = 0x172;
					break;
				case ChampionSkullType.Greed:
					Hue = 0x1EE;
					break;
				case ChampionSkullType.Death:
					Hue = 0x025;
					break;
				case ChampionSkullType.Pain:
					Hue = 0x035;
					break;
			}
		}
Esempio n. 3
0
        public ChampionSkull(ChampionSkullType type)
            : base(0x1AE1)
        {
            m_Type = type;

            LootType = LootType.Cursed;

            switch (type)
            {
            case ChampionSkullType.Power:
                Hue = 0x159;
                break;

            case ChampionSkullType.Venom:
                Hue = 0x172;
                break;

            case ChampionSkullType.Greed:
                Hue = 0x1EE;
                break;

            case ChampionSkullType.Death:
                Hue = 0x025;
                break;

            case ChampionSkullType.Pain:
                Hue = 0x035;
                break;
            }
        }
Esempio n. 4
0
        public ChampionSkull(ChampionSkullType type)
            : base(0x1AE1)
        {
            this.m_Type = type;
            this.LootType = LootType.Cursed;

            // TODO: All hue values
            switch ( type )
            {
                case ChampionSkullType.Power:
                    this.Hue = 0x159;
                    break;
                case ChampionSkullType.Venom:
                    this.Hue = 0x172;
                    break;
                case ChampionSkullType.Greed:
                    this.Hue = 0x1EE;
                    break;
                case ChampionSkullType.Death:
                    this.Hue = 0x025;
                    break;
                case ChampionSkullType.Pain:
                    this.Hue = 0x035;
                    break;
            }
        }
Esempio n. 5
0
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();

            switch ( version )
            {
                case 1:
                case 0:
                {
                    m_Type = (ChampionSkullType)reader.ReadInt();

                    break;
                }
            }

            if( version == 0 )
            {
                if ( LootType != LootType.Cursed )
                    LootType = LootType.Cursed;

                if ( Insured )
                    Insured = false;
            }
        }
Esempio n. 6
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
            {
                m_Type     = (ChampionSkullType)reader.ReadInt();
                m_Platform = reader.ReadItem() as ChampionSkullPlatform;
                m_Skull    = reader.ReadItem();

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

                break;
            }
            }

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

            if (Light != LightType.Circle300)
            {
                Light = LightType.Circle300;
            }
        }
Esempio n. 7
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            reader.ReadInt();

            m_Type = (ChampionSkullType)reader.ReadInt();
        }
		public ChampionSkullBrazier( ChampionSkullPlatform platform, ChampionSkullType type ) : base( 0xFAC ) //changed from 0x19BB(brazier) to 0xFAC(fire pit), Pigpen
		{
			//Hue = 0x455; (removed hueing.) Pigpen
			Light = LightType.Circle300;

			m_Platform = platform;
			m_Type = type;
		}
        public ChampionSkullBrazier(ChampionSkullPlatform platform, ChampionSkullType type) : base(0xFAC)             //changed from 0x19BB(brazier) to 0xFAC(fire pit), Pigpen
        {
            //Hue = 0x455; (removed hueing.) Pigpen
            Light = LightType.Circle300;

            m_Platform = platform;
            m_Type     = type;
        }
        public ChampionSkullBrazier(ChampionSkullPlatform platform, ChampionSkullType type) : base(0x19BB)
        {
            Hue = 0x455;
            Light = LightType.Circle300;

            m_Platform = platform;
            m_Type = type;
        }
Esempio n. 11
0
        public ChampionSkullBrazier(ChampionSkullPlatform platform, ChampionSkullType type) : base(0x19BB)
        {
            Hue   = 0x455;
            Light = LightType.Circle300;

            m_Platform = platform;
            m_Type     = type;
        }
		public ChampionSkull( ChampionSkullType type ) : base( 0x1AE1 )
		{
			m_Type = type;

			// TODO: All hue values
			switch ( type )
			{
				case ChampionSkullType.Power: Hue = 0x159; break;
				case ChampionSkullType.Venom: Hue = 0x172; break;
				case ChampionSkullType.Greed: Hue = 0x1EE; break;
				case ChampionSkullType.Death: Hue = 0x025; break;
				case ChampionSkullType.Pain:  Hue = 0x035; break;
			}
		}
Esempio n. 13
0
        public ChampionSkull(ChampionSkullType type) : base(0x1AE1)
        {
            m_Type   = type;
            LootType = LootType.Cursed;

            // TODO: All hue values
            Hue = type switch
            {
                ChampionSkullType.Power => 0x159,
                ChampionSkullType.Venom => 0x172,
                ChampionSkullType.Greed => 0x1EE,
                ChampionSkullType.Death => 0x025,
                ChampionSkullType.Pain => 0x035,
                _ => Hue
            };
        }
Esempio n. 14
0
        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();

            switch ( version )
            {
                case 0:
                {
                    m_Type = (ChampionSkullType)reader.ReadInt();

                    break;
                }
            }
        }
Esempio n. 15
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
            {
                m_Type = (ChampionSkullType)reader.ReadInt();

                break;
            }
            }
        }
Esempio n. 16
0
        public ChampionSkull(ChampionSkullType type) : base(0x1AE1)
        {
            m_Type = type;

            // TODO: All hue values
            switch (type)
            {
            case ChampionSkullType.Power: Hue = 0x159; break;

            case ChampionSkullType.Venom: Hue = 0x172; break;

            case ChampionSkullType.Greed: Hue = 0x1EE; break;

            case ChampionSkullType.Death: Hue = 0x025; break;

            case ChampionSkullType.Pain:  Hue = 0x035; break;
            }
        }
Esempio n. 17
0
        public ChampionSkull(ChampionSkullType type)
            : base(0x1AE1)
        {
            this.m_Type   = type;
            this.LootType = LootType.Cursed;

            // TODO: All hue values
            switch (type)
            {
            case ChampionSkullType.Power:
                this.Hue = 0x159;
                break;

            case ChampionSkullType.Venom:
                this.Hue = 0x172;
                break;

            case ChampionSkullType.Greed:
                this.Hue = 0x1EE;
                break;

            case ChampionSkullType.Death:
                this.Hue = 0x025;
                break;

            case ChampionSkullType.Pain:
                this.Hue = 0x035;
                break;

            case ChampionSkullType.Terror:
                this.Hue = 0x4F2;
                break;

            case ChampionSkullType.Infuse:
                this.Hue = 0x550;
                break;
            }
        }
Esempio n. 18
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 0:
            {
                m_Type     = (ChampionSkullType)reader.ReadInt();
                m_Platform = reader.ReadItem() as ChampionSkullPlatform;
                m_Skull    = reader.ReadItem();

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

                break;
            }
            }
        }
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            var version = reader.ReadInt();

            switch (version)
            {
                case 0:
                {
                    m_Type = (ChampionSkullType) reader.ReadInt();
                    m_Platform = reader.ReadItem() as ChampionSkullPlatform;
                    m_Skull = reader.ReadItem();

                    if (m_Platform == null)
                        Delete();

                    break;
                }
            }

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

            if (Light != LightType.Circle300)
                Light = LightType.Circle300;
        }
Esempio n. 20
0
		public override void Deserialize( GenericReader reader )
		{
			//handle base StoreEntry deserialization first
			base.Deserialize( reader );
			int version = reader.ReadInt();
			
			switch( version )
			{
				case 0:
				default:
				{
					_SkullType = (ChampionSkullType)reader.ReadInt();
					break;
				}
			}
			
		}//deserialize		
Esempio n. 21
0
		//master constructor: set up several types, a name, an amount, and size/offset of artwork
		public ChampionSkullEntry( ChampionSkullType type, string name, int amount, int height, int x, int y ) : base( typeof( ChampionSkull ), null, name, amount, height, x, y )
		{
			_SkullType = type;
		}
Esempio n. 22
0
		public ChampionSkullEntry( ChampionSkullType type, string name, int amount ) : this( type, name, amount, 25, 0, 0 )
		{
		}
Esempio n. 23
0
		public ChampionSkullEntry( ChampionSkullType type, string name ) : this( type, name, 0 )
		{
		}
Esempio n. 24
0
		//default constructor: set up one type, a name, and default 0 quantity
		public ChampionSkullEntry( ChampionSkullType type ) : this( type, type.ToString() )
		{
		}