typelist

package
v0.0.0-...-c99ed23 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VehicleTypeSearch = make(TypeSearch)
	NationSearch      = make(TypeSearch)

	VehicleType = TypeList{
		1: DictRow{
			Short: `LT`,
			Key:   `lightTank`,
		},
		2: DictRow{
			Short: `MT`,
			Key:   `mediumTank`,
		},
		3: DictRow{
			Short: `HT`,
			Key:   `heavyTank`,
		},
		4: DictRow{
			Short: `TD`,
			Key:   `AT-SPG`,
		},
		5: DictRow{
			Short: `SPG`,
			Key:   `SPG`,
		},
	}

	Nation = TypeList{
		1: DictRow{
			Short: `德`,
			Key:   `germany`,
		},
		2: DictRow{
			Short: `苏`,
			Key:   `ussr`,
		},
		3: DictRow{
			Short: `美`,
			Key:   `usa`,
		},
		4: DictRow{
			Short: `中`,
			Key:   `china`,
		},
		5: DictRow{
			Short: `英`,
			Key:   `uk`,
		},
		6: DictRow{
			Short: `法`,
			Key:   `france`,
		},
		7: DictRow{
			Short: `捷`,
			Key:   `czech`,
		},
		8: DictRow{
			Short: `瑞`,
			Key:   `sweden`,
		},
		9: DictRow{
			Short: `倭`,
			Key:   `japan`,
		},
	}
)

Functions

func ConvertJSON

func ConvertJSON(in TypeList) []byte

Types

type DictRow

type DictRow struct {
	Short string
	Key   string
}

type Score

type Score struct {
	G1max int `json:"g1max"`
	G1min int `json:"g1min"`
	G2max int `json:"g2max"`
	G2min int `json:"g2min"`
	G3max int `json:"g3max"`
	G3min int `json:"g3min"`
	M1max int `json:"m1max"`
	M1min int `json:"m1min"`
	M2max int `json:"m2max"`
	M2min int `json:"m2min"`
	M3max int `json:"m3max"`
	M3min int `json:"m3min"`
	M4max int `json:"m4max"`
	M4min int `json:"m4min"`
}

type TypeList

type TypeList map[int]DictRow

type TypeSearch

type TypeSearch map[string]int

Jump to

Keyboard shortcuts

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