Documentation ¶
Index ¶
Constants ¶
View Source
const (
SkipValue = "~"
)
Variables ¶
View Source
var Defaults = map[string]interface{}{ "DEnableInfos": false, "DInfos": []ConfiguredInfo{}, "DEnableTickers": false, "DTickers": []ConfiguredTicker{}, "DHideWatermarkTicker": false, }
defaults
View Source
var DisplayTypes = map[string]string{
"everyDay": "0",
"once": "1",
"fullTime": "2",
"onlyInfoPage": "3",
}
View Source
var InfoTypes = map[string]string{
"text": "0",
"image": "1",
"feed": "2",
"roulette": "10",
"shop": "11",
"event": "12",
"rouletteInfo": "14",
"quickInfo": "15",
"countryText": "16",
"countryImage": "17",
}
Functions ¶
Types ¶
type ConfigFile ¶
type ConfigFile struct { EnableInfos bool `json:"enableInformation"` Infos []ConfiguredInfo `json:"infos"` EnableTickers bool `json:"enableTickers"` Tickers []ConfiguredTicker `json:"tickers"` HideWatermarkTicker bool `json:"hideWatermarkTicker"` }
var CFile ConfigFile
type ConfiguredInfo ¶
type ConfiguredInfo struct { ID int64 `json:"id"` Priority int64 `json:"priority"` StartTime int64 `json:"startTime"` EndTime int64 `json:"endTime"` Data InfoData `json:"content"` }
func (ConfiguredInfo) ConstructParam ¶
func (c ConfiguredInfo) ConstructParam() string
func (ConfiguredInfo) HasValidDisplayType ¶
func (c ConfiguredInfo) HasValidDisplayType() bool
func (ConfiguredInfo) HasValidInfoType ¶
func (c ConfiguredInfo) HasValidInfoType() bool
type ConfiguredTicker ¶
type InfoData ¶
type InfoData struct { DisplayType string `json:"displayType,omitempty"` // if left out of param, game uses Message string `json:"message,omitempty"` // if left out of param, game uses empty string ImageID string `json:"imageID,omitempty"` // if left out of param game uses "-1". if used with text, this is the image that appears in the info list (ad_<id>_<regionCode>.jpg) InfoType string `json:"infoType,omitempty"` // if left out of param, game uses Text Extra string `json:"extra,omitempty"` // desired region code if DisplayType == countryText or countryImage; web address otherwise }
Click to show internal directories.
Click to hide internal directories.