public PromotionalToken(PromotionalTokenType promotionalTokenType, bool needAccountDonation) : base(0x2AAA) { m_NeedAccountDonation = needAccountDonation; m_BoundItem = promotionalTokenType; m_PromotionalItem = m_Table[(int)promotionalTokenType]; LootType = LootType.Blessed; Weight = 5.0; Light = LightType.Empty; }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadEncodedInt(); m_NeedAccountDonation = reader.ReadBool(); m_BoundItem = (PromotionalTokenType)reader.ReadInt(); m_PromotionalItem = m_Table[(int)m_BoundItem]; }