PhenotypeResource files are used to describe the phenotype features that are to be applied to a
Character. They should be stored in
New PhenotypeResources can be created from the Godot GUI by right-clicking the phenotype_db folder and selecting New Resource and then selecting
PhenotypeResource from the menu.
Phenotypes can be applied directly to
Character nodes in the editor using the Node Inspector. Or they can applied programmatically using the Phenotype Database.
All of the
PhenotypeResource files that are detected are made available by this database object. You can access a Dictionary containing all of these resources at
The player character's phenotype is a bit special. It is accessed instead via the methods
SECTION: String = “Phenotype”
DEFAULT_SKIN: String = “default_player”
get_player_phenotype() → PhenotypeResource
save_player_phenotype(pheno: PhenotypeResource) → void
save_player_phenotype_as_dict(pheno: Dictionary) → void
as_dictionary() → Dictionary