TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ AddContent< T >()

bool Terraria.ModLoader.Mod.AddContent< T > ( )
inlineinherited

Call this to manually add a content instance of the specified type (with a parameterless constructor) to the game.

Returns
true if the instance was successfully added
Type Constraints
T :ILoadable 
T :new() 

Definition at line 172 of file Mod.cs.

172 : ILoadable, new()
173 {
174 return AddContent(new T());
175 }
bool AddContent(ILoadable instance)
Call this to manually add the given content instance to the game.
Definition Mod.cs:180

References Terraria.ModLoader.Mod.AddContent().

+ Here is the call graph for this function: