inventory

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2017 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TypeIDs map[int64]*Type

Functions

func Import

func Import(db *sql.DB, r io.Reader) error

Import imports from a reader containing typeID YAML to the table `invtypes`

func InsertBonuses

func InsertBonuses(stmt, insertTranslations *sql.Stmt, typeID, skillID int64, bonuses []Bonus) error

func InsertCertMasteryStatement

func InsertCertMasteryStatement(tx *sql.Tx) (*sql.Stmt, error)

func InsertInvTypeStatement

func InsertInvTypeStatement(tx *sql.Tx) (*sql.Stmt, error)

func InsertTraitStatement

func InsertTraitStatement(tx *sql.Tx) (*sql.Stmt, error)

Types

type Bonus

type Bonus struct {
	Amount     *float64          `yaml:"bonus"`
	BonusText  map[string]string `yaml:"bonusText"`
	Importance int64
	UnitID     *int64 `yaml:"unitID"`
}

type Traits

type Traits struct {
	RoleBonuses []Bonus           `yaml:"roleBonuses"`
	Types       map[int64][]Bonus `yaml:"types"`
}

type Type

type Type struct {
	BasePrice        *float64 `yaml:"basePrice"`
	Capacity         float64
	Description      map[string]string
	FactionID        *int64 `yaml:"factionID"`
	GraphicID        int64  `yaml:"graphicID"`
	GroupID          int64  `yaml:"groupID"`
	IconID           *int64 `yaml:"iconID"`
	MarketGroupID    *int64 `yaml:"marketGroupID"`
	Mass             float64
	Masteries        map[string][]int64
	Name             map[string]string
	PortionSize      *int64 `yaml:"portionSize"`
	Published        bool
	RaceID           *int64 `yaml:"raceID"`
	Radius           *float64
	SoundID          *int64 `yaml:"soundID"`
	SofFactionName   string `yaml:"sofFactionName"`
	SofMaterialSetID *int64 `yaml:"sofMaterialSetID"`
	Volume           float64
	Traits           *Traits `yaml:"traits"`
}

Jump to

Keyboard shortcuts

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