[Package Index | Mudlib Index | Effect Index]
Usage: call add_mapping(from, to) /global/cloner
.
int add_illegal(string basename, string short, string replacement)This method is used to add objects that we don't want to be reloaded. This is for those objects that are clones of /std/object or /obj/armour or something but which are wrongly configured.
add_illegal("/obj/armour", "blue robe", "/obj/armours/robe.arm);
int add_mapping(string from, string to)Use this function to add a new mapping of one filename to another. Means that if an object of type 'from' is attempted to be cloned an object of type 'to' will be cloned instead.
object clone(string word)Try and clone the passed in object. If the name exists in the changes array then the new file name is cloned instead of the old one.
string illegal_thing(string basename, string short)Determine if a given object is illegal.
string list_mappings(string str)This method returns a list of all the current mappings. If a pattern is given, then only files which contain that string will be returned.
void load_file()Loads the current configuration.
string other_file(string word)This method returns the mapped name of the object. If no mapping exists the passed in value is returned directly.
mapping query_changes()This method returns the list of currently moved objects.
mapping query_illegal()List the illegal objects.
int remove_illegal(string basename, string short)Remove an item from the illegal array
int remove_mapping(string from)Removes a mapping from the object. This looks to see if an mapping exists for the object and removes it if it does.
void save_file()Saves the current configuration.