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; } } }
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; } }
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; } }
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; } }
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; } }
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; }
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; } }
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 }; }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); switch ( version ) { case 0: { m_Type = (ChampionSkullType)reader.ReadInt(); break; } } }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); switch (version) { case 0: { m_Type = (ChampionSkullType)reader.ReadInt(); break; } } }
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; } }
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; } }
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; }
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
//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; }
public ChampionSkullEntry( ChampionSkullType type, string name, int amount ) : this( type, name, amount, 25, 0, 0 ) { }
public ChampionSkullEntry( ChampionSkullType type, string name ) : this( type, name, 0 ) { }
//default constructor: set up one type, a name, and default 0 quantity public ChampionSkullEntry( ChampionSkullType type ) : this( type, type.ToString() ) { }