Crossfire Server, Trunk  R20739
account_struct Struct Reference
+ Collaboration diagram for account_struct:

Data Fields

char * character_names [MAX_CHARACTERS_PER_ACCOUNT+1]
 
time_t created
 
time_t last_login
 
char * name
 
struct account_structnext
 
int num_characters
 
char * password
 

Detailed Description

Structure that holds account data. This is basically in game representation of the data store in the file above. Note that there is no field here for the expansion area - if that gets used, then almost certainly the values will be extracted and stored into new fields in this structure, and not just a character that contains the data in an unprocessed form, eg, a int dm field could get added. all char* data here is from strdup_local(), and thus the shared string comparisons/functions should not be used on it.

Definition at line 76 of file account.c.

Field Documentation

◆ character_names

char* account_struct::character_names[MAX_CHARACTERS_PER_ACCOUNT+1]

Character names associated with this account +1 added to allow for NULL termination

Definition at line 81 of file account.c.

Referenced by account_get_account_for_char(), account_get_players_for_account(), account_link(), account_new(), account_remove_player(), account_write_entry(), and accounts_load().

◆ created

time_t account_struct::created

When character was created

Definition at line 84 of file account.c.

Referenced by account_new(), account_write_entry(), accounts_load(), and accounts_save().

◆ last_login

time_t account_struct::last_login

Last time this account was logged in

Definition at line 79 of file account.c.

Referenced by account_login(), account_new(), account_write_entry(), and accounts_load().

◆ name

◆ next

◆ num_characters

int account_struct::num_characters

Number of characters on this account

Definition at line 80 of file account.c.

Referenced by account_get_account_for_char(), account_link(), account_new(), account_remove_player(), account_write_entry(), accounts_load(), and accounts_save().

◆ password

char* account_struct::password

Password for this account

Definition at line 78 of file account.c.

Referenced by account_change_password(), account_login(), account_new(), account_write_entry(), and accounts_load().


The documentation for this struct was generated from the following file: