itemtable

package
v0.0.0-...-5ad4fe9 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApSupplies

type ApSupplies struct {
	ApSupplyLt60  ApSupplyLt `json:"ap_supply_lt_60"`
	ApSupplyLt100 ApSupplyLt `json:"ap_supply_lt_100"`
}

type ApSupplyLt

type ApSupplyLt struct {
	ID    string `json:"id"`
	Ap    int64  `json:"ap"`
	HasTs bool   `json:"hasTs"`
}

type BuildingProductList

type BuildingProductList struct {
	RoomType  RoomType `json:"roomType"`
	FormulaID string   `json:"formulaId"`
}

type ClassifyType

type ClassifyType string
const (
	Consume  ClassifyType = "CONSUME"
	Material ClassifyType = "MATERIAL"
	None     ClassifyType = "NONE"
	Normal   ClassifyType = "NORMAL"
)

type ExpItem

type ExpItem struct {
	ID      string `json:"id"`
	GainExp int64  `json:"gainExp"`
}

type Item

type Item struct {
	ItemID              string                `json:"itemId"`
	Name                string                `json:"name"`
	Description         string                `json:"description"`
	Rarity              int64                 `json:"rarity"`
	IconID              string                `json:"iconId"`
	StackIconID         *string               `json:"stackIconId"`
	SortID              int64                 `json:"sortId"`
	Usage               string                `json:"usage"`
	ObtainApproach      *string               `json:"obtainApproach"`
	ClassifyType        ClassifyType          `json:"classifyType"`
	ItemType            string                `json:"itemType"`
	StageDropList       []StageDropList       `json:"stageDropList"`
	BuildingProductList []BuildingProductList `json:"buildingProductList"`
}

type ItemTable

type ItemTable struct {
	Items          map[string]Item          `json:"items"`
	ExpItems       map[string]ExpItem       `json:"expItems"`
	PotentialItems map[string]PotentialItem `json:"potentialItems"`
	ApSupplies     ApSupplies               `json:"apSupplies"`
}

func Unmarshal

func Unmarshal(data []byte) (ItemTable, error)

func (*ItemTable) Marshal

func (r *ItemTable) Marshal() ([]byte, error)

type Occurrance

type Occurrance string
const (
	Almost    Occurrance = "ALMOST"
	Always    Occurrance = "ALWAYS"
	Often     Occurrance = "OFTEN"
	Sometimes Occurrance = "SOMETIMES"
	Usual     Occurrance = "USUAL"
)

type PotentialItem

type PotentialItem struct {
	Pioneer string `json:"PIONEER"`
	Warrior string `json:"WARRIOR"`
	Sniper  string `json:"SNIPER"`
	Tank    string `json:"TANK"`
	Medic   string `json:"MEDIC"`
	Support string `json:"SUPPORT"`
	Caster  string `json:"CASTER"`
	Special string `json:"SPECIAL"`
}

type RoomType

type RoomType string
const (
	Manufacture RoomType = "MANUFACTURE"
	Workshop    RoomType = "WORKSHOP"
)

type StageDropList

type StageDropList struct {
	StageID    string     `json:"stageId"`
	Occurrance Occurrance `json:"occPer"`
}

Jump to

Keyboard shortcuts

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