Documentation ¶
Index ¶
- Variables
- type BonusLimitation
- type DamageProgression
- func (enum DamageProgression) AltString() string
- func (enum DamageProgression) EnsureValid() DamageProgression
- func (enum DamageProgression) Key() string
- func (enum DamageProgression) MarshalText() (text []byte, err error)
- func (enum DamageProgression) String() string
- func (enum DamageProgression) Swing(strength int) *dice.Dice
- func (enum DamageProgression) Thrust(strength int) *dice.Dice
- func (enum DamageProgression) Tooltip() string
- func (enum *DamageProgression) UnmarshalText(text []byte) error
- type ThresholdOp
- type Type
Constants ¶
This section is empty.
Variables ¶
var ( // AllBonusLimitation holds all possible values. AllBonusLimitation = []BonusLimitation{ None, StrikingOnly, LiftingOnly, ThrowingOnly, } )
var ( // AllDamageProgression holds all possible values. AllDamageProgression = []DamageProgression{ BasicSet, KnowingYourOwnStrength, NoSchoolGrognardDamage, ThrustEqualsSwingMinus2, SwingEqualsThrustPlus2, PhoenixFlameD3, } )
var ( // AllThresholdOp holds all possible values. AllThresholdOp = []ThresholdOp{ Unknown, HalveMove, HalveDodge, HalveST, } )
var ( // AllType holds all possible values. AllType = []Type{ Integer, Decimal, Pool, PrimarySeparator, SecondarySeparator, PoolSeparator, } )
Functions ¶
This section is empty.
Types ¶
type BonusLimitation ¶
type BonusLimitation byte
BonusLimitation holds a limitation for an AttributeBonus.
const ( None BonusLimitation = iota StrikingOnly LiftingOnly ThrowingOnly LastBonusLimitation = ThrowingOnly )
Possible values.
func ExtractBonusLimitation ¶
func ExtractBonusLimitation(str string) BonusLimitation
ExtractBonusLimitation extracts the value from a string.
func (BonusLimitation) EnsureValid ¶
func (enum BonusLimitation) EnsureValid() BonusLimitation
EnsureValid ensures this is of a known value.
func (BonusLimitation) Key ¶
func (enum BonusLimitation) Key() string
Key returns the key used in serialization.
func (BonusLimitation) MarshalText ¶
func (enum BonusLimitation) MarshalText() (text []byte, err error)
MarshalText implements the encoding.TextMarshaler interface.
func (BonusLimitation) String ¶
func (enum BonusLimitation) String() string
String implements fmt.Stringer.
func (*BonusLimitation) UnmarshalText ¶
func (enum *BonusLimitation) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface.
type DamageProgression ¶
type DamageProgression byte
DamageProgression controls how Thrust and Swing are calculated.
const ( BasicSet DamageProgression = iota KnowingYourOwnStrength NoSchoolGrognardDamage ThrustEqualsSwingMinus2 SwingEqualsThrustPlus2 PhoenixFlameD3 LastDamageProgression = PhoenixFlameD3 )
Possible values.
func ExtractDamageProgression ¶
func ExtractDamageProgression(str string) DamageProgression
ExtractDamageProgression extracts the value from a string.
func (DamageProgression) AltString ¶
func (enum DamageProgression) AltString() string
AltString returns the alternate string.
func (DamageProgression) EnsureValid ¶
func (enum DamageProgression) EnsureValid() DamageProgression
EnsureValid ensures this is of a known value.
func (DamageProgression) Key ¶
func (enum DamageProgression) Key() string
Key returns the key used in serialization.
func (DamageProgression) MarshalText ¶
func (enum DamageProgression) MarshalText() (text []byte, err error)
MarshalText implements the encoding.TextMarshaler interface.
func (DamageProgression) String ¶
func (enum DamageProgression) String() string
String implements fmt.Stringer.
func (DamageProgression) Swing ¶
func (enum DamageProgression) Swing(strength int) *dice.Dice
Swing returns the swing damage for the given strength.
func (DamageProgression) Thrust ¶
func (enum DamageProgression) Thrust(strength int) *dice.Dice
Thrust returns the thrust damage for the given strength.
func (DamageProgression) Tooltip ¶
func (enum DamageProgression) Tooltip() string
Tooltip returns the tooltip for the DamageProgression.
func (*DamageProgression) UnmarshalText ¶
func (enum *DamageProgression) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface.
type ThresholdOp ¶
type ThresholdOp byte
ThresholdOp holds an operation to apply when a pool threshold is hit.
const ( Unknown ThresholdOp = iota HalveMove HalveDodge HalveST LastThresholdOp = HalveST )
Possible values.
func ExtractThresholdOp ¶
func ExtractThresholdOp(str string) ThresholdOp
ExtractThresholdOp extracts the value from a string.
func (ThresholdOp) AltString ¶
func (enum ThresholdOp) AltString() string
AltString returns the alternate string.
func (ThresholdOp) EnsureValid ¶
func (enum ThresholdOp) EnsureValid() ThresholdOp
EnsureValid ensures this is of a known value.
func (ThresholdOp) Key ¶
func (enum ThresholdOp) Key() string
Key returns the key used in serialization.
func (ThresholdOp) MarshalText ¶
func (enum ThresholdOp) MarshalText() (text []byte, err error)
MarshalText implements the encoding.TextMarshaler interface.
func (*ThresholdOp) UnmarshalText ¶
func (enum *ThresholdOp) UnmarshalText(text []byte) error
UnmarshalText implements the encoding.TextUnmarshaler interface.
type Type ¶
type Type byte
Type holds the type of an attribute definition.
const ( Integer Type = iota Decimal Pool PrimarySeparator SecondarySeparator PoolSeparator LastType = PoolSeparator )
Possible values.
func (Type) EnsureValid ¶
EnsureValid ensures this is of a known value.
func (Type) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Type) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.