tModLoader v2024.11
A mod to make and play Terraria mods
GoreLoader Class Reference

Static Public Member Functions

static bool AddGoreFromTexture< TGore > (Mod mod, string texture)
 Registers a new gore with the provided texture. Typically used with SimpleModGore as TGore for gore with no additional logic. Use this for any gore textures not autoloaded by the Mod.GoreAutoloadingEnabled logic. More...
 

Properties

static int GoreCount = GoreID.Count [get]
 

Member Function Documentation

◆ AddGoreFromTexture< TGore >()

static bool GoreLoader.AddGoreFromTexture< TGore > ( Mod  mod,
string  texture 
)
static

Registers a new gore with the provided texture. Typically used with SimpleModGore as TGore for gore with no additional logic. Use this for any gore textures not autoloaded by the Mod.GoreAutoloadingEnabled logic.

Type Constraints
TGore :ModGore 
TGore :new()