-
Notifications
You must be signed in to change notification settings - Fork 0
RegisterEffect
Aidanamite edited this page Oct 11, 2021
·
2 revisions
Description:
Can be used to register a
MoonlighterEffectclass to the effect registry. You will need to use this to setup the behaviours for enchantments, amulets and the like.
Returns: string
The returned string is the string equivalent of the registered class's name
Arguments:
This method only takes a generic type argument. Put the class that you want to register.
Note: the provided type must inherit the
MoonligherEffectclass
Example:
AssetLib.AssetLibTools.RegisterEffect<MyEnchantmentEffect>();