[This is preliminary documentation and is subject to change.]

Creates a new world and adds it to the current list of worlds being managed by WorldManager.

Namespace: fCraft
Assembly: fCraft (in fCraft.dll) Version: 0.6.3.0 (0.6.3.0)

Syntax

   
 C# 
public static World AddWorld(
	Player player,
	string name,
	Map map,
	bool preload
)

Parameters

player
Player
Player who is adding the world. May be null.
name
String
Name of the world being added. May NOT be null.
map
Map
Map to assign to the newly created world. May be null.
preload
Boolean
Whether or not the map should be preloaded.

Return Value

Newly-created world.

Exceptions

ExceptionCondition
System..::..ArgumentNullException If name is null.
fCraft..::..WorldOpException If world name was invalid, a world with this name already exists, or if an event callback canceled the addition.

See Also