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

player_ranks

Vars

donator_controllerThe donator player rank controller.
mentor_controllerThe mentor player rank controller.
veteran_controllerThe veteran player rank controller.

Procs

add_player_rank_sqlHandles adding the ckey to the appropriate player rank table on the database, as well as in-game.
add_player_to_groupHandles adding the ckey to the proper player rank group, either on the database or in the legacy system.
get_controller_for_groupAllows fetching the appropriate player_rank_controller based on its rank_title, for convenience.
is_donatorReturns whether or not the user is qualified as a donator.
is_mentorReturns whether or not the user is qualified as a mentor. Wrapper for the is_mentor() proc on the client, with a null check.
is_veteranReturns whether or not the user is qualified as a veteran.
load_donatorsHandles loading donators either via SQL or using the legacy system, based on configs.
load_mentorsHandles loading mentors either via SQL or using the legacy system, based on configs.
load_player_rank_sqlHandles populating the player rank from the database.
load_veteransHandles loading veteran players either via SQL or using the legacy system, based on configs.
migrate_player_rank_to_sqlHandles migrating a player rank system from the legacy system to the SQL-based version, from its rank_title
migrate_player_rank_to_sql_from_controllerHandles migrating the ckeys of the players that were stored in a legacy player rank system into the SQL-based one instead. It will ensure to only add ckeys that were not already present in the database.
remove_player_from_groupHandles removing the ckey from the proper player rank group, either on the database or in the legacy system.
remove_player_rank_sqlHandles removing the ckey from the appropriate player rank table on the database, as well as in-game.
update_all_prefs_donator_statusHandles updating all of the preferences datums to have the appropriate donator_status and max_save_slots once donators are loaded.
update_prefs_donator_statusUpdates the donator_status and the max_save_slots

Var Details

donator_controller

The donator player rank controller.

mentor_controller

The mentor player rank controller.

veteran_controller

The veteran player rank controller.

Proc Details

add_player_rank_sql

Handles adding the ckey to the appropriate player rank table on the database, as well as in-game.

Arguments:

add_player_to_group

Handles adding the ckey to the proper player rank group, either on the database or in the legacy system.

Arguments:

get_controller_for_group

Allows fetching the appropriate player_rank_controller based on its rank_title, for convenience.

is_donator

Returns whether or not the user is qualified as a donator.

Arguments:

is_mentor

Returns whether or not the user is qualified as a mentor. Wrapper for the is_mentor() proc on the client, with a null check.

Arguments:

is_veteran

Returns whether or not the user is qualified as a veteran.

Arguments:

load_donators

Handles loading donators either via SQL or using the legacy system, based on configs.

load_mentors

Handles loading mentors either via SQL or using the legacy system, based on configs.

load_player_rank_sql

Handles populating the player rank from the database.

Arguments:

load_veterans

Handles loading veteran players either via SQL or using the legacy system, based on configs.

migrate_player_rank_to_sql

Handles migrating a player rank system from the legacy system to the SQL-based version, from its rank_title

Arguments:

migrate_player_rank_to_sql_from_controller

Handles migrating the ckeys of the players that were stored in a legacy player rank system into the SQL-based one instead. It will ensure to only add ckeys that were not already present in the database.

Arguments:

remove_player_from_group

Handles removing the ckey from the proper player rank group, either on the database or in the legacy system.

Arguments:

remove_player_rank_sql

Handles removing the ckey from the appropriate player rank table on the database, as well as in-game.

Arguments:

update_all_prefs_donator_status

Handles updating all of the preferences datums to have the appropriate donator_status and max_save_slots once donators are loaded.

update_prefs_donator_status

Updates the donator_status and the max_save_slots

Arguments: