/tg/ Station 13 - Modules - TypesVar Details - Proc Details

languages

Middleware to handle languages

Vars

name_to_languageA associative list of language names to their typepath

Procs

give_languageProc that gives a language to a character, granted that they don't already have too many of them, based on their maximum amount of languages.
initialize_name_to_language(Re-)Initializes the name_to_language associative list, to ensure that it's properly populated.
remove_languageProc that removes a language from a character.

Var Details

name_to_language

A associative list of language names to their typepath

Proc Details

give_language

Proc that gives a language to a character, granted that they don't already have too many of them, based on their maximum amount of languages.

Arguments:

Returns TRUE all the time, to ensure that the UI is updated.

initialize_name_to_language

(Re-)Initializes the name_to_language associative list, to ensure that it's properly populated.

remove_language

Proc that removes a language from a character.

Arguments:

Returns TRUE all the time, to ensure that the UI is updated.