tModLoader v2024.10
A mod to make and play Terraria mods
JITWhenModsEnabledAttribute Class Reference

Excludes a class, method, or property from the load time JITunless the specified mods are also loaded. Use this on any member which directly references a Type from a weakly referenced modthat might not be present. See this wiki pagefor more information. More...

Inherits MemberJitAttribute.

Public Member Functions

 JITWhenModsEnabledAttribute (params string[] names)
 
override bool ShouldJIT (MemberInfo member)
 
virtual bool ShouldJIT (MemberInfo member)
 

Public Attributes

readonly string[] Names
 

Detailed Description

Excludes a class, method, or property from the load time JIT

unless the specified mods are also loaded. Use this on any member which directly references a Type from a weakly referenced mod

that might not be present. See this wiki page

for more information.

Member Function Documentation

◆ ShouldJIT()

override bool JITWhenModsEnabledAttribute.ShouldJIT ( MemberInfo  member)
virtual

Reimplemented from MemberJitAttribute.