A.4. getworld

Abstract

getworld function: GETs a pointer to a WORLD

$var = getworld( name );
 

Returns a variable that points to the open world with the given name. You can then manipulate that world with the returned variable (by calling functions that operate on worlds with that variable).

For example:

Example A.1. Quitting from another world
$coolmud = getworld("CoolMud");
$coolmud->send("quit");

This will send "quit" to the CoolMud world.