当前位置: 首页>>代码示例>>C#>>正文


C# GenericReader.ReadDouble方法代码示例

本文整理汇总了C#中GenericReader.ReadDouble方法的典型用法代码示例。如果您正苦于以下问题:C# GenericReader.ReadDouble方法的具体用法?C# GenericReader.ReadDouble怎么用?C# GenericReader.ReadDouble使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GenericReader的用法示例。


在下文中一共展示了GenericReader.ReadDouble方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ExchangeDay

        public ExchangeDay(GenericReader reader)
        {
            int version = reader.ReadInt();

            HighestPrice = reader.ReadDouble();
            LowestPrice = reader.ReadDouble();
            TotalQuantity = reader.ReadLong();
            TotalRevenue = reader.ReadLong();
            Average = reader.ReadDouble();
            Day = reader.ReadInt();
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:11,代码来源:ExchangeDay.cs

示例2: Deserialize

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            mDelay = (double) reader.ReadDouble();
        }
开发者ID:zerodowned,项目名称:My-Stuff,代码行数:7,代码来源:SmartItem.cs

示例3: Deserialize

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

            reader.ReadInt();

            StorageIncrease = reader.ReadDouble();
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:8,代码来源:StorageIncreaseDeed.cs

示例4: Deserialize

        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            LootType = LootType.Blessed;

            reader.ReadInt();

            VendorIncrease = reader.ReadDouble();
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:9,代码来源:VendorIncreaseDeed.cs

示例5: TransactionInfo

        public TransactionInfo(GenericReader reader)
        {
            int version = reader.ReadInt();

            Price = reader.ReadDouble();
            Quantity = reader.ReadInt();
            Name = reader.ReadString();
            Buyer = reader.ReadBool();
            Date = reader.ReadDateTime();
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:10,代码来源:TransactionInfo.cs

示例6: Deserialize

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

			int version = reader.ReadInt();

			m_PriceInSilver = reader.ReadInt();
			m_MaxCanBuyTo = reader.ReadDouble();
			m_SkillIncrease = reader.ReadInt();
			m_CoolLooking = reader.ReadBool();
		}
开发者ID:greeduomacro,项目名称:annox,代码行数:11,代码来源:SkillBuyStone.cs

示例7: Deserialize

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

            int version = reader.ReadInt();

            switch (version)
            {
                case 1:
                    {
                        ArcherMod = reader.ReadDouble();
                        BardMod = reader.ReadDouble();
                        TamerMod = reader.ReadDouble();
                        SummonMod = reader.ReadDouble();
                    }
                    goto case 0;
                case 0:
                    break;
            }
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:20,代码来源:SystemOptions.cs

示例8: Deserialize

        public void Deserialize( GenericReader reader )
        {
            int version = reader.ReadInt();

            switch( version )
            {
                case 1:
                    {
                        Points = reader.ReadDouble();
                        goto case 1;
                    }
                case 0:
                    {
                        m_Player = reader.ReadMobile();
                        m_Kills = reader.ReadInt();
                        m_Deaths = reader.ReadInt();
                        break;
                    }
            }
        }
开发者ID:FreeReign,项目名称:imaginenation,代码行数:20,代码来源:ScoreKeeper.cs

示例9: Deserialize

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

            int version = reader.ReadInt();
            switch (version)
            {
                case 0:
                    _AlchemyBonusPercentageOfSkill = reader.ReadDouble();
                    _AlchemyBonusMax = reader.ReadInt();
                    _GreaterExplosionPotDmgMin = reader.ReadInt();
                    _GreaterExplosionPotDmgMax = reader.ReadInt();
                    _GreaterExplosionPotTimeDelay = reader.ReadDouble();
                    _ExplosionPotDmgMin = reader.ReadInt();
                    _ExplosionPotDmgMax = reader.ReadInt();
                    _ExplosionPotTimeDelay = reader.ReadDouble();
                    _LesserExplosionPotDmgMin = reader.ReadInt();
                    _LesserExplosionPotDmgMax = reader.ReadInt();
                    _LesserExplosionPotTimeDelay = reader.ReadDouble();
                    _ExplosionPotionHandsNotFreeDelay = reader.ReadDouble();
                    break;
            }
            m_Instance = this;
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:24,代码来源:ExplosionPotionController.cs

示例10: Deserialize

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

			int version = reader.ReadInt();

			switch( version )
			{
				case 1:
					m_alDisabledSkills = new ArrayList();
					int size = reader.ReadInt();
					for ( int i=0;i<size;i++ )
						m_alDisabledSkills.Add( (SkillName) reader.ReadInt() );
					goto case 0;
				case 0:
					m_PriceInGold = reader.ReadInt();
					m_MaxCanBuyTo = reader.ReadDouble();
					m_SkillIncrease = reader.ReadInt();
					m_CoolLooking = reader.ReadBool();
					break;
			}

			if( version == 0 )
				m_alDisabledSkills = new ArrayList();
		}
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:25,代码来源:SkillBuyStone.cs

示例11: Deserialize

        public override void Deserialize(GenericReader reader)
        {
            int version = reader.GetVersion();

            switch (version)
            {
                case 0:
                {
                    _level = reader.ReadInt();
                    Name = reader.ReadString();
                    MetaSkillType = (MetaSkillType) reader.ReadInt();
                    ChanceToActivate = reader.ReadDouble();
                    CoolDown = reader.ReadTimeSpan();
                    AbilityMultiplier = reader.ReadDouble();
                    Experience = reader.ReadInt();
                    NextLevelExperience = reader.ReadInt();
                    MaxLevel = reader.ReadInt();
                }
                    break;
            }
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:21,代码来源:MetaSkill.cs

示例12: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 0:
                    {
                        this.m_MinSkill = reader.ReadDouble();
                        this.m_MaxSkill = reader.ReadDouble();
                        this.m_Arrows = reader.ReadInt();
                        this.m_Bolts = reader.ReadInt();

                        if (this.m_MinSkill == 0.0 && this.m_MaxSkill == 30.0)
                        {
                            this.m_MinSkill = -25.0;
                            this.m_MaxSkill = +25.0;
                        }

                        break;
                    }
            }
        }
开发者ID:rokann,项目名称:JustUO,代码行数:25,代码来源:ArcheryButteAddon.cs

示例13: Deserialize

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

            int version = reader.ReadInt();
            switch(version)
            {
                case 1:
                    // version 1
                    this.m_RequiredSkill2 = (SkillName)reader.ReadInt();
                    this.m_MinSkillLevel2 = reader.ReadDouble();
                    goto case 0;
                case 0:
                    // version 0
                    this.m_MaxSockets = reader.ReadInt();
                    string resourcetype = reader.ReadString();
                    try
                    {
                        this.m_RequiredResource = Type.GetType(resourcetype);
                    }
                    catch
                    {
                    }
                    this.m_ResourceQuantity = reader.ReadInt();
                    this.m_RequiredSkill = (SkillName)reader.ReadInt();
                    this.m_MinSkillLevel = reader.ReadDouble();
                    break;
            }
        }
开发者ID:jasegiffin,项目名称:JustUO,代码行数:29,代码来源:XmlSocketable.cs

示例14: Deserialize

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

			int version = reader.ReadInt();

			switch( version )
			{
				case 7:
				{
					m_RestFlags = (EGRFlags)PSerial.ReadEncodedLong( reader );
					m_OptFlags = (EGateOptFlags)reader.ReadEncodedInt();
					m_MaxPlayers = reader.ReadInt();
					m_TollItem = Reflector.Deserialize( reader );
					m_TollAmount = reader.ReadInt();
					m_SkillName1 = (SkillName)reader.ReadInt();
					m_SkillName2 = (SkillName)reader.ReadInt();
					m_SkillValue1 = reader.ReadDouble();
					m_SkillValue2 = reader.ReadDouble();
					m_GMsNeeded = reader.ReadInt();
					m_StrValue = reader.ReadInt();
					m_IntValue = reader.ReadInt();
					m_DexValue = reader.ReadInt();
					m_Confirmation = reader.ReadString();
					m_GameRobeHue = reader.ReadInt();
					m_Delay = reader.ReadTimeSpan();
					m_KarmaThreshold = reader.ReadInt();
					break;
				}
				case 6:
				{
					switch ( reader.ReadInt() )
					{
						case 0: TollLocation = TollOption.Backpack; break;
						case 1: TollLocation = TollOption.BankBox; break;
						case 2: TollLocation = TollOption.Both; break;
					}

					goto case 5;
				}
				case 5:
				{
					CannotFleeFromBattle = reader.ReadBool();
					goto case 4;
				}
				case 4:
				{
					m_GameRobeHue = reader.ReadInt();
					GiveGameRobe = !reader.ReadBool();
					goto case 3;
				}
				case 3:
				{
					StaffOverride = !reader.ReadBool();
					m_Confirmation = reader.ReadString();
					StaffOnly = reader.ReadBool();

					switch( reader.ReadInt() ) //Sex-Select
					{
						case 1: Gender = GenderOption.Male; break;
						case 2: Gender = GenderOption.Female; break;
					}

					int npcguild = reader.ReadInt();
					if ( npcguild > 0 )
					{
						SetRestFlag( EGRFlags.No_NPCGuilds, true );
						SetRestFlag( (EGRFlags)(1ul<<(25+npcguild)), false );
					}

					switch( reader.ReadInt() ) //Faction-Select
					{
						case 1: SetRestFlag( EGRFlags.No_Factions, true ); break;
						case 2: SetRestFlag( EGRFlags.No_Factionless, true ); break;
						case 3: SetRestFlag( EGRFlags.No_Minax | EGRFlags.No_Shadowlords | EGRFlags.No_TrueBrits, true ); break;
						case 4: SetRestFlag( EGRFlags.No_COM | EGRFlags.No_Shadowlords | EGRFlags.No_TrueBrits, true ); break;
						case 5: SetRestFlag( EGRFlags.No_COM | EGRFlags.No_Minax | EGRFlags.No_TrueBrits, true ); break;
						case 6: SetRestFlag( EGRFlags.No_COM | EGRFlags.No_Minax | EGRFlags.No_Shadowlords, true ); break;
					}

					switch( reader.ReadInt() ) //ChaosOrder-Select
					{
						case 1: SetRestFlag( EGRFlags.No_ChaosGuild | EGRFlags.No_OrderGuild, true ); break;
						case 2: SetRestFlag( EGRFlags.No_RegGuild | EGRFlags.No_Guildless, true ); break;
						case 3: SetRestFlag( EGRFlags.No_OrderGuild | EGRFlags.No_RegGuild | EGRFlags.No_Guildless, true ); break;
						case 4: SetRestFlag( EGRFlags.No_ChaosGuild | EGRFlags.No_RegGuild | EGRFlags.No_Guildless, true ); break;
					}
					goto case 2;
				}
				case 2:
				{
					switch( reader.ReadInt() ) //Young-Select
					{
						case 1: Veterans = VetOption.Veteran; break;
						case 2: Veterans = VetOption.Young; break;
					}

					switch( reader.ReadInt() ) //Factioners-Select
					{
						case 1: SetRestFlag( EGRFlags.No_Factions, true ); break;
//.........这里部分代码省略.........
开发者ID:kamronbatman,项目名称:DefianceUO-Pre1.10,代码行数:101,代码来源:EGate.cs

示例15: Deserialize

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

            int version = reader.ReadInt();
            // version 0
            this.m_Hue = reader.ReadInt();
            this.m_HitsBuff = reader.ReadDouble();
            this.m_StrBuff = reader.ReadDouble();
            this.m_IntBuff = reader.ReadDouble();
            this.m_DexBuff = reader.ReadDouble();
            this.m_SkillsBuff = reader.ReadDouble();
            this.m_SpeedBuff = reader.ReadDouble();
            this.m_FameBuff = reader.ReadDouble();
            this.m_KarmaBuff = reader.ReadDouble();
            this.m_DamageBuff = reader.ReadInt();
            this.m_EnableParagon = reader.ReadBool();
            this.m_ChestChance = reader.ReadDouble();
            this.m_ParagonLabel = reader.ReadString();
            this.m_ConvertFactor = reader.ReadDouble();
            this.m_ArtifactFactor = reader.ReadDouble();
        }
开发者ID:jasegiffin,项目名称:JustUO,代码行数:22,代码来源:XmlParagon.cs


注:本文中的GenericReader.ReadDouble方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。