2017-10-06 02:56:06 +04:00
|
|
|
|
// i2_bot – Instinct PokememBro Bot
|
|
|
|
|
// Copyright (c) 2017 Vladimir "fat0troll" Hodakov
|
|
|
|
|
|
2017-11-21 06:06:32 +04:00
|
|
|
|
package pokedexer
|
2017-10-06 02:56:06 +04:00
|
|
|
|
|
|
|
|
|
import (
|
2017-10-18 07:03:34 +04:00
|
|
|
|
// local
|
2018-01-21 23:28:53 +04:00
|
|
|
|
"git.wtfteam.pro/fat0troll/i2_bot/lib/appcontext"
|
|
|
|
|
"git.wtfteam.pro/fat0troll/i2_bot/lib/pokedexer/pokedexerinterface"
|
2017-10-06 02:56:06 +04:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var (
|
2017-10-18 07:03:34 +04:00
|
|
|
|
c *appcontext.Context
|
2017-10-06 02:56:06 +04:00
|
|
|
|
)
|
|
|
|
|
|
2017-11-21 06:06:32 +04:00
|
|
|
|
// Pokedexer is a function-handling struct for package pokedexer
|
|
|
|
|
type Pokedexer struct{}
|
2017-10-06 02:56:06 +04:00
|
|
|
|
|
2017-10-18 09:39:50 +04:00
|
|
|
|
// New is an initialization function for appcontext
|
2017-10-06 02:56:06 +04:00
|
|
|
|
func New(ac *appcontext.Context) {
|
2017-10-18 07:03:34 +04:00
|
|
|
|
c = ac
|
2017-11-21 06:06:32 +04:00
|
|
|
|
p := &Pokedexer{}
|
|
|
|
|
c.RegisterPokedexerInterface(pokedexerinterface.PokedexerInterface(p))
|
2017-10-06 02:56:06 +04:00
|
|
|
|
}
|