tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.ModLoader.ILoadable Interface Referenceabstract

Allows for implementing types to be loaded and unloaded. More...

Inherited by Terraria.GameContent.Personalities.AShoppingBiome, Terraria.ModLoader.IModType, and Terraria.ModLoader.IPlant.

Public Member Functions

virtual bool IsLoadingEnabled (Mod mod)
 Whether or not this type should be loaded when it's told to. Returning false disables Mod.AddContent from actually loading this type. More...
abstract void Load (Mod mod)
 Called when loading the type. More...
abstract void Unload ()
 Called during unloading when needed. More...

Detailed Description

Allows for implementing types to be loaded and unloaded.

Member Function Documentation

◆ IsLoadingEnabled()

virtual bool Terraria.ModLoader.ILoadable.IsLoadingEnabled ( Mod  mod)

◆ Load()

abstract void Terraria.ModLoader.ILoadable.Load ( Mod  mod)
pure virtual

Called when loading the type.

modThe mod instance associated with this type.

Implemented in Terraria.ModLoader.IPlant, and Terraria.ModLoader.ModTileEntity.

◆ Unload()