Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // AllDifficulty holds all possible values. AllDifficulty = []Difficulty{ Easy, Average, Hard, VeryHard, Wildcard, } )
var ( // AllSelectionType holds all possible values. AllSelectionType = []SelectionType{ SkillsWithName, ThisWeapon, WeaponsWithName, } )
var AllTechniqueDifficulty = []Difficulty{ Average, Hard, }
AllTechniqueDifficulty holds all possible values when used with Techniques.
Functions ¶
func DefaultTypeIsSkillBased ¶
DefaultTypeIsSkillBased returns true if the SkillDefault type is Skill-based.
Types ¶
type Difficulty ¶
type Difficulty byte
Difficulty holds the difficulty level of a skill.
const ( Easy Difficulty = iota Average Hard VeryHard Wildcard LastDifficulty = Wildcard )
Possible values.
func ExtractDifficulty ¶
func ExtractDifficulty(str string) Difficulty
ExtractDifficulty extracts the value from a string.
func (Difficulty) BaseRelativeLevel ¶
func (enum Difficulty) BaseRelativeLevel() fxp.Int
BaseRelativeLevel returns the base relative skill level at 0 points.
func (Difficulty) EnsureValid ¶
func (enum Difficulty) EnsureValid() Difficulty
EnsureValid ensures this is of a known value.
func (Difficulty) Key ¶
func (enum Difficulty) Key() string
Key returns the key used in serialization.
func (Difficulty) MarshalText ¶
func (enum Difficulty) MarshalText() (text []byte, err error)
MarshalText implements the encoding.TextMarshaler interface.
func (*Difficulty) UnmarshalText ¶
func (enum *Difficulty) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface.
type Level ¶
Level provides a level & relative level pair, plus a tooltip.
func (Level) LevelAsString ¶
LevelAsString returns the level as a string.
type SelectionType ¶
type SelectionType byte
SelectionType holds the type of a selection.
const ( SkillsWithName SelectionType = iota ThisWeapon WeaponsWithName LastSelectionType = WeaponsWithName )
Possible values.
func ExtractSelectionType ¶
func ExtractSelectionType(str string) SelectionType
ExtractSelectionType extracts the value from a string.
func (SelectionType) EnsureValid ¶
func (enum SelectionType) EnsureValid() SelectionType
EnsureValid ensures this is of a known value.
func (SelectionType) Key ¶
func (enum SelectionType) Key() string
Key returns the key used in serialization.
func (SelectionType) MarshalText ¶
func (enum SelectionType) MarshalText() (text []byte, err error)
MarshalText implements the encoding.TextMarshaler interface.
func (SelectionType) String ¶
func (enum SelectionType) String() string
String implements fmt.Stringer.
func (*SelectionType) UnmarshalText ¶
func (enum *SelectionType) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface.