Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Types = []Type{ NotSwitched, CanBlock, CanParry, CloseCombat, Fencing, FullAuto1, FullAuto2, Bipod, ControlledBursts1, ControlledBursts2, Jet, Mounted, MusclePowered, RangeInMiles, ReachChangeRequiresReady, ReloadTimeIsPerShot, RetractingStock, TwoHanded, Thrown, Unbalanced, TwoHandedAndUnreadyAfterAttack, MusketRest, }
Types holds all possible values.
Functions ¶
This section is empty.
Types ¶
type Type ¶
type Type byte
Type holds the type of a weapon switch.
const ( NotSwitched Type = iota CanBlock CanParry CloseCombat Fencing FullAuto1 FullAuto2 Bipod ControlledBursts1 ControlledBursts2 Jet Mounted MusclePowered RangeInMiles ReachChangeRequiresReady ReloadTimeIsPerShot RetractingStock TwoHanded Thrown Unbalanced TwoHandedAndUnreadyAfterAttack MusketRest )
Possible values.
const LastType Type = MusketRest
LastType is the last valid value.
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.
Click to show internal directories.
Click to hide internal directories.