Table of Contents

Class SkillBookBehaviour

Namespace
GrindFest
Assembly
GrindFest.dll
public class SkillBookBehaviour : MonoBehaviour, ISerializableComponent
Inheritance
object
SkillBookBehaviour
Implements

Fields

EffectPrefab
Interactive
Item
SkillTypeName

The skill this book teaches, by type name ("Fireball"). The book used to point at the skill prefab; a plain class cannot be referenced from a prefab, so the name is the reference.

Properties

SaveKey

Where this component's payload lives inside Components: stable, unique, and not to be changed - renaming it silently orphans the payload of every save that already exists. Ours are named after what they store ("GrindFest.ResourcePotion", not "...LiquidContainerBehaviour"); a mod must use its own prefix ("MyMod.Whatever").

The default is the component's type name. That is stable for a plain C# component but not for a generated/proxied one, so a mod should always declare this explicitly rather than rely on it.

SkillDefinition

The shared, read-only definition of the skill this book teaches.

Methods

Deserialize(Reader)
LearnSkill(HeroController)
OnDisplayTooltip(StringBuilder, HeroController, InteractiveBehaviour)
Serialize(Writer)
Start()