YAML files for rarely changed data. New weapon stats.
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
@@ -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"`
|
||||
}
|
||||
|
@@ -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"`
|
||||
}
|
||||
|
@@ -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"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user