本文整理汇总了C#中Rant.Engine.Sandbox.Print方法的典型用法代码示例。如果您正苦于以下问题:C# Sandbox.Print方法的具体用法?C# Sandbox.Print怎么用?C# Sandbox.Print使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Rant.Engine.Sandbox
的用法示例。
在下文中一共展示了Sandbox.Print方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Bullet
private static void Bullet(Sandbox sb) => sb.Print("\x2022");
示例2: Emdash
private static void Emdash(Sandbox sb) => sb.Print("\x2014");
示例3: Endash
private static void Endash(Sandbox sb) => sb.Print("\x2013");
示例4: RegisteredTrademark
private static void RegisteredTrademark(Sandbox sb) => sb.Print("\x00ae");
示例5: Copyright
private static void Copyright(Sandbox sb) => sb.Print("\x00a9");
示例6: Number
private static void Number(Sandbox sb,
[RantDescription("The minimum value of the number to generate.")]
int min,
[RantDescription("The maximum value of the number to generate.")]
int max)
{
sb.Print(sb.RNG.Next(min, max + 1));
}
示例7: Len
private static void Len(Sandbox sb,
[RantDescription("The channel for which to retrieve the length.")]
string channelName)
{
sb.Print(sb.Output.GetChannelLength(channelName));
}
示例8: IndexOne
private static void IndexOne(Sandbox sb)
{
if (!sb.Blocks.Any()) return;
sb.Print(sb.Blocks.Peek().Index + 1);
}
示例9: Match
private static void Match(Sandbox sb)
{
if (!sb.RegexMatches.Any()) return;
sb.Print(sb.RegexMatches.Peek().Value);
}
示例10: RepQueued
private static void RepQueued(Sandbox sb)
{
if (!sb.Blocks.Any()) return;
var block = sb.Blocks.Peek();
sb.Print(block.Count - (block.Iteration - 1));
}
示例11: Depth
private static void Depth(Sandbox sb)
{
sb.Print(sb.Blocks.Count);
}
示例12: RepCount
private static void RepCount(Sandbox sb)
{
if (!sb.Blocks.Any()) return;
sb.Print(sb.Blocks.Peek().Count);
}
示例13: RepElapsed
private static void RepElapsed(Sandbox sb)
{
if (!sb.Blocks.Any()) return;
sb.Print(sb.Blocks.Peek().Iteration - 1);
}
示例14: Eszett
private static void Eszett(Sandbox sb) => sb.Print("\x00df");
示例15: Group
private static void Group(Sandbox sb,
[RantDescription("The name of the match group whose value will be retrieved.")]
string groupName)
{
if (!sb.RegexMatches.Any()) return;
sb.Print(sb.RegexMatches.Peek().Groups[groupName].Value);
}