Package de.Keyle.MyPet.api.skill


package de.Keyle.MyPet.api.skill
The skill system: registration, typed state, upgrades, and experience.

SkillManager is the central registry of every Skill implementation, keyed by the name its SkillName annotation declares. Skills is the per-pet container holding that pet's live skill instances, and PetExperience tracks its experience and level.

A skill's persisted data is a SkillState record, written and read through a SkillStateCodec registered via SkillStateCodecs. Its skilltree progression is an Upgrade produced by an UpgradeParser, registered via SkillUpgrades and described for the web editor by an UpgradeSchema; UpgradeComputer accumulates the resulting values. ActiveSkill, ToggleableSkill, OnHitSkill and OnDamageByEntitySkill mark how a skill is triggered.