Пример #1
0
        string format_chat(PlayerSession session, string message, prefix titilesa)
        {
            string nameplayer   = session.Identity.Name.Replace("{", "");
            string title        = titilesa.title;
            string titlecolor   = nocolor(titilesa.titlecolor);
            string namecolor    = nocolor(titilesa.namecolor);
            string formatchat   = titilesa.Formats.formatchat;
            string messagecolor = nocolor(titilesa.messagecolor);

            if (!string.IsNullOrEmpty(clantag(session)))
            {
                formatchat = titilesa.Formats.formatchat_clan
                             .Replace("{title}", $"<color={titlecolor}>{title}</color>")
                             .Replace("{clan}", $"{clantag(session)}")

                             .Replace("{name}", $"<color={namecolor}>{nameplayer}</color>")
                             .Replace("{message}", $"<color={messagecolor}>{message}</color>");
            }
            else
            {
                formatchat = formatchat
                             .Replace("{title}", $"<color={titlecolor}>{title}</color>")
                             .Replace("{name}", $"<color={namecolor}>{nameplayer}</color>")
                             .Replace("{message}", $"<color={messagecolor}>{message}</color>");
            }
            return(formatchat);
        }
Пример #2
0
        string format_upname(PlayerSession session, prefix titilesa)
        {
            string nameplayer   = session.Identity.Name.Replace("{", "");
            string title        = titilesa.title;
            string titlecolor   = nocolor(titilesa.titlecolor);
            string namecolor    = nocolor(titilesa.namecolor);
            string formatupname = titilesa.Formats.formatupname;

            //string infamys = infamy(session);

            /*if (!formatupname.ToLower().Contains("{inf}") && C.infamy == 2)
             *  nameplayer += $"{infamys}";
             * else if (C.infamy == 1)
             *  namecolor = nameplayer;
             * else*/
            nameplayer = $"<color={namecolor}>{nameplayer}</color>";

            if (string.IsNullOrEmpty(clantag(session)))
            {
                formatupname = titilesa.Formats.formatupname_clan
                               .Replace("{title}", $"<color={titlecolor}>{title}</color>")
                               .Replace("{clan}", $"{clantag(session)}")
                               .Replace("{name}", $"{nameplayer}");

                /*if (formatupname.ToLower().Contains("{inf}") && C.infamy == 2)
                 *  formatupname = formatupname.Replace("{inf}", infamys);*/
            }
            else
            {
                formatupname = formatupname
                               .Replace("{title}", $"<color={titlecolor}>{title}</color>")
                               .Replace("{name}", $"{nameplayer}");

                /*if (formatupname.ToLower().Contains("{inf}") && C.infamy == 2)
                 *  formatupname = formatupname.Replace("{inf}", infamys);*/
            }
            return(formatupname);
        }
Пример #3
0
 FindAllChildTerms(prefix, trie, topK, ref termFrequencyCountPrefix, prefixString, results, null, pruning);
 /// <summary>
 /// Creates an HTTP or HTTPS listener on the specified port.
 /// </summary>
 /// <param name="prefix">The prefix for the service, either "http" or
 /// "https".</param>
 /// <param name="port">The port to start listening on.  If -1, the
 /// default port is used (port 80 for http, or port 443 for https).
 /// </param>
 /// <remarks>In the desktop version of .NET, the constructor for this
 /// class has no arguments.</remarks>
 public HttpListener(string prefix, int port) => InitListener(prefix, port);
Пример #5
0
 ((name, label_names) => factory.ThisOrDefault().CreateCounter(prefix + name + suffix, help, includeTimestamp, suppressEmptySamples, label_names),
Пример #6
0
 = BuildPAndInputTagHelperDescriptors(prefix: string.Empty);
Пример #7
0
 return(ToRange(prefix, STuple.Create(item1)));
Пример #8
0
 var(prefix, suffix) = prefixAndSuffix;
 public MealGenerator(string prefix, string suffix) => OverrideGenerationBase(prefix, suffix);
Пример #10
0
 var(f1, err) = writeTempFile(prefix, b1);