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


C# Client.LongNotif方法代码示例

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


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

示例1: HandleTicket

        private void HandleTicket(Client Client, Request Request)
        {
            string Ticket = Request.PopFixedString();

            Client.ParseUser(BrickEngine.GetUserReactor().HandleTicket(Ticket));

            if (Client.IsValidUser)
            {
                if (BrickEngine.GetToolReactor().IsBanned(Client.GetUser().HabboId, Client.IPAddress))
                {
                    Client.Dispose();
                    return;
                }

                Response Userhash = new Response(439);
                Userhash.AppendStringWithBreak(Client.GetUser().Hash);
                Client.SendResponse(Userhash);

                Client.SendResponse(new Response(3));

                if (BrickEngine.GetConfigureFile().CallBooleanKey("welcomemessage.enabled"))
                {
                    Client.LongNotif(string.Empty);
                }

                Client.SendResponse(Client.GetUser().GetLoginResponse());

                Client.Authenticated = true;

                Client.SendResponse(BrickEngine.GetToolReactor().GetResponse(Client));
            }
            else
            {
                Client.Notif("Invalid Ticket, try again!", false);
                Client.Dispose();
            }
        }
开发者ID:devMextur,项目名称:BrickEmulator,代码行数:37,代码来源:Generic.cs

示例2: WhosHotelView

        private void WhosHotelView(Client Client, List<string> Params)
        {
            StringBuilder Builder = new StringBuilder();
            Builder.AppendLine(string.Format("[{0}] Users that are in the hotel.", BrickEngine.GetSocketShield().Sessions.Count));

            foreach (SocketClient sClient in BrickEngine.GetSocketShield().Sessions)
            {
                if (sClient.GetClient().GetUser().EnableShowOnline || Client.GetUser().Rank >= 7)
                {
                    if (!sClient.GetClient().GetUser().IsInRoom && (!sClient.GetClient().GetUser().EnableFollow || Client.GetUser().Rank >= 7))
                    {
                        Builder.Append(string.Format(" [{0}] {1}\r", sClient.GetClient().GetUser().Rank, sClient.GetClient().GetUser().Username));
                    }
                }
            }

            Client.LongNotif(Builder);
        }
开发者ID:devMextur,项目名称:BrickEmulator,代码行数:18,代码来源:CommandHandler.cs

示例3: WhosOnline

        private void WhosOnline(Client Client, List<string> Params)
        {
            StringBuilder Builder = new StringBuilder();
            Builder.AppendLine(string.Format("[{0}] Users that are in the hotel.", BrickEngine.GetSocketShield().Sessions.Count));

            foreach (SocketClient sClient in BrickEngine.GetSocketShield().Sessions)
            {
                Builder.Append(string.Format("[{0}] {1}\r", sClient.GetClient().GetUser().Rank, sClient.GetClient().GetUser().Username));
            }

            Client.LongNotif(Builder);
        }
开发者ID:devMextur,项目名称:BrickEmulator,代码行数:12,代码来源:CommandHandler.cs

示例4: Commands

        private void Commands(Client Client, List<string> Params)
        {
            StringBuilder Commands = new StringBuilder();

            Commands.AppendLine(string.Format("BrickEmulator [C#] ~ Commands : Rank [{0}]", Client.GetUser().Rank));

            foreach (KeyValuePair<KeyValuePair<string, string>, KeyValuePair<Handler, int>> kvp in Handlers)
            {
                if (Client.GetUser().Rank >= kvp.Value.Value)
                {
                    Commands.Append(string.Format(" {0}\r", GetParams(kvp.Key.Key)));
                }
            }

            Client.LongNotif(Commands);
        }
开发者ID:devMextur,项目名称:BrickEmulator,代码行数:16,代码来源:CommandHandler.cs


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