Documentation ¶ Index ¶ func NewWeapon(c *core.Core, char *character.CharWrapper, p weapon.WeaponProfile) (weapon.Weapon, error) type Weapon func (w *Weapon) Init() error func (w *Weapon) SetIndex(idx int) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewWeapon ¶ func NewWeapon(c *core.Core, char *character.CharWrapper, p weapon.WeaponProfile) (weapon.Weapon, error) Types ¶ type Weapon ¶ type Weapon struct { Index int } func (*Weapon) Init ¶ func (w *Weapon) Init() error func (*Weapon) SetIndex ¶ func (w *Weapon) SetIndex(idx int) Source Files ¶ View all Source files polarstar.go Click to show internal directories. Click to hide internal directories.