Package studio.magemonkey.fabled.api
Interface SkillPlugin
public interface SkillPlugin
Interface for plugins that define new classes and skills
Make sure to only add the appropriate type in each method (e.g. adding classes in the registerClasses method and skills in the registerSkills method). It keeps the API working nicely!
-
Method Summary
Modifier and TypeMethodDescriptiondefault List
<CustomEffectComponent> void
registerClasses
(Fabled api) Method to add new classes to the gamevoid
registerSkills
(Fabled api) Method to add new skills to the game
-
Method Details
-
registerSkills
Method to add new skills to the game
Use api.addSkills(Skill ... skills) to add them
This is called before registerClasses so if you want to keep a reference of the API, you can store the api reference into one of your own fields
- Parameters:
api
- the api reference
-
registerClasses
Method to add new classes to the game
Use api.addClasses(RPGClass ... classes) to add them
This is called after registerSkills
-
getTriggers
-
getComponents
-