store

package
v0.0.0-...-b6085ce Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Regions = []string{
		"North America",
		"South America",
		"South East Asia",
		"North Africa",
		"Middle East",
		"Europe",
	}

	Models = []string{
		"G19",
		"1911",
		"M4",
		"AK-47",
		"RPG",
		"Mk19",
		"M24",
		"M107",
		"M2",
		"GAU-17",
	}

	Prices = map[string]int{
		"G19":    600,
		"1911":   1000,
		"M4":     1400,
		"AK-47":  2200,
		"RPG":    15000,
		"Mk19":   41000,
		"M24":    18000,
		"M107":   27000,
		"M2":     62000,
		"GAU-17": 250000,
	}
)

Functions

This section is empty.

Types

type Store

type Store struct {
	Region    string
	Event     string
	Inventory map[string]*Weapon
	Prices    map[string]int
	Table     *table.Table
}

func New

func New(region string) *Store

func (*Store) UpdateTable

func (s *Store) UpdateTable()

type Weapon

type Weapon struct {
	Name       string
	Price, Qty int
}

Jump to

Keyboard shortcuts

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