Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Levels = []Level{ No, Light, Medium, Heavy, ExtraHeavy, }
Levels holds all possible values.
Functions ¶
This section is empty.
Types ¶
type Level ¶
type Level byte
Level holds the encumbrance level.
const LastLevel Level = ExtraHeavy
LastLevel is the last valid value.
func ExtractLevel ¶
ExtractLevel extracts the value from a string.
func (Level) EnsureValid ¶
EnsureValid ensures this is of a known value.
func (Level) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*Level) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
func (Level) WeightMultiplier ¶
WeightMultiplier returns the weight multiplier associated with the encumbrance level.
Click to show internal directories.
Click to hide internal directories.