NodeServer.nodeWithName

Gets a node by its name. It can be used to transfer players to it.

class NodeServer
shared inout pure nothrow @trusted
const(Node)
nodeWithName
(
string name
)

Examples

auto lobby = server.nodeWithName("lobby");
if(lobby !is null) lobby.transfer(player);

Meta