tModLoader v2024.10
A mod to make and play Terraria mods
|
Allows for implementing types to be loaded and unloaded. More...
Inherited by ModType< EmoteBubble, ModEmoteBubble >, ModType< Item, ModItem >, ModType< Mount.MountData, ModMount >, ModType< NPC, ModNPC >, ModType< Player, ModPlayer >, ModType< Projectile, ModProjectile >, ModType< TEntity >, AShoppingBiome, IPlant, ModTileEntity, and ModType< TEntity, TModType >.
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 ModTileEntity, ModType< TEntity, TModType >, ModType< EmoteBubble, ModEmoteBubble >, ModType< Item, ModItem >, ModType< Mount.MountData, ModMount >, ModType< NPC, ModNPC >, ModType< Player, ModPlayer >, ModType< Projectile, ModProjectile >, and ModType< TEntity >.
|
pure virtual |
Called when loading the type.
mod | The mod instance associated with this type. |
Implemented in IPlant, and ModTileEntity.
|
pure virtual |
Called during unloading when needed.
Implemented in UnloadedSystem, IPlant, ModTileEntity, ModType< TEntity, TModType >, ModType< EmoteBubble, ModEmoteBubble >, ModType< Item, ModItem >, ModType< Mount.MountData, ModMount >, ModType< NPC, ModNPC >, ModType< Player, ModPlayer >, ModType< Projectile, ModProjectile >, and ModType< TEntity >.