Goonstation 13 - Modules - TypesVar Details - Proc Details

/datum/player

for client variables and stuff that has to persist between connections

Vars

cached_jobbansCache jobbans here to speed things up massively
ckeythe ckey of the client object that this datum is attached to
clientthe client object that this datum is attached to
clients_posposition of client in in global.clients
clouddatasaved data from the cloud (spacebux, volume settings, ...)
cloudsavessaved profiles from the cloud
cooldownsa list of cooldowns that has to persist between connections
current_playtimethe total time that this player has been playing the game this round, in 1/10ths of a second
keythe key of the client object that this datum is attached to
mentorare they a mentor?
round_join_timethe server time that this player joined the game, in 1/10ths of a second
round_leave_timethe server time that this player left the game, in 1/10ths of a second
rounds_participatedhow many rounds (total) theyve declared ready and joined, null with to differentiate between not set and no participation
rounds_participated_rphow many rounds (rp only) theyve declared ready and joined, null with to differentiate between not set and no participation
rounds_seenhow many rounds (total) theyve joined to at least the lobby in, null to differentiate between not set and not seen
rounds_seen_rphow many rounds (rp only) theyve joined to at least the lobby in, null to differentiate between not set and not seen
see_mentor_pmsdo we want to see mentor pms?
shamecubedto make sure that they cant escape being shamecubed by just reconnecting

Procs

Newsets up vars, caches player stats, adds by_type list entry for this datum
cache_round_statsqueries api to cache stats so its only done once per player per round (please update this proc when adding more player stat vars)
calculate_played_timeadds the calculated playtime (in 1/10ths of a second) to the playtime variable
cloud_availableReturns 1 if you can set or retrieve cloud data on the client
cloud_fetchDownloads cloud data from goonhub
cloud_fetch_target_ckeyReturns cloud data and saves from goonhub for the target ckey in list form
cloud_fetch_target_data_onlyreturns the clouddata of a target ckey in list form
cloud_fetch_target_saves_onlyreturns the cloudsaves of a target ckey in list form
cloud_getReturns some cloud data on the client
cloud_get_targetReturns some cloud data on the provided target ckey
cloud_putSets a cloud key value pair and sends it to goonhub
cloud_put_targetSets a cloud key value pair and sends it to goonhub for a target ckey
disposingremoves by_type list entry for this datum, clears dangling references
get_round_statsreturns an assoc list of cached player stats (please update this proc when adding more player stat vars)
get_rounds_participatedreturns the number of rounds that the player has played by joining in at roundstart
get_rounds_seenreturns the number of rounds that the player has at least joined the lobby in
log_join_timesets the join time to the current server time, in 1/10ths of a second
log_leave_timesets the leave time to the current server time, in 1/10ths of a second

Var Details

cached_jobbans

Cache jobbans here to speed things up massively

ckey

the ckey of the client object that this datum is attached to

client

the client object that this datum is attached to

clients_pos

position of client in in global.clients

clouddata

saved data from the cloud (spacebux, volume settings, ...)

cloudsaves

saved profiles from the cloud

cooldowns

a list of cooldowns that has to persist between connections

current_playtime

the total time that this player has been playing the game this round, in 1/10ths of a second

key

the key of the client object that this datum is attached to

mentor

are they a mentor?

round_join_time

the server time that this player joined the game, in 1/10ths of a second

round_leave_time

the server time that this player left the game, in 1/10ths of a second

rounds_participated

how many rounds (total) theyve declared ready and joined, null with to differentiate between not set and no participation

rounds_participated_rp

how many rounds (rp only) theyve declared ready and joined, null with to differentiate between not set and no participation

rounds_seen

how many rounds (total) theyve joined to at least the lobby in, null to differentiate between not set and not seen

rounds_seen_rp

how many rounds (rp only) theyve joined to at least the lobby in, null to differentiate between not set and not seen

see_mentor_pms

do we want to see mentor pms?

shamecubed

to make sure that they cant escape being shamecubed by just reconnecting

Proc Details

New

sets up vars, caches player stats, adds by_type list entry for this datum

cache_round_stats

queries api to cache stats so its only done once per player per round (please update this proc when adding more player stat vars)

calculate_played_time

adds the calculated playtime (in 1/10ths of a second) to the playtime variable

cloud_available

Returns 1 if you can set or retrieve cloud data on the client

cloud_fetch

Downloads cloud data from goonhub

cloud_fetch_target_ckey

Returns cloud data and saves from goonhub for the target ckey in list form

cloud_fetch_target_data_only

returns the clouddata of a target ckey in list form

cloud_fetch_target_saves_only

returns the cloudsaves of a target ckey in list form

cloud_get

Returns some cloud data on the client

cloud_get_target

Returns some cloud data on the provided target ckey

cloud_put

Sets a cloud key value pair and sends it to goonhub

cloud_put_target

Sets a cloud key value pair and sends it to goonhub for a target ckey

disposing

removes by_type list entry for this datum, clears dangling references

get_round_stats

returns an assoc list of cached player stats (please update this proc when adding more player stat vars)

get_rounds_participated

returns the number of rounds that the player has played by joining in at roundstart

get_rounds_seen

returns the number of rounds that the player has at least joined the lobby in

log_join_time

sets the join time to the current server time, in 1/10ths of a second

log_leave_time

sets the leave time to the current server time, in 1/10ths of a second