pub struct CharacterCreateRequest {
    pub char_name: LuWString33,
    pub predef_name_id_1: u32,
    pub predef_name_id_2: u32,
    pub predef_name_id_3: u32,
    pub torso_color: u32,
    pub legs_color: u32,
    pub hair_style: u32,
    pub hair_color: u32,
    pub eyebrows_style: u32,
    pub eyes_style: u32,
    pub mouth_style: u32,
}
Expand description

Requests a new character to be created.

Trigger

The player creating a new character and submitting it to the server.

Handling

Check if the predefined name is available. If the custom name is set, check if it is available as well. If your server has a name policy, check if the custom name is known to be unacceptable.

If all checks pass, create the character and save it to the database using the information specified in this message.

Response

Respond with CharacterCreateResponse, using the appropriate variant to indicate the result. If the character creation is successful, additionally send a CharacterListResponse afterwards with the new character included.

Fields

char_name: LuWString33

The custom name, or blank if the predefined name is to be used.

predef_name_id_1: u32

First part of the predefined name.

predef_name_id_2: u32

Second part of the predefined name.

predef_name_id_3: u32

Third part of the predefined name.

torso_color: u32

Chosen torso color.

legs_color: u32

Chosen legs color.

hair_style: u32

Chosen hair style.

hair_color: u32

Chosen hair color.

eyebrows_style: u32

Chosen eyebrow style.

eyes_style: u32

Chosen eye style.

mouth_style: u32

Chosen mouth style.

Trait Implementations

Formats the value using the given formatter. Read more
Deserializes the type by reading from the reader.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serializes the type by writing to the writer.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.