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


C# GenericReader.ReadType方法代码示例

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


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

示例1: Deserialize

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

		    reader.ReadInt();

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

示例2: Deserialize

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

			int version = reader.GetVersion();

			switch (version)
			{
				case 0:
			    {
			        House = reader.ReadType();
			    }
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:15,代码来源:HousePlacementConquest.cs

示例3: Deserialize

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

			int version = reader.GetVersion();

			switch (version)
			{
				case 0:
					{
						ItemType = reader.ReadType();
						ItemChildren = reader.ReadBool();
						ItemChangeReset = reader.ReadBool();

						Resource = reader.ReadFlag<CraftResource>();

						HarvestSystem = reader.ReadType();
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:21,代码来源:HarvestConquest.cs

示例4: Deserialize

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

			int version = reader.GetVersion();

			switch (version)
			{
				case 0:
					{
						Object = reader.ReadType();
						ObjectChildren = reader.ReadBool();
						ObjectChangeReset = reader.ReadBool();

						ObjectNameSearch = reader.ReadFlag<StringSearchFlags>();
						ObjectNameIgnoreCaps = reader.ReadBool();
						ObjectNameReq = reader.ReadString();
						ObjectNameChangeReset = reader.ReadBool();

						ObjectHueReq = reader.ReadInt();
						ObjectHueChangeReset = reader.ReadBool();
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:25,代码来源:ObtainConquest.cs

示例5: Deserialize

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

			int version = reader.GetVersion();

			switch (version)
			{
				case 0:
			    {
			        Spell = reader.ReadType();
						ChangeSpellReset = reader.ReadBool();
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:16,代码来源:SuccessfulSpellConquest.cs

示例6: Deserialize

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

			int version = reader.GetVersion();

			switch (version)
			{
                case 3:
                    {
                        IsDuel = reader.ReadBool();
                        IsDungeon = reader.ReadBool();
                    }
                    goto case 2;
                case 2:
                    {
                        Battle = reader.ReadType();
                        BattleChildren = reader.ReadBool();
                        ChangeBattleReset = reader.ReadBool();

                        RegionName = reader.ReadString();
                        Map = reader.ReadMap();
                    }
                    goto case 1;
				case 1:
					{
						AccessPlayer = reader.ReadFlag<AccessLevel>();
						AccessKiller = reader.ReadFlag<AccessLevel>();
					}
					goto case 0;
				case 0:
					{
						NotoCompare = reader.ReadFlag<NotorietyType>();
						NotoPlayer = reader.ReadFlag<NotorietyType>();
						NotoKiller = reader.ReadFlag<NotorietyType>();
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:39,代码来源:PlayerKillConquest.cs

示例7: Deserialize

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

            Creatures = new List<Type>();
            RewardItems = new List<Type>();

            int version = reader.ReadInt();

            UID = new LevelSerial(reader);

            switch (version)
            {
                case 1:
                {
                    Plat = reader.ReadInt();
                }
                goto case 0;
                case 0:
                {
                    InvaderTitles = reader.ReadString();
                    TimeLimit = reader.ReadTimeSpan();
                    SpawnAmount = reader.ReadInt();
                    KillAmount = reader.ReadInt();

                    int count = reader.ReadInt();

                    if (count > 0)
                    {
                        for (int i = 0; i < count; i++)
                        {
                            Type creature = reader.ReadType();
                            Creatures.Add(creature);
                        }
                    }
                }
                    break;
            }
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:39,代码来源:Level.cs

示例8: Deserialize

        public override void Deserialize(GenericReader reader)
        {
            Contains = new List<Type>();
            base.Deserialize(reader);

            int version = reader.ReadInt();
            Completed = reader.ReadBool();
            WrongStep = reader.ReadBool();
            ContainsFlesh = reader.ReadBool();
            ContainsTentacles = reader.ReadBool();
            ContainsVitriol = reader.ReadBool();
            ContainsWings = reader.ReadBool();

            var count = reader.ReadInt();

            if (count > 0)
            {
                for (int i = 0; i < count; i++)
                {
                    var type = reader.ReadType();
                    Contains.Add(type);
                }
            }
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:24,代码来源:MortarPestle.cs

示例9: Deserialize

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

			int version = reader.GetVersion();

			switch (version)
			{
                case 2:
                    {
                        KeywordSearch = reader.ReadFlag<StringSearchFlags>();
                        KeywordIgnoreCaps = reader.ReadBool();
                        KeywordReq = reader.ReadString();
                        KeywordChangeReset = reader.ReadBool();
                    }
                    goto case 1;
				case 1:
					{
						CheckAmount = reader.ReadBool();
					}
					goto case 0;
				case 0:
					{
						Item = reader.ReadType();
						ItemChildren = reader.ReadBool();
						ItemChangeReset = reader.ReadBool();
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:30,代码来源:ItemConquest.cs

示例10: Deserialize

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

			int version = reader.GetVersion();

			switch (version)
			{
				case 0:
					{
						Creature = reader.ReadType();
						Children = reader.ReadBool();
						ChangeCreatureReset = reader.ReadBool();

                        Item = reader.ReadType();
                        ItemChildren = reader.ReadBool();
                        ItemChangeReset = reader.ReadBool();

					    IsDungeon = reader.ReadBool();
					    PlayerTarget = reader.ReadBool();
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:24,代码来源:StealingConquest.cs

示例11: Deserialize

        public override void Deserialize(GenericReader reader)
        {
            Contains = new List<Type>();
            base.Deserialize(reader);

            int version = reader.ReadInt();
            Completed = reader.ReadBool();
            WrongStep = reader.ReadBool();
            ContainsSeed = reader.ReadBool();
            ContainersClaw = reader.ReadBool();
            ContainsCarapace = reader.ReadBool();
            ContainsConcoction = reader.ReadBool();

            var count = reader.ReadInt();

            if (count > 0)
            {
                for (int i = 0; i < count; i++)
                {
                    var type = reader.ReadType();
                    Contains.Add(type);
                }
            }
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:24,代码来源:PewterBowl.cs

示例12: Deserialize

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

			int version = reader.GetVersion();

			switch (version)
			{
                case 0:
			    {
			        Battle = reader.ReadType();
			        BattleChildren = reader.ReadBool();
			        ChangeBattleReset = reader.ReadBool();
			    }
			        break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:17,代码来源:EventKillConquest.cs

示例13: Deserialize

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

			int version = reader.GetVersion();

			switch (version)
			{
				case 2:
					IsCloth = reader.ReadBool();
					goto case 1;
				case 1:
					{
						CraftSystem = reader.ReadType();
						Resource = (CraftResource)reader.ReadInt();
						IsSlayer = reader.ReadBool();
					}
					goto case 0;
				case 0:
					{
						ItemType = reader.ReadType();
						ItemChildren = reader.ReadBool();
						ItemChangeReset = reader.ReadBool();
						IsExceptional = reader.ReadBool();
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:28,代码来源:CraftingConquest.cs


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