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


C# ClientMessage.PopWiredBoolean方法代码示例

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


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

示例1: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
			uint uint_ = Event.PopWiredUInt();
			bool bool_ = Event.PopWiredBoolean();
			bool flag = Event.PopWiredBoolean();

            if (uint_ == Session.GetHabbo().CurrentRoomId)
            {
                return;
            }
           
            RoomData @class = Essential.GetGame().GetRoomManager().method_12(uint_);
			if (@class != null)
			{
                ServerMessage Message = new ServerMessage(Outgoing.GetGuestRoomResult); // Updated
                Message.AppendBoolean(false);
                Message.AppendUInt(@class.Id);
                Message.AppendBoolean(false);
                Message.AppendString(@class.Name);
                Message.AppendBoolean(true);
                Message.AppendInt32(@class.OwnerId);
                Message.AppendStringWithBreak(@class.Owner);
                Message.AppendInt32(@class.State); // @class state
                Message.AppendInt32(@class.UsersNow);
                Message.AppendInt32(@class.UsersMax);
                Message.AppendStringWithBreak(@class.Description);
                Message.AppendInt32(0); // dunno!
                Message.AppendInt32((@class.Category == 9) ? 2 : 0); // can trade!
                Message.AppendInt32(@class.Score);
                Message.AppendInt32(@class.Category);
                Message.AppendInt32(0);
                Message.AppendInt32(0);
                Message.AppendStringWithBreak("");
                Message.AppendInt32(@class.TagCount);

                foreach (string Tag in @class.Tags)
                {
                    Message.AppendStringWithBreak(Tag);
                }
                Message.AppendInt32(0);
                Message.AppendInt32(0);
                Message.AppendInt32(0);
                Message.AppendBoolean(true);
                Message.AppendBoolean(false);
                Message.AppendBoolean(true);
                Message.AppendString("");
                Message.AppendBoolean(false);
				Session.SendMessage(Message);
          
                Session.GetClientMessageHandler().method_5(@class.Id, "");

			}
		}
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:53,代码来源:GetGuestRoomMessageEvent.cs

示例2: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
			Room @class = Essential.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
			if (@class != null && @class.method_26(Session))
			{
				string string_ = Event.PopFixedString();
                bool canletin = Event.PopWiredBoolean();
				GameClient class2 = Essential.GetGame().GetClientManager().GetClientByHabbo(string_);
				if (class2 != null && class2.GetHabbo() != null && class2.GetHabbo().bool_6 && class2.GetHabbo().uint_2 == Session.GetHabbo().CurrentRoomId)
				{
					if (canletin)
					{
						class2.GetHabbo().bool_5 = true;
                        ServerMessage Message4 = new ServerMessage(Outgoing.FlatAccessible); // Updated
                        Message4.AppendString("");
                        class2.SendMessage(Message4);
					}
					else
					{
                        ServerMessage Message5 = new ServerMessage(Outgoing.DoorBellNoPerson); // Updated
                        Message5.AppendString("");
                        class2.SendMessage(Message5);
					}
				}
			}
		}
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:26,代码来源:LetUserInMessageEvent.cs

示例3: Handle

        public void Handle(GameClient Session, ClientMessage Event)
        {
            bool accept = Event.PopWiredBoolean();
            if (!accept)
            {

                Essential.GetGame().GetGuideManager().GetTicket(Session.GetHabbo().Id).SendToTicket(Essential.GetGame().GetGuideManager().DetachedMessage);
                Essential.GetGame().GetGuideManager().RemoveTicket(Session.GetHabbo().Id);
                Essential.GetGame().GetGuideManager().GetGuideById(Session.GetHabbo().Id).IsInUse = false;
                return;
            }
            ServerMessage Message = new ServerMessage(Outgoing.GuideSessionStarted); //Rootkit
            Essential.GetGame().GetGuideManager().GetTicket(Session.GetHabbo().Id).Serialize(Message);
            Essential.GetGame().GetGuideManager().GetTicket(Session.GetHabbo().Id).Answered = true;
            Essential.GetGame().GetGuideManager().GetTicket(Session.GetHabbo().Id).SendToTicket(Message);
        }
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:16,代码来源:AcceptOrDeclineGuideRequestEvent.cs

示例4: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
            try
            {
                int pageId = Event.PopWiredInt32();
                uint itemId = Event.PopWiredUInt();
                string extraData = Event.PopFixedString();
                string giftUser = Essential.FilterString(Event.PopFixedString());
                string giftMessage = Essential.FilterString(Event.PopFixedString());
                int giftSpriteId = Event.PopWiredInt32();
                int giftLazo = Event.PopWiredInt32();
                int giftColor = Event.PopWiredInt32();
                bool undef = Event.PopWiredBoolean();
                Essential.GetGame().GetCatalog().HandlePurchase(Session, pageId, itemId, extraData, true, giftUser, giftMessage, true, 0, undef);
            }catch(Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
            }
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:19,代码来源:PurchaseFromCatalogAsGiftEvent.cs

示例5: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
			if (Session.GetHabbo().GetMessenger() != null)
			{
				bool AllRequestDecline = Event.PopWiredBoolean();
				int num2 = Event.PopWiredInt32();
                if (AllRequestDecline == false && num2 == 1)
				{
					uint uint_ = Event.PopWiredUInt();
					Session.GetHabbo().GetMessenger().method_11(uint_);
				}
				else
				{
                    if (AllRequestDecline == true)
					{
						Session.GetHabbo().GetMessenger().method_10();
					}
				}
			}
		}
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:20,代码来源:DeclineBuddyMessageEvent.cs

示例6: Handle

        public void Handle(GameClient Session, ClientMessage Event)
        {
            int guildId = Event.PopWiredInt32();
            bool flag = Event.PopWiredBoolean();
            GroupsManager guild = Groups.GetGroupById(guildId);
           /* if (!guild.UserWithRanks.Contains((int)Session.GetHabbo().Id))
                return;*/
            if (guild != null)
            {
                RoomData data = Essential.GetGame().GetRoomManager().method_11((uint)guild.RoomId);
                if (data != null)
                {
                    ServerMessage message;
                    if (!flag)
                    {
                        try
                        {
                            message = new ServerMessage(Outgoing.SendAdvGroupInit);
                            message.AppendInt32(guild.Id);
                            message.AppendBoolean(true);
                            message.AppendInt32(guild.Type);
                            message.AppendString(guild.Name);
                            message.AppendString(guild.Description);
                            message.AppendString(guild.Badge);
                            message.AppendInt32(data.Id);
                            message.AppendString(data.Name);
                            if (guild.Petitions.Contains((int)Session.GetHabbo().Id))
                                message.AppendInt32(2);
                            else if (!guild.HasMember(Session.GetHabbo().Id))
                                message.AppendInt32(0);
                            else if (guild.HasMember(Session.GetHabbo().Id))
                                message.AppendInt32(1);
                            message.AppendInt32(guild.Members.Count);
                            message.AppendBoolean(false);
                            message.AppendString(guild.Created);

                            message.AppendBoolean(guild.UserWithRanks.Contains((int)Session.GetHabbo().Id));//Session.GetHabbo().Id == guild.OwnerId);

                            if (Session.GetHabbo().InGuild(guild.Id))
                            {
                                if (guild.UserWithRanks.Contains((int)Session.GetHabbo().Id))
                                    message.AppendBoolean(true);
                                else message.AppendBoolean(false);
                            }
                            else message.AppendBoolean(false);
                            message.AppendString(guild.OwnerName);
                            message.AppendBoolean(false);
                            message.AppendBoolean(false);
                            message.AppendInt32(guild.Petitions.Count);
                            Session.SendMessage(message);
                        }
                        catch { }
                    }
                    else
                    {
                        try
                        {
                            message = new ServerMessage(Outgoing.SendAdvGroupInit);
                            message.AppendInt32(guild.Id);
                            message.AppendBoolean(false);
                            message.AppendInt32(guild.Type);
                            message.AppendString(guild.Name);
                            message.AppendString(guild.Description);
                            message.AppendString(guild.Badge);
                            message.AppendInt32(data.Id);
                            message.AppendString(data.Name);
                            if (guild.Petitions.Contains((int)Session.GetHabbo().Id))
                                message.AppendInt32(2);
                            else if (!guild.HasMember(Session.GetHabbo().Id))
                                message.AppendInt32(0);
                            else if (guild.HasMember(Session.GetHabbo().Id))
                                message.AppendInt32(1);
                            message.AppendInt32(guild.Members.Count);
                            message.AppendBoolean(false);
                            message.AppendString(guild.Created);
                            message.AppendBoolean(Session.GetHabbo().Id == guild.OwnerId);
                            if (Session.GetHabbo().InGuild(guild.Id))
                            {
                                if (guild.UserWithRanks.Contains((int)Session.GetHabbo().Id))
                                    message.AppendBoolean(true);
                                else message.AppendBoolean(false);
                            }
                            else message.AppendBoolean(false);
                            message.AppendString(guild.OwnerName);
                            message.AppendBoolean(true);
                            message.AppendBoolean(true);
                            message.AppendInt32(guild.Members.Contains((int)Session.GetHabbo().Id) ? guild.Petitions.Count : 0);
                            Session.SendMessage(message);
                        }
                        catch (Exception ex)
                        {
                            Console.WriteLine(ex.ToString());
                        }
                    }
                }else
                    Console.WriteLine("Roomdata for room: " + guild.RoomId + " was null");

            }else if(guildId != 1)
                Console.WriteLine("Null group");
        }
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:100,代码来源:GuildInfoMessageEvent.cs

示例7: Handle

        public void Handle(GameClient Session, ClientMessage Event)
        {
            try
            {
                int num = Event.PopWiredInt32();
                bool flag = Event.PopWiredBoolean();
                DataRow habbo = null;
                DataRow userStats = null;
                DataTable userGroups = null;
                int Friends = 0;
                using (DatabaseClient dbClient = Essential.GetDatabase().GetClient())
                {
                    habbo = dbClient.ReadDataRow("SELECT * FROM users WHERE Id=" + num + " LIMIT 1");
                    userStats = dbClient.ReadDataRow("SELECT * FROM user_stats WHERE id=" + num + " LIMIT 1");
                    userGroups = dbClient.ReadDataTable("SELECT groupid FROM group_memberships WHERE userid=" + num);
                    Friends = dbClient.ReadInt32("SELECT COUNT(*) FROM messenger_friendships WHERE user_one_id=" + num);
                }

                if (habbo == null)
                {
                    Session.SendNotification("No Data found for User: " + num);
                }
                else
                {
                        DataRow Info;
                        TimeSpan span = (TimeSpan)(DateTime.Now - UnixTimeStampToDateTime(double.Parse((string)habbo["last_online"])));
                        List<GroupsManager> list = new List<GroupsManager>();
                        foreach(DataRow guild2 in userGroups.Rows)
                        {
                            if (!list.Contains(Groups.GetGroupById((int)guild2["groupid"])))
                                list.Add(Groups.GetGroupById((int)guild2["groupid"]));
                        }
                        ServerMessage Response = new ServerMessage(Outgoing.ProfileInformation);
                        Response.AppendUInt((uint)habbo["id"]);
                        Response.AppendString((string)habbo["username"]);
                        Response.AppendString((string)habbo["look"]);
                        Response.AppendString((string)habbo["motto"]);
                        Response.AppendString(UnixTimeStampToDateTime(double.Parse((string)habbo["account_created"])).ToShortDateString());
                        Response.AppendInt32((int)userStats["achievementScore"]);
                        Response.AppendInt32(Friends);
                        Response.AppendBoolean(num != Session.GetHabbo().Id);
                        Response.AppendBoolean(false);
                        Response.AppendBoolean(Essential.GetGame().GetClientManager().GetClient((uint)num) != null);
                        Response.AppendInt32(list.Count);
                        int idk = 0;
                        foreach (GroupsManager guild in list)
                        {
                            if (guild != null)
                            {
                                Response.AppendInt32(guild.Id);
                                Response.AppendString(guild.Name);
                                Response.AppendString(guild.Badge);
                                Response.AppendString(guild.ColorOne);
                                Response.AppendString(guild.ColorTwo);
                                Response.AppendBoolean((int)userStats["groupid"] == guild.Id);
                            }
                            else
                            {
                                Response.AppendInt32(idk);
                                Response.AppendString("Undefined");
                                Response.AppendString("");
                                Response.AppendString("bf2222");
                                Response.AppendString("bf2222");
                                Response.AppendBoolean(false);
                            }
                            idk++;
                        }
                        Response.AppendBoolean(false);
                        Response.AppendInt32((int)span.TotalSeconds);//(int)span.TotalSeconds);
                        Response.AppendBoolean(true);
                        Session.SendMessage(Response);
                    }
            }
            catch(Exception ex)
            {
               /* Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine(ex.ToString());
                Console.ForegroundColor = ConsoleColor.Gray;*/
            }
        }
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:80,代码来源:GetUserProfileEvent.cs

示例8: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
            Room room = Session.GetHabbo().CurrentRoom;
            RoomData roomData = room.RoomData;
            if ((room != null) && room.CheckRights(Session, true))
            {
                int num = Event.PopWiredInt32();
                string str = Essential.FilterString(Event.PopFixedString());
                string str2 = Essential.FilterString(Event.PopFixedString());
                int num2 = Event.PopWiredInt32();
                string str3 = Essential.FilterString(Event.PopFixedString());
                int num3 = Event.PopWiredInt32();
                int id = Event.PopWiredInt32();
                int num5 = Event.PopWiredInt32();
                List<string> tags = new List<string>();
                StringBuilder builder = new StringBuilder();
                for (int i = 0; i < num5; i++)
                {
                    if (i > 0)
                    {
                        builder.Append(",");
                    }
                    string item = Essential.FilterString(Event.PopFixedString().ToLower());
                    tags.Add(item);
                    builder.Append(item);
                }
                int num7 = Event.PopWiredInt32();
                bool k = Event.PopWiredBoolean();
                bool flag2 = Event.PopWiredBoolean();
                bool flag3 = Event.PopWiredBoolean();
                bool flag4 = Event.PopWiredBoolean();
                int num8 = Event.PopWiredInt32();
                int num9 = Event.PopWiredInt32();
                if ((num8 < -2) || (num8 > 1))
                {
                    num8 = 0;
                }
                if ((num9 < -2) || (num9 > 1))
                {
                    num9 = 0;
                }
                if (((str.Length >= 1) && ((num2 >= 0) && (num2 <= 2))) && ((num3 >= 10) && (num3 <= 500)))
                {
                    FlatCat flatCat = Essential.GetGame().GetNavigator().GetFlatCat(id);
                    if (flatCat != null)
                    {
                        if (flatCat.MinRank > Session.GetHabbo().Rank)
                        {
                            Session.SendNotification("Du hast nicht die dafür vorgegebene Rechte!");
                            id = 0;
                        }
                            room.AllowPet = k;
                            room.AllowPetsEating = flag2;
                            room.AllowWalkthrough = flag3;
                            room.Hidewall = flag4;
                            room.RoomData.AllowPet = k;
                            room.RoomData.AllowPetsEating = flag2;
                            room.RoomData.AllowWalkthrough = flag3;
                            room.RoomData.Hidewall = flag4;
                            room.Name = str;
                            room.State = num2;
                            room.Description = str2;
                            room.Category = id;
                            room.Password = str3;
                            room.RoomData.Name = str;
                            room.RoomData.State = num2;
                            room.RoomData.Description = str2;
                            room.RoomData.Category = id;
                            room.RoomData.Password = str3;
                            room.Tags.Clear();
                            room.Tags.AddRange(tags);
                            room.UsersMax = num3;
                            room.RoomData.Tags.Clear();
                            room.RoomData.Tags.AddRange(tags);
                            room.RoomData.UsersMax = num3;
                            room.Wallthick = num8;
                            room.Floorthick = num9;
                            room.RoomData.Wallthick = num8;
                            room.RoomData.Floorthick = num9;
                            string str5 = "open";
                            if (room.State == 1)
                            {
                                str5 = "locked";
                            }
                            else if (room.State > 1)
                            {
                                str5 = "password";
                            }
                            using (DatabaseClient adapter = Essential.GetDatabase().GetClient())
                            {
                                adapter.AddParamWithValue("caption", room.Name);
                                adapter.AddParamWithValue("description", room.Description);
                                adapter.AddParamWithValue("password", room.Password);
                                adapter.AddParamWithValue("tags", builder.ToString());
                                adapter.ExecuteQuery(string.Concat(new object[] { 
                                    "UPDATE rooms SET caption = @caption, description = @description, password = @password, category = '", id, "', state = '", str5, "', tags = @tags, users_max = '", num3, "', allow_pets = '", (k ? 1 : 0), "', allow_pets_eat = '", (flag2 ? 1 : 0), "', allow_walkthrough = '", (flag3 ? 1 : 0), "', allow_hidewall = '", (room.Hidewall ? 1 : 0), "', floorthick = '", room.Floorthick, 
                                    "', wallthick = '", room.Wallthick, "' WHERE id = ", room.Id
                                 }));
                            }

//.........这里部分代码省略.........
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:101,代码来源:SaveRoomSettingsMessageEvent.cs

示例9: Handle

        public void Handle(GameClient Session, ClientMessage Event)
        {
            try
            {
                Room @class = Essential.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                uint uint_ = Event.PopWiredUInt();
                RoomItem class2 = @class.method_28(uint_);
                string text = class2.GetBaseItem().InteractionType.ToLower();
                switch (text)
                {
                    case "wf_act_give_phx":
                        {
                            Event.PopWiredInt32();
                            string text2 = Event.PopFixedString();
                            text2 = Essential.DoFilter(text2, false, true);
                            text2 = ChatCommandHandler.ApplyFilter(text2);
                            if (!(text2 == class2.string_2))
                            {
                                string string_ = text2.Split(new char[]
						{
							':'
						})[0].ToLower();
                                if (Essential.GetGame().GetRoleManager().HasSuperWiredFXFuse(string_, Session))
                                {
                                    class2.string_2 = text2;
                                }
                                else
                                {
                                    Session.GetHabbo().Whisper(EssentialEnvironment.GetExternalText("wired_error_permissions"));
                                }
                            }
                            break;
                        }
                    case "wf_cnd_phx":
                        {
                            Event.PopWiredInt32();
                            string text2 = Event.PopFixedString();
                            text2 = Essential.DoFilter(text2, false, true);
                            text2 = ChatCommandHandler.ApplyFilter(text2);
                            if (!(text2 == class2.string_2))
                            {
                                string string_ = text2.Split(new char[]
						        {
							        ':'
						        })[0].ToLower();
                                if (Essential.GetGame().GetRoleManager().HasSuperWiredcndFuse(string_, Session))
                                {
                                    class2.string_2 = text2;
                                }
                                else
                                {
                                    Session.GetHabbo().Whisper(EssentialEnvironment.GetExternalText("wired_error_permissions"));
                                }
                            }
                            break;
                        }
                    case "wf_act_saymsg":
                        {
                            Event.PopWiredInt32();
                            string text2 = Event.PopFixedString();
                            text2 = Essential.DoFilter(text2, false, true);
                            if (text2.Length > 100)
                            {
                                text2 = text2.Substring(0, 100);
                            }
                            class2.string_2 = text2;
                            break;
                        }
                    case "wf_act_kick_user":
                        {
                            Event.PopWiredInt32();
                            string text2 = Event.PopFixedString();
                            text2 = Essential.DoFilter(text2, false, true);
                            if (text2.Length > 200)
                            {
                                text2 = text2.Substring(0, 200);
                            }
                            class2.string_2 = text2;
                            break;
                        }
                    case "wf_trg_furnistate":
                    case "wf_trg_onfurni":
                    case "wf_trg_offfurni":
                    case "wf_act_moveuser":
                    case "wf_act_togglefurni":
                        {
                            Event.PopWiredInt32();
                           Event.PopFixedString();
                        /*    class2.string_2 = Event.ToString().Substring(Event.Length - (Event.RemainingLength - 2));
                            class2.string_2 = class2.string_2.Substring(0, class2.string_2.Length - 2);
                            Event.ResetPointer();
                            class2 = @class.method_28(Event.PopWiredUInt());
                            Event.PopWiredBoolean();
                            Event.PopFixedString();
                            */
                            int num2 = Event.PopWiredInt32();
                            class2.string_3 = "";
                            for (int i = 0; i < num2; i++)
                            {
                                class2.string_3 = class2.string_3 + "," + Convert.ToString(Event.PopWiredUInt());
//.........这里部分代码省略.........
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:101,代码来源:UpdateActionMessageEvent.cs

示例10: Handle

		public void Handle(GameClient Session, ClientMessage Event)
		{
			int num = Event.PopWiredInt32();
            bool InWindow = false;
            InWindow = Event.PopWiredBoolean();
            string OwnerName = "Rootkit";
			if (num > 0 && (Session != null && Session.GetHabbo() != null))
			{
				GroupsManager @class = Groups.GetGroupById(num);
				if (@class != null)
				{
                    ServerMessage Message = new ServerMessage(Outgoing.GroupInfo); // Updated
					Message.AppendInt32(@class.Id);
                    Message.AppendBoolean(true);
                    Message.AppendInt32(@class.Locked == "open" ? 0 : 1);
					Message.AppendStringWithBreak(@class.Name);
                    Message.AppendStringWithBreak(@class.Description);
                    Message.AppendStringWithBreak(@class.Badge);
                    using (DatabaseClient dbClient = Essential.GetDatabase().GetClient())
						{
                            OwnerName = dbClient.ReadString("SELECT username FROM users WHERE id = '" + @class.OwnerId + "' LIMIT 1");
                        }
                    if (@class.RoomId > 0u)
					{
                        Message.AppendUInt(@class.RoomId);
                        if (Essential.GetGame().GetRoomManager().GetRoom(@class.RoomId) != null)
						{
                            Message.AppendStringWithBreak(Essential.GetGame().GetRoomManager().GetRoom(@class.RoomId).Name);
							goto IL_15A;
						}
						using (DatabaseClient class2 = Essential.GetDatabase().GetClient())
						{
							try
							{
                                DataRow dataRow_ = class2.ReadDataRow("SELECT * FROM rooms WHERE Id = " + @class.RoomId + " LIMIT 1;");
                                string string_ = Essential.GetGame().GetRoomManager().method_17(@class.RoomId, dataRow_).Name;
								Message.AppendStringWithBreak(string_);
							}
							catch
							{
								Message.AppendInt32(-1);
								Message.AppendStringWithBreak("");
							}
							goto IL_15A;
						}
					}
					Message.AppendInt32(-1);
					Message.AppendStringWithBreak("");
					IL_15A:
					bool flag = false;
					foreach (DataRow dataRow in Session.GetHabbo().dataTable_0.Rows)
					{
						if ((int)dataRow["groupid"] == @class.Id)
						{
							flag = true;
						}
					}
					if (Session.GetHabbo().list_0.Contains(@class.Id))
					{
						Message.AppendInt32(2);
					}
					else
					{
						if (flag)
						{
							Message.AppendInt32(1);
						}
						else
						{
                      
								if (@class.Members.Contains((int)Session.GetHabbo().Id))
								{
									Message.AppendInt32(1);
								}
								else
								{
									Message.AppendInt32(0);
								}
							
						}
					}
					Message.AppendInt32(@class.Members.Count);

						Message.AppendBoolean(true);
				
                    Message.AppendString(@class.Created);
                    Message.AppendBoolean((@class.OwnerId == Session.GetHabbo().Id));
                    Message.AppendBoolean(false);
                    Message.AppendString(OwnerName);
                    Message.AppendBoolean(InWindow);
                    Message.AppendBoolean(true);
                    Message.AppendInt32(0); // Pending
					Session.SendMessage(Message);
				}
			}
		}
开发者ID:RootkitR,项目名称:Essential-5.1,代码行数:96,代码来源:GetHabboGroupDetailsMessageEvent.cs


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