weapon

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Weapon

type Weapon interface {
	SetIndex(int)
	Init() error
}

type WeaponClass

type WeaponClass int
const (
	WeaponClassSword WeaponClass = iota
	WeaponClassClaymore
	WeaponClassSpear
	WeaponClassBow
	WeaponClassCatalyst
	EndWeaponClass
)

func (WeaponClass) MarshalJSON

func (e WeaponClass) MarshalJSON() ([]byte, error)

func (WeaponClass) String

func (w WeaponClass) String() string

func (*WeaponClass) UnmarshalJSON

func (e *WeaponClass) UnmarshalJSON(b []byte) error

type WeaponProfile

type WeaponProfile struct {
	Name     string         `json:"name"`
	Key      keys.Weapon    `json:"key"` //use this to match with weapon curve mapping
	Class    WeaponClass    `json:"-"`
	Refine   int            `json:"refine"`
	Level    int            `json:"level"`
	MaxLevel int            `json:"max_level"`
	Atk      float64        `json:"base_atk"`
	Params   map[string]int `json:"-"`
}

Jump to

Keyboard shortcuts

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