本文整理汇总了C#中Client.SetWorld方法的典型用法代码示例。如果您正苦于以下问题:C# Client.SetWorld方法的具体用法?C# Client.SetWorld怎么用?C# Client.SetWorld使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Client
的用法示例。
在下文中一共展示了Client.SetWorld方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AFK
static void AFK(Client player, string[] cmd, int iarg)
{
if (Banned.CheckBanned(player) != null)
return;
player.SetWorld(World.AFK);
}
示例2: ToHardcore
static void ToHardcore(Client player, string[] cmd, int iarg)
{
player.SetWorld(World.VanillaWorlds ["hardcore"]);
}
示例3: TheEnd
static void TheEnd(Client player, string[] cmd, int iarg)
{
player.Queue.Queue(new ChangeGameState(GameState.EndText));
player.SetWorld(World.Void);
}
示例4: ToIsland
static void ToIsland(Client player, string[] cmd, int iarg)
{
player.SetWorld(World.VanillaWorlds ["island"]);
}
示例5: ToRealWorld
static void ToRealWorld(Client player, string[] cmd, int iarg)
{
//Unless the world change does not work we give them this workaround
player.TellChat(Chat.Yellow, "Please connect your minecraft to " + cmd [iarg] + ".mctraveler.eu");
return;
#pragma warning disable 162
VanillaWorld w = World.Main;
if (iarg < cmd.Length) //we got arguments
{
if (World.VanillaWorlds.ContainsKey(cmd [iarg]) == false)
throw new UsageException("No world named " + cmd [iarg]);
w = World.VanillaWorlds [cmd [iarg]];
}
player.SetWorld(w);
#pragma warning restore 162
}
示例6: ToHell
static void ToHell(Client player, string[] cmd, int iarg)
{
player.SetWorld(World.HellBanned);
}
示例7: ToConstruct
static void ToConstruct(Client player, string[] cmd, int iarg)
{
player.SetWorld(World.Construct);
}
示例8: ToGreenRoom
static void ToGreenRoom(Client player, string[] cmd, int iarg)
{
player.SetWorld(World.Wait);
}