Fields
citizen_id:
string
Visibility: public
The unique identifier for the character.
owner:
Server.XPlayer
Visibility: public
The player who owns this character.
firstname:
string
Visibility: public
The first name of the character.
lastname:
string
Visibility: public
The last name of the character.
date_of_birth:
string
Visibility: public
The date of birth of the character in YYYY-MM-DD format.
account:
Server.XAccount
Visibility: public
the players primary banking account
xPlayer:
Server.XPlayer
Visibility: public
the player this character is bound to
Methods
new(owner: Server.XPlayer, firstname: string, lastname: string, date_of_birth: string): Server.XCharacter
Note: @nodiscard - Return value should not be ignored
Creates a new character instance.
Parameters:
- owner (Server.XPlayer): The player who owns this character.
- firstname (string):
- lastname (string):
- date_of_birth (string):
Returns: character The new character instance.
getName(): string
Note: @nodiscard - Return value should not be ignored
Returns the characters full name.
Returns: name the full name of the character.