Table of Contents

Method GetSkill

Namespace
GrindFest
Assembly
GrindFest.dll

GetSkill(Type, bool)

The character's own instance of a skill type (null when it is not learned). This is the prefab-free replacement for the old "same prefab address" comparison.

public Skill GetSkill(Type skillType, bool create = false)

Parameters

skillType Type
create bool

Returns

Skill

GetSkill<T>(bool)

Looks a skill up by type. Skills are plain classes, so this is a straight type test over the character's own instances.

public T GetSkill<T>(bool create = false) where T : class

Parameters

create bool

Returns

T

Type Parameters

T