tModLoader v2024.10
A mod to make and play Terraria mods
CloudLoader Class Reference

Static Public Member Functions

static bool AddCloudFromTexture (Mod mod, string texture, float spawnChance=1f, bool rareCloud=false)
 Registers a new cloud with the provided texture, spawn chance, and indication if the cloud belongs to the "rare cloud" category. Use this to manually load a modded cloud rather than making a ModCloud class or autoloading the cloud through Mod.CloudAutoloadingEnabled logic.
 
static bool AddCloudFromTexture< TCloud > (Mod mod, string texture, float spawnChance=1f, bool rareCloud=false)
 Registers a new cloud with the provided texture, spawn chance, and indication if the cloud belongs to the "rare cloud" category. Typically used with SimpleModCloud as TCloud for cloud with no additional logic. Use this to manually load a modded cloud rather than making a ModCloud class or autoloading the cloud through Mod.CloudAutoloadingEnabled logic. More...
 
static ? int ChooseCloud (float vanillaPool, bool rare)
 

Static Public Attributes

static bool cloudLoaded = false
 

Properties

static int CloudCount = CloudID.Count [get]
 

Member Function Documentation

◆ AddCloudFromTexture< TCloud >()

static bool CloudLoader.AddCloudFromTexture< TCloud > ( Mod  mod,
string  texture,
float  spawnChance = 1f,
bool  rareCloud = false 
)
static

Registers a new cloud with the provided texture, spawn chance, and indication if the cloud belongs to the "rare cloud" category. Typically used with SimpleModCloud as TCloud for cloud with no additional logic. Use this to manually load a modded cloud rather than making a ModCloud class or autoloading the cloud through Mod.CloudAutoloadingEnabled logic.

Type Constraints
TCloud :ModCloud 
TCloud :new()