Constructs a Character instance from an optional ICharacter object.
If obj, or any of its required fields are undefined, the default value of each property's type
will be used to construct the object.
Optionalobj: Partial<ICharacter>
Data to construct the object from.
StaticfromConstructs a Character instance from a DBCharacter object.
This method is functionally identical to the constructor, as there are no fields to repopulate.
Data to construct the object from.
Returns a deep copy of this instance.
StaticdecodeStaticencodeReturns the document-store representation of this object.
Unlike toJSON(), the resulting document-store representation may be in a significantly different
shape to that of its implementing class, and it cannot be passed back into the constructor to
reconstruct an equivalent instance.
Use fromDB() instead, which reconstructs the instance and rehydrates any fields truncated by the conversion.
Returns the JSON-serializable representation of this object.
The result can be passed back into the constructor to reconstruct an equivalent instance.
ProtectedtoSerializes the properties of this base class to an object.
Concrete subclasses should spread the result into their own toDB() implementations.
ProtectedtoSerializes the properties of this base class to an object.
Concrete subclasses should spread the result into their own toJSON() implementations.
The unique reference to this object in persistent storage.
The URL to the main visual asset (image) of the character.
The set of colors associated with the character.
The time the object was created, as an ISO 8601 (RFC 3339) timestamp.
The extended details of the character.
The first / given name of a character, or otherwise the second part of a character's name.
An ID associated with the object.
Protected StaticindexAn auto-incremented index to keep object IDs unique during runtime.
Whether the character is playable in-game.
The last / family name of a character, or otherwise the first part of a character's name.
Static ReadonlysortableThe bonuses gained from reaching any available True End's in gameplay scenarios for the character.
The time the object was last updated, as an ISO 8601 (RFC 3339) timestamp.
An in-game character.
Includes both playable characters (e.g. "花海咲季" / "Hanami Saki", "月村手毬" / "Tsukimura Temari", "藤田ことね" / "Fujita Kotone", etc.), and non-playable characters (e.g. "根緒亜紗里" / "Neo Asari", "十王邦夫" / "Juo Kunio", "藍井撫子" / "Aoi Nadeshiko", etc.).
For the playable produce idol units of each character, see PIdol.
See CharacterFilter for the list of filtering options.
See ICharacter for the list of fields that can be used for sorting.