Database types ​
The Database knows 71 types of resource. Each row says the type name you pass to the database (Database.get_resource("effect", id)), the class every resource of the type must be, the folder its files are saved in (one <id>.tres file per resource) and the editor tab you make them in. Every class in the table extends DatabaseResource.
The rows are in the order of the REGISTRY, grouped like the editor's categories. The type enviroment is spelled that way in the code.
| Type | Class | Folder | Edited in |
|---|---|---|---|
| World | |||
world | WorldData | src/data/worlds/ | Worlds |
enviroment | EnvironmentConfig | src/data/worlds/enviroment/ | World Configs |
sky | SkyConfig | src/data/worlds/sky/ | World Configs |
sun | SunConfig | src/data/worlds/sun/ | World Configs |
time | TimeConfig | src/data/worlds/time/ | World Configs |
weather | WeatherConfig | src/data/worlds/weather/ | |
| (the shelter profiles are the old way of making a shelter: the settings are now on the volume. The kind is kept so that a scene that still has a profile can be read) | |||
shelter | ShelterProfile | src/data/worlds/shelters/ | |
weather_table | WeatherTable | src/data/worlds/weather_tables/ | |
sound_album | SoundAlbum | src/data/audio/albums/sound_albums/ | Music Albums |
dynamic_music | DynamicMusic | src/data/audio/dynamic_music/ | Dynamic Music |
| Events & Quests | |||
event | Event | src/data/events/ | Events |
quest | Quest | src/data/quests/ | Quests |
questline | QuestLine | src/data/questlines/ | Quest Lines |
global_variable | GlobalVariable | src/data/global_variables/ | Global Variables |
| Abilities & Effects | |||
ability | AbilityDefinition | src/data/abilities/ | Abilities |
effect | Effect | src/data/effects/ | Effects |
skill_tree | SkillTree | src/data/player_classes/skill_trees/ | Skill Trees |
skill_pool | SkillPointPool | src/data/player_classes/skill_pools/ | Skill Trees |
| Entities | |||
npc | NPCDefinition | src/data/npc/ | NPCs |
npc_template | NPCDefinition | src/data/npc/templates/ | NPCs (templates) |
player_class | PlayerClassDefinition | src/data/player_classes/ | Player Classes |
player_class_template | PlayerClassDefinition | src/data/player_classes/templates | Player Classes (templates) |
character | CharacterDefinition | src/data/characters/ | Playable Character |
interactable | InteractableDefinition | src/data/interactables/ | Interactables |
interactable_template | InteractableDefinition | src/data/interactables/templates/ | |
| Behaviors | |||
faction | FactionDefinition | src/data/factions/ | Factions |
conversation | Conversation | src/data/behaviors/conversations/ | Conversations |
combat_script | ModularCombatScript | src/data/behaviors/combat_scripts/ | Combat Scripts |
behavior_script | ModularBehaviorScript | src/data/behaviors/behavior_scripts/ | Behavior Scripts |
| Entity Stats Definitions | |||
damage_type | DamageTypeDefinition | src/data/stats/damage_types/ | Damage Types |
school_type | SchoolTypeDefinition | src/data/stats/school_types/ | School Types |
immunity | ImmunityDefinition | src/data/stats/immunities/ | Immunities |
trigger_tag | TriggerTagDefinition | src/data/stats/trigger_tags/ | Trigger Tags |
entity_tag | EntityTagDefinition | src/data/entity_tags/ | Entity Types |
ui_tag | UITagDefinition | src/data/ui_tags/ | |
emote | EmoteDefinition | src/data/emotes/ | |
group | GroupDefinition | src/data/groups/ | Groups |
status_effect | StatusEffectDefinition | src/data/stats/status_effects/ | Status Effects |
stat | StatDefinition | src/data/stats/ | Stats |
stat_group | StatGroupDefinition | src/data/stats/stat_groups/ | Stat Groups |
proficiency | ProficiencyDefinition | src/data/stats/proficiencies/ | |
pool | PoolDefinition | src/data/stats/pools/ | Pool |
growth_profile | GrowthProfile | src/data/stats/growth_profiles/ | |
| Items | |||
item | ItemDefinition | src/data/items/ | Items |
currency | CurrencyDefinition | src/data/items/currencies/ | Currency |
loot_table | LootTable | src/data/loot_tables/ | Loot Tables |
recipe | CraftingRecipeDefinition | src/data/crafting/recipes/ | Craft Recipes |
craft_school | CraftSchoolDefinition | src/data/crafting/schools/ | Craft Schools |
vendor | VendorDefinition | src/data/vendors/ | Vendors |
trainer | TrainerDefinition | src/data/trainers/ | |
mount | MountDefinition | src/data/mounts/ | Mounts |
| Equipment Definitions | |||
armor_class | ArmorClassDefinition | src/data/items/armor_classes/ | Armor Class |
weapon_class | WeaponClassDefinition | src/data/items/weapon_classes/ | Weapon Class |
weapon_profile | WeaponProfile | src/data/items/weapon_profiles/ | Weapon Profiles |
equipment_type | EquipmentTypeDefinition | src/data/items/equipment_types/ | Equipment Type |
weapon_type | WeaponTypeDefinition | src/data/items/weapon_types/ | Equipment Type |
equipment_slot | EquipmentSlotDefinition | src/data/items/equipment_slots/ | Equipment Slot |
quality | Quality | src/data/items/qualities/ | Quality |
affix | Affix | src/data/items/affixes/ | Affixes |
set_bonus | SetBonusDefinition | src/data/items/set_bonuses/ | Set Bonus |
socket | SocketDefinition | src/data/items/sockets/ | Socket |
| Unique Objects Data | |||
unique_entity | UniqueEntityData | src/data/unique_entities/ | The Unique Object tool |
unique_interactable | UniqueInteractableData | src/data/unique_interactables/ | The Unique Object tool |
unique_encounter | UniqueEncounterData | src/data/unique_encounters/ | The Unique Object tool |
unique_spawner | UniqueSpawnerData | src/data/unique_spawners/ | The Unique Object tool |
| Trigger areas | |||
trigger_area | TriggerAreaData | src/data/trigger_areas/ | Trigger areas |
| Spawning | |||
spawn_table | SpawnTableDefinition | src/data/spawn_tables/ | Spawn tables |
| Zones | |||
zone | ZoneDefinition | src/data/zones/ | Zones |
| Terrain | |||
terrain_texture | TerrainTextureDefinition | src/data/worlds/terrain/textures/ | Terrain Textures |
foliage | FoliageDefinition | src/data/worlds/foliage/entries/ | Foliage |
| UI | |||
popup | PopupData | src/data/popups/ | Popups |
See Data and the Database for how the types are loaded, saved and referenced, and Asset databases for the libraries of animations, audio, VFX, meshes, models and icons, which are not resources of this registry.