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


C# ClientMessage.AdvancePointer方法代码示例

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


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

示例1: parse

		public void parse(GameClient Session, ClientMessage Event)
		{
			Room @class = PhoenixEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
			if (@class != null && @class.CheckRights(Session, true))
			{
				Event.PopWiredInt32();
				string text = PhoenixEnvironment.FilterInjectionChars(Event.PopFixedString());
				string text2 = PhoenixEnvironment.FilterInjectionChars(Event.PopFixedString());
				if (text2.Length > 255)
				{
					text2 = text2.Substring(0, 255);
				}
				int num = Event.PopWiredInt32();
				string text3 = PhoenixEnvironment.FilterInjectionChars(Event.PopFixedString());
				int num2 = Event.PopWiredInt32();
				int num3 = Event.PopWiredInt32();
				int num4 = Event.PopWiredInt32();
				List<string> list = new List<string>();
				StringBuilder stringBuilder = new StringBuilder();
				for (int i = 0; i < num4; i++)
				{
					if (i > 0)
					{
						stringBuilder.Append(",");
					}
					string text4 = PhoenixEnvironment.FilterInjectionChars(Event.PopFixedString().ToLower());
					if (text4 == ChatCommandHandler.ApplyWordFilter(text4))
					{
						list.Add(text4);
						stringBuilder.Append(text4);
					}
				}
				if (stringBuilder.Length > 100)
				{
					stringBuilder.Clear();
					stringBuilder.Append("");
				}
				int num5 = 0;
				int num6 = 0;
				int num7 = 0;
				int num8 = 0;
				string a = Event.PlainReadBytes(1)[0].ToString();
				Event.AdvancePointer(1);
				string a2 = Event.PlainReadBytes(1)[0].ToString();
				Event.AdvancePointer(1);
				string a3 = Event.PlainReadBytes(1)[0].ToString();
				Event.AdvancePointer(1);
				string a4 = Event.PlainReadBytes(1)[0].ToString();
				Event.AdvancePointer(1);
				int num9 = Event.PopWiredInt32();
				int num10 = Event.PopWiredInt32();
				if (!(text != ChatCommandHandler.ApplyWordFilter(text)) && !(text2 != ChatCommandHandler.ApplyWordFilter(text2)) && text.Length >= 1 && (num9 >= -2 && num9 <= 1 && num10 >= -2 && num10 <= 1))
				{
					@class.Wallthick = num9;
					@class.Floorthick = num10;
					if (num >= 0 && num <= 2 && (num2 == 10 || num2 == 15 || num2 == 20 || num2 == 25 || num2 == 30 || num2 == 35 || num2 == 40 || num2 == 45 || num2 == 50 || num2 == 55 || num2 == 60 || num2 == 65 || num2 == 70 || num2 == 75 || num2 == 80 || num2 == 85 || num2 == 90 || num2 == 95 || num2 == 100))
					{
						FlatCat class2 = PhoenixEnvironment.GetGame().GetNavigator().GetFlatCat(num3);
						if (class2 != null)
						{
							if ((long)class2.MinRank > (long)((ulong)Session.GetHabbo().Rank))
							{
								Session.SendNotif("You are not allowed to use this category. Your room has been moved to no category instead.");
								num3 = 0;
							}
							if (num4 <= 2)
							{
								if (a == "65")
								{
									num5 = 1;
									@class.AllowPet = true;
								}
								else
								{
									@class.AllowPet = false;
								}
								if (a2 == "65")
								{
									num6 = 1;
									@class.AllowPetsEating = true;
								}
								else
								{
									@class.AllowPetsEating = false;
								}
								if (a3 == "65")
								{
									num7 = 1;
									@class.AllowWalkthrough = true;
								}
								else
								{
									@class.AllowWalkthrough = false;
								}
								@class.GenerateMaps();
								if (a4 == "65")
								{
									num8 = 1;
									@class.Hidewall = true;
								}
//.........这里部分代码省略.........
开发者ID:neto737,项目名称:Phoenix_3.0,代码行数:101,代码来源:SaveRoomSettingsMessageEvent.cs


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