Goonstation 13 - Modules - Types

code/modules/admin/admin.dm

/proc/get_matches_string ADMIN HELPER PROCS
/proc/get_one_match get_one_match attempts to find a type match for a given object. The function allows customization of the base type, whether to use concrete types, whether to use only admin spawnable, the comparison procedure, and the sort limit. The function sorts the matches if a comparison procedure is provided and if the sort limit condition allows it, then it presents a list of matches for the user to choose from.