public static class MapRegistry

The global map registry.

Methods

public static void Register(Map map)

Register a map. Throws an exception if a map with the same identity is already registered.


public static Map GetMap(string identity)

Returns the map with the given identity or null if nothing was found.


public static bool HasMap(string identity)

Returns true if the map with the given identity is registered, false otherwise.


public static bool TryGetMap(string identity, out Map map)

Returns true if the map exists, false otherwise. Assigns the resulting map to the outgoing argument, which will be null if nothing was found.


public static void Clear()

Clear the registry. Does not destroy anything, only clears the registry.


public static IEnumerable<Map> GetAllMaps()

Enumerate through all non-null maps


Attention!

This member is obsolete and should not be used. It is a remnant from the past.

bi bij bibi