Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Defaults = map[string]interface{}{ "DAllowEvents": false, "DCurrentEvents": []ConfiguredEvent{}, "DEnforceGlobal": false, }
defaults default variable names MUST be "D" + (nameOfVariable)
View Source
var EventTypes = map[string]int64{ "specialStage": enums.EventIDSpecialStage, "raidBoss": enums.EventIDRaidBoss, "collectObject": enums.EventIDCollectObject, "gacha": enums.EventIDGacha, "advert": enums.EventIDAdvert, "quick": enums.EventIDQuick, "bgm": enums.EventIDBGM, }
Functions ¶
Types ¶
type ConfigFile ¶
type ConfigFile struct { AllowEvents bool `json:"allowEvents,omitempty"` CurrentEvents []ConfiguredEvent `json:"currentEvents,omitempty"` EnforceGlobal bool `json:"enforceGlobal,omitempty"` }
var CFile ConfigFile
type ConfiguredEvent ¶
type ConfiguredEvent struct { ID int64 `json:"id"` Type string `json:"type"` StartTime int64 `json:"startTime"` // * EndTime int64 `json:"endTime"` // * }
func (ConfiguredEvent) HasValidType ¶
func (c ConfiguredEvent) HasValidType() bool
func (ConfiguredEvent) RealType ¶
func (c ConfiguredEvent) RealType() int64
Click to show internal directories.
Click to hide internal directories.