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


C# GenericWriter.WriteFlag方法代码示例

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


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

示例1: Serialize

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

			int version = writer.SetVersion(0);

			switch (version)
			{
				case 0:
					{
						writer.Write(AllowPlayerSearch);
						writer.Write(AllowPlayerDelete);
						writer.WriteFlag(RankingOrder);
					}
					break;
			}
		}
开发者ID:jasegiffin,项目名称:JustUO,代码行数:17,代码来源:ProfileOpts.cs

示例2: Serialize

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

			int version = writer.SetVersion(0);

			switch (version)
			{
				case 0:
					{
						writer.Write(PopupCommand);
						writer.Write(LoginPopup);
						writer.Write(VirtuePopup);
						writer.WriteFlag(EditAccess);
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:18,代码来源:SystemOpts.cs

示例3: Serialize

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

			int version = writer.SetVersion(0);

			switch (version)
			{
				case 0:
					{
						writer.Write(Enabled);
						writer.Write(Force);
						writer.Write(Impacts);
						writer.Write(Density);
						writer.WriteFlag(Direction);

						writer.Write(EffectID);
						writer.Write(EffectHue);
						writer.Write(EffectSpeed);
						writer.WriteFlag(EffectRender);

						writer.Write(ImpactEffectID);
						writer.Write(ImpactEffectHue);
						writer.Write(ImpactEffectSpeed);
						writer.Write(ImpactEffectDuration);
						writer.WriteFlag(ImpactEffectRender);
						writer.Write(ImpactEffectSound);
					}
					break;
			}
		}
开发者ID:jasegiffin,项目名称:JustUO,代码行数:31,代码来源:Weather.cs

示例4: Serialize

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

			int version = writer.SetVersion(0);

			switch (version)
			{
				case 0:
					{
						writer.Write(BlessedFor);
						writer.WriteFlag(_AccessMask);
						writer.WriteFlag(_AccessTemp);
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:RuneUO,代码行数:17,代码来源:AccessCloak.cs

示例5: Serialize

		public void Serialize(GenericWriter writer)
		{
			int version = writer.SetVersion(0);

			switch (version)
			{
				case 0:
					{
						writer.Write(ID);
						writer.WriteFlag(_State);
						writer.Write(Account);
						writer.Write(Email);
						writer.Write(Total);
						writer.Write(_Credit);
						writer.Write(_Time.Stamp);
						writer.Write(Version);
						writer.Write(_InternalVersion);
						writer.Write(_Notes);
						writer.Write(_Extra);

						writer.Write(DeliverFrom);
						writer.Write(DeliverTo);

						writer.Write(DeliveryTime.Stamp);
					}
					break;
			}
		}
开发者ID:jasegiffin,项目名称:JustUO,代码行数:28,代码来源:Transaction.cs

示例6: Serialize

		public virtual void Serialize(GenericWriter writer)
		{
			int version = writer.SetVersion(0);

			switch (version)
			{
				case 0:
					{
						writer.WriteType(
							_Info,
							t =>
							{
								if (t != null)
								{
									_Info.Serialize(writer);
								}
							});

						writer.Write(_Enabled);
						writer.Write(_Name);
						writer.WriteFlag(_DefaultPriority);

						if (_LastGlobalTick != null)
						{
							writer.Write(true);
							writer.Write(_LastGlobalTick.Value);
						}
						else
						{
							writer.Write(false);
						}

						if (_NextGlobalTick != null)
						{
							writer.Write(true);
							writer.Write(_NextGlobalTick.Value);
						}
						else
						{
							writer.Write(false);
						}

						writer.Write(Delay);
						writer.Write(Interval);
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:48,代码来源:Schedule.cs

示例7: Serialize

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

			int version = writer.SetVersion(0);

			switch (version)
			{
				case 0:
					{
						writer.Write(_Token);
						writer.Write(_Crafter);

						writer.Write(UseDelay);
						writer.Write(FuseDelay);

						writer.Write(IgniteEffectID);
						writer.Write(IgniteEffectHue);
						writer.Write(IgniteEffectSpeed);
						writer.WriteFlag(IgniteEffectRender);
						writer.Write(IgniteEffectSound);

						writer.Write(FailEffectID);
						writer.Write(FailEffectHue);
						writer.Write(FailEffectSpeed);
						writer.Write(FailEffectDuration);
						writer.WriteFlag(FailEffectRender);
						writer.Write(FailEffectSound);
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:32,代码来源:BaseFirework.cs

示例8: Serialize

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

			int version = writer.SetVersion(1);

			switch (version)
			{
				case 1:
					{
						writer.Write(GumpWidth);
						writer.Write(GumpHeight);
						writer.Write(GumpPadding);
						writer.Write(GumpBackground);
						writer.Write(GumpForeground);
						writer.WriteFlag(GumpFlow);
						writer.WriteFlag(GumpTextColor);
						writer.Write(GumpDisplayPercent);
						writer.Write(GumpDisplayText);
					}
					goto case 0;
				case 0:
					{
						writer.Write(PositionCommand);
						writer.Write(ToggleCommand);
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:RuneUO,代码行数:29,代码来源:SystemOpts.cs

示例9: Serialize

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

			int version = writer.SetVersion(0);

			switch (version)
			{
				case 0:
					{
						writer.Write(Text);
						writer.WriteFlag(TextColor);
						writer.Write(Scrollbar);
						writer.Write(Background);
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:18,代码来源:TextPage.cs

示例10: Serialize

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

			writer.SetVersion(0);

			writer.Write(Name);
			writer.Write(Summary);
			writer.Write(Token);
			writer.Write(Available);
			writer.Write(AutoJoin);
			writer.WriteFlag(Access);
			writer.WriteFlag(ProfanityAction);
			writer.WriteFlag(TextColor);
			writer.Write(TextHue);
			writer.Write(UserLimit);
			writer.Write(SpamDelay);

			writer.WriteBlockDictionary(
				Bans,
				(w, k, v) =>
				{
					w.Write(k);
					w.Write(v);
				});
		}
开发者ID:jasegiffin,项目名称:JustUO,代码行数:26,代码来源:Channel.cs

示例11: Serialize

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

			var 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, (w, a) => w.Write(a));
					writer.WriteBlockList(KeyWords, (w, k) => w.Write(k));

					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:Ravenwolfe,项目名称:Core,代码行数:40,代码来源:SystemOptions.cs

示例12: Serialize

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

			int version = writer.SetVersion(1);

			switch (version)
			{
				case 1:
					writer.Write(Active);
					goto case 0;
				case 0:
					{
						writer.Write(_MultiID);
						writer.Write(_Center);
						writer.WriteFlag(_Render);
						writer.Write(_Duration);
						writer.Write(_Speed);
						writer.Write(_Interval);
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:23,代码来源:GhostMulti.cs

示例13: Serialize

		public virtual void Serialize(GenericWriter writer)
		{
			int version = writer.SetVersion(7);

			if (version > 5)
			{
				writer.WriteBlock(
					w =>
					{
						if (version > 6)
						{
							Serial.Serialize(w);
						}
						else
						{
							w.WriteType(Serial, t => Serial.Serialize(w));
						}
					});
			}

			switch (version)
			{
				case 7:
				case 6:
				case 5:
					writer.Write(Hidden);
					goto case 4;
				case 4:
					writer.Write(FloorItemDelete);
					goto case 3;
				case 3:
				case 2:
					writer.Write(Gate);
					goto case 1;
				case 1:
					{
						writer.Write(Category);
						writer.Write(Ranked);
						writer.Write(InviteWhileRunning);
					}
					goto case 0;
				case 0:
					{
						if (version < 6)
						{
							writer.WriteBlock(w => w.WriteType(Serial, t => Serial.Serialize(w)));
						}

						writer.Write(DebugMode);
						writer.WriteFlag(State);
						writer.Write(Name);
						writer.Write(Description);
						writer.Write(AutoAssign);
						writer.Write(UseTeamColors);
						writer.Write(IgnoreCapacity);
						writer.Write(SubCommandPrefix);
						writer.Write(QueueAllowed);
						writer.Write(SpectateAllowed);
						writer.Write(KillPoints);
						writer.Write(PointsBase);
						writer.Write(PointsRankFactor);
						writer.Write(IdleKick);
						writer.Write(IdleThreshold);
						writer.WriteFlag(LastState);
						writer.Write(LastStateChange);
						writer.Write(LightLevel);
						writer.Write(LogoutDelay);
						writer.WriteItemList(Doors, true);

						writer.WriteBlock(w => w.WriteType(Options, t => Options.Serialize(w)));
						writer.WriteBlock(w => w.WriteType(Schedule, t => Schedule.Serialize(w)));
						writer.WriteBlock(w => w.WriteType(BattleRegion, t => BattleRegion.Serialize(w)));
						writer.WriteBlock(w => w.WriteType(SpectateRegion, t => SpectateRegion.Serialize(w)));

						writer.WriteBlockList(Teams, (w, team) => w.WriteType(team, t => team.Serialize(w)));
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:RuneUO,代码行数:79,代码来源:Battle_Serialize.cs

示例14: Serialize

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

			var version = writer.SetVersion(0);

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

					writer.Write(Timeout);
					writer.WriteFlag(NotifyAccess);
					writer.Write(NotifyStaff);
				}
					break;
			}
		}
开发者ID:Ravenwolfe,项目名称:Core,代码行数:19,代码来源:SystemOpts.cs

示例15: Serialize

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

			int version = writer.SetVersion(1);

			switch (version)
			{
				case 1:
					writer.Write(UID);
					goto case 0;
				case 0:
					{
						writer.WriteFlag(Stat);
						writer.Write(Offset);
						writer.Write(Duration);
					}
					break;
			}
		}
开发者ID:greeduomacro,项目名称:RuneUO,代码行数:20,代码来源:StatOffset.cs


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