Archived
1

YAML files for rarely changed data. New weapon stats.

This commit is contained in:
2018-04-30 19:46:28 +04:00
parent 87214a9973
commit b1975a161c
14 changed files with 413 additions and 42 deletions

View File

@@ -5,8 +5,8 @@ package datamapping
// Element is a struct, which represents element data
type Element struct {
ID int
Symbol string
Name string
LeagueID int
ID int `yaml:"id"`
Symbol string `yaml:"symbol"`
Name string `yaml:"name"`
LeagueID int `yaml:"league_id"`
}

View File

@@ -5,7 +5,7 @@ package datamapping
// League is a struct, which represents league data
type League struct {
ID int
Symbol string
Name string
ID int `yaml:"id"`
Symbol string `yaml:"symbol"`
Name string `yaml:"name"`
}

View File

@@ -5,7 +5,7 @@ package datamapping
// Location is a struct, which represents location data
type Location struct {
ID int
Symbol string
Name string
ID int `yaml:"id"`
Symbol string `yaml:"symbol"`
Name string `yaml:"name"`
}

View File

@@ -5,8 +5,8 @@ package datamapping
// Weapon is a struct, which represents weapon data
type Weapon struct {
ID int
Name string
Power int
Price int
ID int `yaml:"id"`
Name string `yaml:"name"`
Power int `yaml:"power"`
Price int `yaml:"price"`
}