CharacterCreationSettings ​
Inherits: Resource
CharacterCreationSettings - Main configuration for the character creation system Defines available templates, profiles (rulesets), color palettes, and class restrictions
Properties ​
Array[CharacterDefinition] | available_templates | [] |
Array[CharacterCreationProfile] | skeleton_profiles | [] |
Methods ​
CharacterDefinition | get_template( index: int ) |
int | get_template_count() |
bool | has_template( character_id: int ) |
Array[CharacterDefinition] | get_templates_for_class( class_id: int ) |
CharacterCreationProfile | get_profile_by_id( id: String ) |
CharacterCreationProfile | get_profile( index: int ) |
int | get_profile_count() |
Array[String] | get_all_profile_ids() |
bool | has_profile( id: String ) |
Array[Dictionary] | validate() |
bool | is_valid() |
CharacterCreationSettings | get_config() static |
Constants ​
constCONFIG_PATH ="res://src/data/config_data/character_creation_config.tres"- The file the settings are saved in.DictionarySETTING_DESCRIPTIONS ={- The text the settings editor shows for each setting.
Property descriptions ​
Array[CharacterDefinition] available_templates = [] ​
Pre-made character templates that appear in the character selection list These are CharacterDefinitions that players can choose as starting points
Array[CharacterCreationProfile] skeleton_profiles = [] ​
Character creation profiles that define body types, facial features, and blend shapes Each profile represents a character archetype (e.g., "Human", "Elf", "Dwarf")
Method descriptions ​
CharacterDefinition get_template( index: int ) ​
Get a template by index
int get_template_count() ​
Get template count
bool has_template( character_id: int ) ​
Check if a specific template exists
Array[CharacterDefinition] get_templates_for_class( class_id: int ) ​
Get templates for a specific class
CharacterCreationProfile get_profile_by_id( id: String ) ​
Get profile by its unique ID
CharacterCreationProfile get_profile( index: int ) ​
Get profile by index
int get_profile_count() ​
Get profile count
Array[String] get_all_profile_ids() ​
Get all profile IDs
bool has_profile( id: String ) ​
Check if a profile ID exists
Array[Dictionary] validate() ​
Validate the entire configuration
bool is_valid() ​
Check if configuration is valid
CharacterCreationSettings get_config() ​
The character creation settings of the project (loaded from the file).