weapon

package
v0.0.0-...-1c65c5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidWeaponType = errors.New("invalid weapon type")

Functions

func Init

func Init() error

func ObjectMap

func ObjectMap() map[string]*Weapon

Types

type Weapon

type Weapon struct {
	ID          string      `yaml:"id"`
	Star        star.Star   `yaml:"star"`
	Type        *types.Type `yaml:"-"`
	Names       []string    `yaml:"names"`
	NameAliases []string    `yaml:"nameAliases"`
}
func Search(name string) []*Weapon

func (*Weapon) Name

func (w *Weapon) Name(ctx telebot.Context) string

func (*Weapon) UnmarshalYAML

func (w *Weapon) UnmarshalYAML(n *yaml.Node) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL