![]() |
Crossfire Server, Trunk
1.75.0
|
Structure that holds account data. More...
Data Fields | |
int | allocated_characters |
Number of allocated items in character_names. More... | |
char ** | character_names |
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... | |
int | num_characters |
Number of characters on this account. More... | |
char * | password |
Password for this account. More... | |
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 80 of file account.cpp.
int account_struct::allocated_characters |
Number of allocated items in character_names.
Definition at line 85 of file account.cpp.
Referenced by ensure_available_characters().
char** account_struct::character_names |
Character names associated with this account, +1 added to allow for NULL termination.
Definition at line 86 of file account.cpp.
Referenced by account_write_entry(), accounts_load(), and ensure_available_characters().
time_t account_struct::created |
When character was created.
Definition at line 88 of file account.cpp.
Referenced by account_alloc(), account_write_entry(), and accounts_load().
time_t account_struct::last_login |
Last time this account was logged in.
Definition at line 83 of file account.cpp.
Referenced by account_alloc(), account_write_entry(), and accounts_load().
char* account_struct::name |
Account name.
Definition at line 81 of file account.cpp.
Referenced by account_new(), account_write_entry(), and accounts_load().
int account_struct::num_characters |
Number of characters on this account.
Definition at line 84 of file account.cpp.
Referenced by account_write_entry(), and accounts_load().
char* account_struct::password |
Password for this account.
Definition at line 82 of file account.cpp.
Referenced by account_new(), account_write_entry(), and accounts_load().