2019-01-18 10:47:38 +03:00
|
|
|
package app
|
|
|
|
|
|
|
|
import (
|
2019-01-18 11:13:37 +03:00
|
|
|
"mapserver/colormapping"
|
|
|
|
"mapserver/db"
|
2019-01-28 16:33:32 +03:00
|
|
|
"mapserver/eventbus"
|
2019-01-18 11:13:37 +03:00
|
|
|
"mapserver/mapblockaccessor"
|
|
|
|
"mapserver/mapblockrenderer"
|
2019-01-21 17:13:33 +03:00
|
|
|
"mapserver/mapobjectdb"
|
2019-01-21 18:27:31 +03:00
|
|
|
"mapserver/params"
|
2019-02-08 18:02:24 +03:00
|
|
|
"mapserver/settings"
|
2019-01-18 11:13:37 +03:00
|
|
|
"mapserver/tilerenderer"
|
2019-01-18 10:47:38 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2019-02-08 23:00:39 +03:00
|
|
|
Version = "0.1.0"
|
2019-01-18 10:47:38 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
type App struct {
|
2019-01-18 11:13:37 +03:00
|
|
|
Params params.ParamsType
|
|
|
|
Config *Config
|
2019-02-08 16:57:36 +03:00
|
|
|
Worldconfig map[string]string
|
2019-01-18 10:47:38 +03:00
|
|
|
|
2019-01-21 18:27:31 +03:00
|
|
|
Blockdb db.DBAccessor
|
|
|
|
Objectdb mapobjectdb.DBAccessor
|
2019-02-07 11:11:11 +03:00
|
|
|
Settings *settings.Settings
|
2019-01-18 10:47:38 +03:00
|
|
|
|
2019-01-18 11:13:37 +03:00
|
|
|
BlockAccessor *mapblockaccessor.MapBlockAccessor
|
|
|
|
Colormapping *colormapping.ColorMapping
|
|
|
|
Mapblockrenderer *mapblockrenderer.MapBlockRenderer
|
|
|
|
Tilerenderer *tilerenderer.TileRenderer
|
2019-01-28 16:33:32 +03:00
|
|
|
|
|
|
|
WebEventbus *eventbus.Eventbus
|
2019-01-18 10:47:38 +03:00
|
|
|
}
|