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

The World type exposes the following methods.

Methods

 Public

 Protected
 Instance

 Static
 Declared

 Inherited
 XNA Framework Only

 .NET Compact Framework Only

 MemberDescription
AcceptPlayer(Player, Boolean)
ChangeMap(Map)
Creates a new World for the given Map, with same properties as this world.
CountPlayers(Boolean)
Counts all players (optionally includes all hidden players).
CountVisiblePlayers(Player)
Counts only the players who are not hidden from a given observer.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
FindPlayerExact(String)
Gets player by name (without autocompletion)
FindPlayers(Player, String)
Flush()()()()
Intiates a map flush, in which all block drawings are completed. All users are held in limbo until completion, and then resent the map.
GenerateWoMConfig(Boolean)
Creates a WOM configuration string.
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetNextPatrolTarget(Player)
Selects the next player to teleport to while patroling. Sets target's LastPatrolTime automatically.
GetNextPatrolTarget(Player, Predicate<(Of <<'(Player>)>>), Boolean)
Selects the next player to teleport to while patroling. Includes additional inclusion check (predicate).
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
IsValidName(String)
Ensures that player name has the correct length (2-16 characters) and character set (alphanumeric chars and underscores allowed).
LoadMap()()()()
Loads the map file, if needed. Generates a default map if mapfile is missing or not loadable. Guaranteed to return a Map object.
Lock(Player)
Locks the current world, which prevents blocks in the world from being updated.
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ReleasePlayer(Player)
SaveBackup(String)
SaveMap()()()()
Forces the map to be saved to file. Acquires SyncRoot.
ToString()()()() (Overrides Object..::..ToString()()()().)
Unlock(Player)
Unlocks the current world, which allows blocks in the world to be changed once more.
UpdatePlayerList()()()()
Caches the player list to an array (Players -> PlayerList)

See Also