2020-04-30 12:25:13 +03:00
|
|
|
package app
|
|
|
|
|
2023-12-29 18:00:11 +03:00
|
|
|
import "mapserver/types"
|
2020-04-30 12:25:13 +03:00
|
|
|
|
|
|
|
type Config struct {
|
|
|
|
ConfigVersion int `json:"configversion"`
|
|
|
|
Port int `json:"port"`
|
|
|
|
EnablePrometheus bool `json:"enableprometheus"`
|
|
|
|
EnableRendering bool `json:"enablerendering"`
|
|
|
|
EnableSearch bool `json:"enablesearch"`
|
|
|
|
EnableInitialRendering bool `json:"enableinitialrendering"`
|
|
|
|
EnableTransparency bool `json:"enabletransparency"`
|
|
|
|
EnableMediaRepository bool `json:"enablemediarepository"`
|
|
|
|
Webdev bool `json:"webdev"`
|
|
|
|
WebApi *WebApiConfig `json:"webapi"`
|
2023-12-29 18:00:11 +03:00
|
|
|
Layers []*types.Layer `json:"layers"`
|
2020-04-30 12:25:13 +03:00
|
|
|
RenderingFetchLimit int `json:"renderingfetchlimit"`
|
|
|
|
RenderingJobs int `json:"renderingjobs"`
|
|
|
|
RenderingQueue int `json:"renderingqueue"`
|
|
|
|
IncrementalRenderingTimer string `json:"incrementalrenderingtimer"`
|
|
|
|
MapObjects *MapObjectConfig `json:"mapobjects"`
|
|
|
|
MapBlockAccessorCfg *MapBlockAccessorConfig `json:"mapblockaccessor"`
|
|
|
|
DefaultOverlays []string `json:"defaultoverlays"`
|
2022-12-16 10:07:47 +03:00
|
|
|
Skins *SkinsConfig `json:"skins"`
|
2023-09-18 07:47:29 +03:00
|
|
|
WorldPath string `json:"worldpath"`
|
|
|
|
DataPath string `json:"datapath"`
|
2023-12-29 18:00:11 +03:00
|
|
|
ColorsTxtPath string `json:"colorstxtpath"`
|
2020-04-30 12:25:13 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type MapBlockAccessorConfig struct {
|
|
|
|
Expiretime string `json:"expiretime"`
|
|
|
|
Purgetime string `json:"purgetime"`
|
|
|
|
MaxItems int `json:"maxitems"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type MapObjectConfig struct {
|
2024-06-06 20:40:36 +03:00
|
|
|
Areas bool `json:"areas"`
|
|
|
|
Bones bool `json:"bones"`
|
|
|
|
Protector bool `json:"protector"`
|
|
|
|
XPProtector bool `json:"xpprotector"`
|
|
|
|
PrivProtector bool `json:"privprotector"`
|
|
|
|
TechnicQuarry bool `json:"technic_quarry"`
|
|
|
|
TechnicSwitch bool `json:"technic_switch"`
|
|
|
|
TechnicAnchor bool `json:"technic_anchor"`
|
|
|
|
TechnicReactor bool `json:"technic_reactor"`
|
|
|
|
LuaController bool `json:"luacontroller"`
|
|
|
|
Digiterms bool `json:"digiterms"`
|
|
|
|
Digilines bool `json:"digilines"`
|
|
|
|
Travelnet bool `json:"travelnet"`
|
|
|
|
MapserverPlayer bool `json:"mapserver_player"`
|
|
|
|
MapserverPOI bool `json:"mapserver_poi"`
|
|
|
|
MapserverLabel bool `json:"mapserver_label"`
|
|
|
|
MapserverTrainline bool `json:"mapserver_trainline"`
|
|
|
|
MapserverBorder bool `json:"mapserver_border"`
|
|
|
|
TileServerLegacy bool `json:"tileserverlegacy"`
|
|
|
|
Mission bool `json:"mission"`
|
|
|
|
Jumpdrive bool `json:"jumpdrive"`
|
|
|
|
Smartshop bool `json:"smartshop"`
|
|
|
|
Fancyvend bool `json:"fancyvend"`
|
|
|
|
ATM bool `json:"atm"`
|
|
|
|
Train bool `json:"train"`
|
|
|
|
TrainSignal bool `json:"trainsignal"`
|
|
|
|
Minecart bool `json:"minecart"`
|
|
|
|
Locator bool `json:"locator"`
|
|
|
|
Signs bool `json:"signs"`
|
|
|
|
MapserverAirutils bool `json:"mapserver_airutils"`
|
|
|
|
Phonograph bool `json:"phonograph"`
|
|
|
|
UnifiefMoneyAreaForSale bool `json:"um_area_forsale"`
|
2020-04-30 12:25:13 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type WebApiConfig struct {
|
|
|
|
//mapblock debugging
|
|
|
|
EnableMapblock bool `json:"enablemapblock"`
|
|
|
|
|
|
|
|
//mod http bridge secret
|
|
|
|
SecretKey string `json:"secretkey"`
|
|
|
|
}
|
2022-12-16 10:07:47 +03:00
|
|
|
|
|
|
|
type SkinsConfig struct {
|
|
|
|
EnableSkinsDB bool `json:"enableskinsdb"`
|
|
|
|
SkinsPath string `json:"skinspath"`
|
|
|
|
}
|