feature

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

Types holds all possible values.

View Source
var TypesWithoutContainedWeightReduction []Type

TypesWithoutContainedWeightReduction holds the possible Type values, minus the ContainedWeightReduction.

Functions

This section is empty.

Types

type Type

type Type byte

Type holds the type of a Feature.

const (
	AttributeBonus Type = iota
	ConditionalModifier
	DRBonus
	ReactionBonus
	SkillBonus
	SkillPointBonus
	SpellBonus
	SpellPointBonus
	WeaponBonus
	WeaponAccBonus
	WeaponScopeAccBonus
	WeaponDRDivisorBonus
	WeaponEffectiveSTBonus
	WeaponMinSTBonus
	WeaponMinReachBonus
	WeaponMaxReachBonus
	WeaponHalfDamageRangeBonus
	WeaponMinRangeBonus
	WeaponMaxRangeBonus
	WeaponRecoilBonus
	WeaponBulkBonus
	WeaponParryBonus
	WeaponBlockBonus
	WeaponRofMode1ShotsBonus
	WeaponRofMode1SecondaryBonus
	WeaponRofMode2ShotsBonus
	WeaponRofMode2SecondaryBonus
	WeaponNonChamberShotsBonus
	WeaponChamberShotsBonus
	WeaponShotDurationBonus
	WeaponReloadTimeBonus
	WeaponSwitch
	CostReduction
	ContainedWeightReduction
)

Possible values.

const LastType Type = ContainedWeightReduction

LastType is the last valid value.

func ExtractType

func ExtractType(str string) Type

ExtractType extracts the value from a string.

func (Type) EnsureValid

func (enum Type) EnsureValid() Type

EnsureValid ensures this is of a known value.

func (Type) Key

func (enum Type) Key() string

Key returns the key used in serialization.

func (Type) MarshalText

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

MarshalText implements the encoding.TextMarshaler interface.

func (Type) String

func (enum Type) String() string

String implements fmt.Stringer.

func (*Type) UnmarshalText

func (enum *Type) 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