tModLoader  0.12 Alpha
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.ModLoader.IModType.

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)
virtual

Whether or not this type should be loaded when it's told to. Returning false disables Mod.AddContent from actually loading this type.

Parameters
modThe mod instance trying to add this content

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

◆ Load()

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

Called when loading the type.

Parameters
modThe mod instance associated with this type.

Implemented in Terraria.ModLoader.ModTileEntity.

◆ Unload()

abstract void Terraria.ModLoader.ILoadable.Unload ( )
pure virtual

Called during unloading when needed.

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