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


C# GenericReader.ReadLong方法代码示例

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


在下文中一共展示了GenericReader.ReadLong方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();

			switch (version)
			{
                case 29:
					{
						m_GauntletPoints = reader.ReadDouble();

						m_SSNextSeed = reader.ReadDateTime();
						m_SSSeedExpire = reader.ReadDateTime();
						m_SSSeedLocation = reader.ReadPoint3D();
						m_SSSeedMap = reader.ReadMap();

						m_LevelExp = reader.ReadLong();
						m_Exp = reader.ReadLong();
						m_Level = reader.ReadInt();
						m_ExpTitle = reader.ReadString();

						m_VASTotalMonsterFame = reader.ReadInt();

						m_Quests = QuestReader.Quests(reader, this);
						m_Chains = QuestReader.Chains(reader);

						m_Collections = new Dictionary<Collection, int>();
						m_CollectionTitles = new List<object>();

						for (int i = reader.ReadInt(); i > 0; i--)
						{
							m_Collections.Add((Collection)reader.ReadInt(), reader.ReadInt());
						}

						for (int i = reader.ReadInt(); i > 0; i--)
						{
							m_CollectionTitles.Add(QuestReader.Object(reader));
						}

						m_SelectedTitle = reader.ReadInt();

						goto case 28;
					}
				case 28:
					{
						m_PeacedUntil = reader.ReadDateTime();

						goto case 27;
					}
				case 27:
					{
						m_AnkhNextUse = reader.ReadDateTime();

						goto case 26;
					}
				case 26:
					{
						m_AutoStabled = reader.ReadStrongMobileList();

						goto case 25;
					}
				case 25:
					{
						int recipeCount = reader.ReadInt();

						if (recipeCount > 0)
						{
							m_AcquiredRecipes = new Dictionary<int, bool>();

							for (int i = 0; i < recipeCount; i++)
							{
								int r = reader.ReadInt();
								if (reader.ReadBool()) //Don't add in recipies which we haven't gotten or have been removed
								{
									m_AcquiredRecipes.Add(r, true);
								}
							}
						}
						goto case 24;
					}
				case 24:
					{
						m_LastHonorLoss = reader.ReadDeltaTime();
						goto case 23;
					}
				case 23:
					{
						m_ChampionTitles = new ChampionTitleInfo(reader);
						goto case 22;
					}
				case 22:
					{
						m_LastValorLoss = reader.ReadDateTime();
						goto case 21;
					}
				case 21:
					{
						m_ToTItemsTurnedIn = reader.ReadEncodedInt();
						m_ToTTotalMonsterFame = reader.ReadInt();
						goto case 20;
//.........这里部分代码省略.........
开发者ID:zerodowned,项目名称:justuo-with-ec-support,代码行数:101,代码来源:PlayerMobile.cs

示例3: Deserialize

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

            int version = reader.ReadInt();

            this.m_Points = reader.ReadLong();
            this.m_StartTier = reader.ReadLong();
            this.m_NextTier = reader.ReadLong();
            this.m_DailyDecay = reader.ReadLong();
            this.m_Tier = reader.ReadInt();

            this.m_DonationTitle = QuestReader.Object(reader);

            this.Init();

            for (int i = reader.ReadInt(); i > 0; i --)
            {
                List<object> list = new List<object>();

                for (int j = reader.ReadInt(); j > 0; j --)
                    list.Add(QuestReader.Object(reader));

                this.m_Tiers.Add(list);
            }

            if (this.CantWalk)
                this.Frozen = true;
        }
开发者ID:bittiez,项目名称:ServUO,代码行数:29,代码来源:BaseCollectionMobile.cs

示例4: Deserialize

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

            //Category set by the collections this belongs to
            LastExchangeTime = reader.ReadDateTime();
            LastPrice = reader.ReadDouble();
            LastQuantity = reader.ReadInt();

            AveragePrice = reader.ReadDouble();

            HighestDayQuantity = reader.ReadLong();
            HighestDayPrice = reader.ReadDouble();
            LowestDayPrice = reader.ReadDouble();

            HighestPrice = reader.ReadDouble();
            LowestPrice = reader.ReadDouble();
            TotalQuantity = reader.ReadLong();

            int count = reader.ReadInt();
            for (int i = 0; i < count; i++)
            {
                ExchangeDay ed = new ExchangeDay(reader);
                ExchangeDayList.Add(ed);

                if (i == count - 1)
                    CurrentDay = ed;
            }

            count = reader.ReadInt();
            for (int i = 0; i < count; i++)
            {
                BuyInfo bi = new BuyInfo(reader);
                BuyInfoList.Add(bi);
                bi.Info = this;
            }

            count = reader.ReadInt();
            for (int i = 0; i < count; i++)
            {
                SellInfo si= new SellInfo(reader);
                SellInfoList.Add(si);
                si.Info = this;
            }

            m_SalesInfo1 = CustomSaving.DeserializeStringArray(reader);
            m_SalesInfo2 = CustomSaving.DeserializeStringArray(reader);
        }
开发者ID:kamronbatman,项目名称:Defiance-AOS-Pre-2012,代码行数:48,代码来源:ExChangeTypeInfo.cs

示例5: Deserialize


//.........这里部分代码省略.........
						if (GetSaveFlag(flags, SetFlag.Hue))
						{
							m_SetHue = reader.ReadInt();
						}

						if (GetSaveFlag(flags, SetFlag.LastEquipped))
						{
							m_LastEquipped = reader.ReadBool();
						}

						if (GetSaveFlag(flags, SetFlag.SetEquipped))
						{
							m_SetEquipped = reader.ReadBool();
						}

						if (GetSaveFlag(flags, SetFlag.SetSelfRepair))
						{
							m_SetSelfRepair = reader.ReadEncodedInt();
						}

						goto case 5;
					}
				case 9:
				case 8:
				case 7:
				case 6:
				case 5:
					{
						SaveFlag flags;
                        
                        if(version < 13)
                            flags = (SaveFlag)reader.ReadInt();
                        else
                            flags = (SaveFlag)reader.ReadLong();

						if (GetSaveFlag(flags, SaveFlag.DamageLevel))
						{
							m_DamageLevel = (WeaponDamageLevel)reader.ReadInt();

							if (m_DamageLevel > WeaponDamageLevel.Vanq)
							{
								m_DamageLevel = WeaponDamageLevel.Ruin;
							}
						}

						if (GetSaveFlag(flags, SaveFlag.AccuracyLevel))
						{
							m_AccuracyLevel = (WeaponAccuracyLevel)reader.ReadInt();

							if (m_AccuracyLevel > WeaponAccuracyLevel.Supremely)
							{
								m_AccuracyLevel = WeaponAccuracyLevel.Accurate;
							}
						}

						if (GetSaveFlag(flags, SaveFlag.DurabilityLevel))
						{
							m_DurabilityLevel = (WeaponDurabilityLevel)reader.ReadInt();

							if (m_DurabilityLevel > WeaponDurabilityLevel.Indestructible)
							{
								m_DurabilityLevel = WeaponDurabilityLevel.Durable;
							}
						}

						if (GetSaveFlag(flags, SaveFlag.Quality))
开发者ID:mcarriere,项目名称:ServUO,代码行数:67,代码来源:BaseWeapon.cs

示例6: Read

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

			Collection = (Collection)reader.ReadInt();
			Points = reader.ReadLong();
			StartTier = reader.ReadLong();
			NextTier = reader.ReadLong();
			DailyDecay = reader.ReadLong();
			Tier = reader.ReadInt();

			DonationTitle = QuestReader.Object(reader);

			for (int i = reader.ReadInt(); i > 0; i--)
			{
				List<object> list = new List<object>();

				for (int j = reader.ReadInt(); j > 0; j--)
					list.Add(QuestReader.Object(reader));

				Tiers.Add(list);
			}
		}
开发者ID:Crome696,项目名称:ServUO,代码行数:23,代码来源:CollectionsSystem.cs

示例7: Deserialize

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

            int version = reader.ReadInt();

            switch ( version )
            {
                case 1:
                    m_Instance = reader.ReadItem() as PrimevalLichPuzzle;
                    this.m_Altar = reader.ReadItem() as ChampionSpawn;
                    this.m_Key = reader.ReadLong();
                    this.m_Successful = reader.ReadMobile();
                    this.m_Levers = reader.ReadStrongItemList<PrimevalLichPuzzleLever>();
                    break;
            }

            if (null == this.m_Levers)
                this.m_Levers = new List<PrimevalLichPuzzleLever>();
            //            if ( null != m_Instance && m_Instance.Deleted && this == m_Instance )
            //            {
            //                m_Instance = null;
            //                return;
            //            }
            //            // remove if no altar exists
            //            if ( null == m_Altar )
            //                Timer.DelayCall( TimeSpan.FromSeconds( 0.0 ), new TimerCallback( Delete ) );
            //            ResetLevers();
        }
开发者ID:Crome696,项目名称:ServUO,代码行数:29,代码来源:PrimevalLichPuzzle.cs


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