tModLoader v2023.01
A mod to make and play Terraria mods
|
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... | |
Allows for implementing types to be loaded and unloaded.
|
virtual |
Whether or not this type should be loaded when it's told to. Returning false disables Mod.AddContent from actually loading this type.
mod | The mod instance trying to add this content |
Implemented in Terraria.ModLoader.ModTileEntity, Terraria.ModLoader.ModType< TEntity, TModType >, Terraria.ModLoader.ModType< Item, ModItem >, Terraria.ModLoader.ModType< Mount.MountData, ModMount >, Terraria.ModLoader.ModType< NPC, ModNPC >, Terraria.ModLoader.ModType< Player, ModPlayer >, Terraria.ModLoader.ModType< Projectile, ModProjectile >, and Terraria.ModLoader.ModType< TEntity >.
|
pure virtual |
Called when loading the type.
mod | The mod instance associated with this type. |
Implemented in Terraria.ModLoader.IPlant, and Terraria.ModLoader.ModTileEntity.
|
pure virtual |
Called during unloading when needed.
Implemented in Terraria.ModLoader.IPlant, Terraria.ModLoader.ModTileEntity, Terraria.ModLoader.ModType< TEntity, TModType >, Terraria.ModLoader.ModType< Item, ModItem >, Terraria.ModLoader.ModType< Mount.MountData, ModMount >, Terraria.ModLoader.ModType< NPC, ModNPC >, Terraria.ModLoader.ModType< Player, ModPlayer >, Terraria.ModLoader.ModType< Projectile, ModProjectile >, and Terraria.ModLoader.ModType< TEntity >.