Crossfire Server, Trunk  R20513
Data Fields
account_struct Struct Reference

Structure that holds account data. More...

Collaboration diagram for account_struct:
Collaboration graph

Data Fields

char * character_names [MAX_CHARACTERS_PER_ACCOUNT+1]
 Character names associated with this account +1 added to allow for NULL termination. More...
 
time_t created
 When character was created. More...
 
time_t last_login
 Last time this account was logged in. More...
 
char * name
 Account name. More...
 
struct account_structnext
 Next in list. More...
 
int num_characters
 Number of characters on this account. More...
 
char * password
 Password for this account. More...
 

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

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().

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().

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().

char* account_struct::name
struct account_struct* account_struct::next
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().

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: