Skill Points Binding

πŸͺ’ SkillPointsBinding Class

Used to bind custom skill-points logic to a Web.

Namespace: Esper.SkillWeb.Graph Type: class


πŸ“¦ Fields

Access
Field
Type
Description

public

boundPoints

BoundSkillPoints<SkillPoints>

The bound skill points instance containing getters, cost getters, and setters.

public

useForSkill

Func<SkillNode, bool>

A method that determines which skills should use this skill-points binding.

protected

revertableState

SkillPoints?

A revertable state representing the previous skill-points value.


πŸ” Properties

Access
Property
Type
Description

public

HasRevertableState

bool

If a revertable skill-points state exists.


🧰 Methods

Access
Method
Returns
Description

public

SkillPointsBinding(Func<SkillPoints>, Func<SkillNode, SkillPoints>, Action<SkillPoints>, Func<SkillNode, bool>)

–

Constructor. Creates the binding using getter, cost getter, setter, and skill usage filter.

public

ApplyRevertableState()

void

Applies the revertable state if one exists, then clears it.

public

SetRevertableState()

void

Saves the current skill-points value as a revertable state.

public

UnsetRevertableState()

void

Removes the revertable state.


🧩 Nested Types

public struct SkillPoints

Represents a flexible numeric skill-points value supporting int, float, or double types.


πŸ“¦ Fields (SkillPoints)

Access
Field
Type
Description

public

numericType

NumericType

The numeric type being used.

public

intValue

int

The integer representation of the value.

public

floatValue

float

The float representation of the value.

public

doubleValue

double

The double representation of the value.


🧰 Constructors (SkillPoints)

Constructor
Description

SkillPoints(int v)

Sets the value as an integer.

SkillPoints(float v)

Sets the value as a float.

SkillPoints(double v)

Sets the value as a double.


πŸ” Implicit Conversions

Conversion
Description

int β†’ SkillPoints

Implicitly converts an int into SkillPoints.

float β†’ SkillPoints

Implicitly converts a float into SkillPoints.

double β†’ SkillPoints

Implicitly converts a double into SkillPoints.

SkillPoints β†’ int

Converts based on the stored numeric type.

SkillPoints β†’ float

Converts based on the stored numeric type.

SkillPoints β†’ double

Converts based on the stored numeric type.


πŸ”’ Operators (SkillPoints)

SkillPoints supports full numeric comparison:

Operator
Meaning

==

Equal to

!=

Not equal

<

Less than

<=

Less than or equal

>

Greater than

>=

Greater than or equal

All comparisons operate using a unified double precision value.


πŸ”½ Nested Enum: NumericType

Value
Description

Int

Use integer values.

Float

Use float values.

Double

Use double values.

Last updated