Move rarely changed data to datamappings, fix profile updating
As result of profile format change, introduced in game update yesterday we need to change profile regexp. As result of some refactoring, rarely changed data removed from database and added to sources of bot.
This commit is contained in:
12
lib/datamapping/elements.go
Normal file
12
lib/datamapping/elements.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// i2_bot – Instinct PokememBro Bot
|
||||
// Copyright (c) 2017-2018 Vladimir "fat0troll" Hodakov
|
||||
|
||||
package datamapping
|
||||
|
||||
// Element is a struct, which represents element data
|
||||
type Element struct {
|
||||
ID int
|
||||
Symbol string
|
||||
Name string
|
||||
LeagueID int
|
||||
}
|
11
lib/datamapping/leagues.go
Normal file
11
lib/datamapping/leagues.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// i2_bot – Instinct PokememBro Bot
|
||||
// Copyright (c) 2017-2018 Vladimir "fat0troll" Hodakov
|
||||
|
||||
package datamapping
|
||||
|
||||
// League is a struct, which represents league data
|
||||
type League struct {
|
||||
ID int
|
||||
Symbol string
|
||||
Name string
|
||||
}
|
11
lib/datamapping/locations.go
Normal file
11
lib/datamapping/locations.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// i2_bot – Instinct PokememBro Bot
|
||||
// Copyright (c) 2017-2018 Vladimir "fat0troll" Hodakov
|
||||
|
||||
package datamapping
|
||||
|
||||
// Location is a struct, which represents location data
|
||||
type Location struct {
|
||||
ID int
|
||||
Symbol string
|
||||
Name string
|
||||
}
|
12
lib/datamapping/weapons.go
Normal file
12
lib/datamapping/weapons.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// i2_bot – Instinct PokememBro Bot
|
||||
// Copyright (c) 2017-2018 Vladimir "fat0troll" Hodakov
|
||||
|
||||
package datamapping
|
||||
|
||||
// Weapon is a struct, which represents weapon data
|
||||
type Weapon struct {
|
||||
ID int
|
||||
Name string
|
||||
Power int
|
||||
Price int
|
||||
}
|
Reference in New Issue
Block a user