tModLoader v0.11.8.9
A mod to make and play Terraria mods
Terraria.ModLoader.ModProperties Struct Reference

This is a struct that stores the properties of a mod. Without setting it in your Mod constructor, all properties default to true. More...

+ Collaboration diagram for Terraria.ModLoader.ModProperties:

Public Attributes

bool Autoload
 Whether or not this mod will autoload content by default. Autoloading content means you do not need to manually add content through methods. More...
 
bool AutoloadBackgrounds
 Whether or not this mod will automatically add images in the Backgrounds folder as background textures to the game. This means you do not need to manually call Mod.AddBackgroundTexture. More...
 
bool AutoloadGores
 Whether or not this mod will automatically add images in the Gores folder as gores to the game, along with any ModGore classes that share names with the images. This means you do not need to manually call Mod.AddGore. More...
 
bool AutoloadSounds
 Whether or not this mod will automatically add sounds in the Sounds folder to the game. Place sounds in Sounds/Item to autoload them as item sounds, Sounds/NPCHit to add them as npcHit sounds, Sounds/NPCKilled to add them as npcKilled sounds, and Sounds/Music to add them as music tracks. Sounds placed anywhere else in the Sounds folder will be added as custom sounds. Any ModSound classes that share the same name as the sound files will be bound to them. Setting this field to true means that you do not need to manually call AddSound. More...
 

Properties

static ModProperties AutoLoadAll [get]
 Automatically return a ModProperties object which has all AutoLoad values set to true. More...
 

Detailed Description

This is a struct that stores the properties of a mod. Without setting it in your Mod constructor, all properties default to true.

Definition at line 6 of file ModProperties.cs.

Member Data Documentation

◆ Autoload

◆ AutoloadBackgrounds

bool Terraria.ModLoader.ModProperties.AutoloadBackgrounds

Whether or not this mod will automatically add images in the Backgrounds folder as background textures to the game. This means you do not need to manually call Mod.AddBackgroundTexture.

Definition at line 23 of file ModProperties.cs.

◆ AutoloadGores

bool Terraria.ModLoader.ModProperties.AutoloadGores

Whether or not this mod will automatically add images in the Gores folder as gores to the game, along with any ModGore classes that share names with the images. This means you do not need to manually call Mod.AddGore.

Definition at line 15 of file ModProperties.cs.

◆ AutoloadSounds

bool Terraria.ModLoader.ModProperties.AutoloadSounds

Whether or not this mod will automatically add sounds in the Sounds folder to the game. Place sounds in Sounds/Item to autoload them as item sounds, Sounds/NPCHit to add them as npcHit sounds, Sounds/NPCKilled to add them as npcKilled sounds, and Sounds/Music to add them as music tracks. Sounds placed anywhere else in the Sounds folder will be added as custom sounds. Any ModSound classes that share the same name as the sound files will be bound to them. Setting this field to true means that you do not need to manually call AddSound.

Definition at line 19 of file ModProperties.cs.

Property Documentation

◆ AutoLoadAll

ModProperties Terraria.ModLoader.ModProperties.AutoLoadAll
staticget
Initial value:
=
new ModProperties() {
Autoload = true,
AutoloadGores = true,
}
bool AutoloadSounds
Whether or not this mod will automatically add sounds in the Sounds folder to the game....
bool Autoload
Whether or not this mod will autoload content by default. Autoloading content means you do not need t...
bool AutoloadGores
Whether or not this mod will automatically add images in the Gores folder as gores to the game,...
bool AutoloadBackgrounds
Whether or not this mod will automatically add images in the Backgrounds folder as background texture...

Automatically return a ModProperties object which has all AutoLoad values set to true.

Definition at line 28 of file ModProperties.cs.

28{ get; } =