stdmg

package
v5.29.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

Options holds all possible values.

Functions

This section is empty.

Types

type Option

type Option byte

Option holds the type of strength dice to add to damage.

const (
	None Option = iota
	Thrust
	LiftingThrust
	TelekineticThrust
	Swing
	LiftingSwing
	TelekineticSwing
	OldLeveledThrust
	OldLeveledSwing
)

Possible values.

const LastOption Option = OldLeveledSwing

LastOption is the last valid value.

func ExtractOption

func ExtractOption(str string) Option

ExtractOption extracts the value from a 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