Skip to content

RegisterEffect

Aidanamite edited this page Oct 11, 2021 · 2 revisions

Description:

Can be used to register a MoonlighterEffect class 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 MoonligherEffect class

Example:

AssetLib.AssetLibTools.RegisterEffect<MyEnchantmentEffect>();

Clone this wiki locally