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


C# GenericWriter.WriteFlag方法代码示例

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


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

示例1: Serialize

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			int version = writer.SetVersion(0);

			switch (version)
			{
				case 0:
					{
						writer.WriteType(ItemType);
						writer.Write(ItemChildren);
						writer.Write(ItemChangeReset);

						writer.WriteFlag(Resource);

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

示例2: Serialize

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			int version = writer.SetVersion(2);

			switch (version)
			{
				case 2:
					writer.Write(_ShowUsesRemaining);
					goto case 1;
				case 1:
					{
						writer.Write(_Crafter);

						if (version < 2)
						{
							writer.Write((int)_Quality);
						}
						else
						{
							writer.WriteFlag(_Quality);
						}
					}
					goto case 0;
				case 0:
					writer.Write(_UsesRemaining);
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:30,代码来源:BaseTool.cs

示例3: Serialize

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			int version = writer.SetVersion(1);

			switch (version)
			{
				case 1:
					writer.WriteFlag(Display);
					goto case 0;
				case 0:
					{
						writer.Write(MaleTitle);
						writer.Write(FemaleTitle);
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:19,代码来源:Title.cs

示例4: Serialize

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			int version = writer.SetVersion(2);

			switch (version)
			{
                case 2:
                    {
                        writer.Write(NotifyPlayer);
                    }
                    goto case 1;
				case 1:
					{
						writer.WriteFlag(SearchMode);
						writer.Write(SearchCapsIgnore);
					}
					goto case 0;
				case 0:
					{
						writer.WriteBlockList(WhitespaceAliases, writer.Write);
						writer.WriteBlockList(KeyWords, writer.Write);

						writer.Write(LogEnabled);
						writer.Write(ConsoleWrite);

						writer.Write(PageStaff);

						writer.Write(NotifyStaff);
						writer.WriteFlag(NotifyAccess);

						writer.Write(Jail);
						JailPoint.Serialize(writer);

						writer.Write(Squelch);
						writer.Write(Kick);
						writer.Write(Ban);
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:42,代码来源:SystemOptions.cs

示例5: Serialize

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			int version = writer.SetVersion(0);

			switch (version)
			{
				case 0:
					{
						writer.WriteType(Object);
						writer.Write(ObjectChildren);
						writer.Write(ObjectChangeReset);

						writer.WriteFlag(ObjectNameSearch);
						writer.Write(ObjectNameIgnoreCaps);
						writer.Write(ObjectNameReq);
						writer.Write(ObjectNameChangeReset);

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

示例6: Serialize

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			int version = writer.SetVersion(3);

			switch (version)
			{
                    case 3:
			        {
			            writer.Write(IsDuel);
                        writer.Write(IsDungeon);
                    }
                    goto case 2;
                case 2:
                    {
                        writer.WriteType(Battle);
                        writer.Write(BattleChildren);
                        writer.Write(ChangeBattleReset);

                        writer.Write(Map);
                        writer.Write(RegionName);
                    }
                    goto case 1;
				case 1:
					{
						writer.WriteFlag(AccessPlayer);
						writer.WriteFlag(AccessKiller);
					}
					goto case 0;
				case 0:
					{
						writer.WriteFlag(NotoCompare);
						writer.WriteFlag(NotoPlayer);
						writer.WriteFlag(NotoKiller);
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:39,代码来源:PlayerKillConquest.cs

示例7: Serialize

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			int version = writer.SetVersion(0);

			switch (version)
			{
				case 0:
					{
						writer.Write(Threshold);
						writer.WriteFlag(DetectAction);
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:16,代码来源:Fastwalk.cs

示例8: Serialize

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			int version = writer.SetVersion(0);

			switch (version)
			{
				case 0:
					{
						ConnectionInfo.Serialize(writer);

						writer.Write(Enabled);
						writer.Write(UseTransactions);
						writer.Write(LoadDataInFile);

						writer.WriteFlag(Encoding);
						writer.WriteFlag(Priority);
						writer.WriteFlag(HiddenAccessLevel);

						writer.Write(CharUpdateInterval);
						writer.Write(StatusUpdateInterval);
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:26,代码来源:Config.cs

示例9: Serialize

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			int version = writer.SetVersion(2);

			switch (version)
			{
                case 2:
                    {
                        writer.WriteFlag(KeywordSearch);
                        writer.Write(KeywordIgnoreCaps);
                        writer.Write(KeywordReq);
                        writer.Write(KeywordChangeReset);
                    }
			        goto case 1;
				case 1:
					{
						writer.Write(CheckAmount);
					}
					goto case 0;
				case 0:
					{
						writer.WriteType(Item);
						writer.Write(ItemChildren);
						writer.Write(ItemChangeReset);
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:30,代码来源:ItemConquest.cs

示例10: Serialize

	    public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version

			writer.Write( (int) m_Charges );
            writer.Write(LaunchID);
            writer.Write(LaunchHue);
            writer.Write(LaunchSpeed);
            writer.WriteFlag(LaunchRender);
            writer.Write(LaunchSound);
            writer.Write(LaunchRangeMin);
            writer.Write(LaunchRangeMax);
            writer.Write(LaunchHeightMin);
            writer.Write(LaunchHeightMax);

            writer.Write(TrailID);
            writer.Write(TrailHue);
            writer.Write(TrailSpeed);
            writer.Write(TrailDuration);
            writer.WriteFlag(TrailRender);
            writer.Write(TrailSound);

            writer.Write(ExplodeID);
            writer.Write(ExplodeHue);
            writer.Write(ExplodeSpeed);
            writer.Write(ExplodeDuration);
            writer.WriteFlag(ExplodeRender);
            writer.Write(ExplodeSound);

            writer.WriteFlag(StarsEffect);
            writer.Write(StarsHue);
            writer.Write(StarsSound);
            writer.Write(StarsRangeMin);
            writer.Write(StarsRangeMax);
            writer.WriteList(Stars, writer.Write);
            writer.WriteList(StarHues, writer.Write);
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:39,代码来源:FireworksStaff.cs

示例11: Serialize

        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            int version;

            writer.Write(version = 0);

            writer.WriteFlag(Expansion);
            writer.Write(Owner);

            switch (version)
            {
                case 0:
                {
                    writer.Write(BankBox);
                    writer.Write(Backpack);

                    writer.Write(StatCap);
                    writer.Write(RawStr);
                    writer.Write(RawDex);
                    writer.Write(RawInt);

                    writer.Write(SkillsCap);
                    Skills.Serialize(writer);
                }
                    break;
            }
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:29,代码来源:PlayerSnapshot.cs

示例12: Serialize

		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			int version = writer.SetVersion(0);

			switch (version)
			{
				case 0:
					{
						writer.Write(Phrase);
						writer.WriteFlag(Search);

						writer.Write(IgnoreCase);
						writer.Write(SpeechChangeReset);
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:19,代码来源:SpeechConquest.cs


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