affects

package
v5.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Options = []Option{
	Total,
	BaseOnly,
	LevelsOnly,
}

Options holds all possible values.

Functions

This section is empty.

Types

type Option

type Option byte

Option describes how a TraitModifier affects the point cost.

const (
	Total Option = iota
	BaseOnly
	LevelsOnly
)

Possible values.

const LastOption Option = LevelsOnly

LastOption is the last valid value.

func ExtractOption

func ExtractOption(str string) Option

ExtractOption extracts the value from a string.

func (Option) AltString

func (enum Option) AltString() string

AltString returns the alternate string.

func (Option) EnsureValid

func (enum Option) EnsureValid() Option

EnsureValid ensures this is of a known value.

func (Option) Key

func (enum Option) Key() string

Key returns the key used in serialization.

func (Option) MarshalText

func (enum Option) MarshalText() (text []byte, err error)

MarshalText implements the encoding.TextMarshaler interface.

func (Option) String

func (enum Option) String() string

String implements fmt.Stringer.

func (*Option) UnmarshalText

func (enum *Option) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL