Documentation ¶
Index ¶
- func GetConfigBySign[C any](sign ConfigSign) C
- func GetIndexConfig() map[int]map[string]*IndexConfig
- func LoadConfigBySign(sign ConfigSign)
- func LoadEasyConfig()
- func LoadIndexConfig()
- func SetConfigBySign[C any](sign ConfigSign, config C)
- func SetEasyConfig(config *EasyConfig)
- func SetIndexConfig(config map[int]map[string]*IndexConfig)
- type ConfigSign
- type EasyConfig
- type EasyConfigInfo
- type EasyConfigInfoInfo
- type EasyConfigInfoInfoExp
- type EasyConfigOther
- type IndexConfig
- type IndexConfigInfo
- type IndexConfigInfoInfo
- type IndexConfigInfoInfoExp
- type IndexConfigOther
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIndexConfig ¶
func GetIndexConfig() map[int]map[string]*IndexConfig
GetIndexConfig 获取有索引, 该函数将返回已加载的配置
func SetConfigBySign ¶
func SetConfigBySign[C any](sign ConfigSign, config C)
SetConfigBySign 根据签名设置配置
func SetEasyConfig ¶
func SetEasyConfig(config *EasyConfig)
SetEasyConfig 设置无索引, 该函数将待加载的配置进行存储,不影响已加载的配置
func SetIndexConfig ¶
func SetIndexConfig(config map[int]map[string]*IndexConfig)
SetIndexConfig 设置有索引, 该函数将待加载的配置进行存储,不影响已加载的配置
Types ¶
type ConfigSign ¶
type ConfigSign = string // 配置签名
var ( IndexConfigSign ConfigSign = "IndexConfig" EasyConfigSign ConfigSign = "EasyConfig" )
type EasyConfig ¶
type EasyConfig struct { Id int `json:"id,omitempty"` Count string `json:"count,omitempty"` Award []string `json:"award,omitempty"` Info *EasyConfigInfo `json:"info,omitempty"` Other []*EasyConfigOther `json:"other,omitempty"` }
EasyConfig 无索引
type EasyConfigInfo ¶
type EasyConfigInfo struct { Id int `json:"id,omitempty"` Name string `json:"name,omitempty"` Info *EasyConfigInfoInfo `json:"info,omitempty"` }
EasyConfigInfo 信息
type EasyConfigInfoInfo ¶
type EasyConfigInfoInfo struct { Lv int `json:"lv,omitempty"` Exp *EasyConfigInfoInfoExp `json:"exp,omitempty"` }
EasyConfigInfoInfo 信息
type EasyConfigInfoInfoExp ¶
type EasyConfigInfoInfoExp struct { Mux int `json:"mux,omitempty"` Count int `json:"count,omitempty"` }
EasyConfigInfoInfoExp 信息
type EasyConfigOther ¶
EasyConfigOther 信息2
type IndexConfig ¶
type IndexConfig struct { Id int `json:"id,omitempty"` Count string `json:"count,omitempty"` Award []string `json:"award,omitempty"` Info *IndexConfigInfo `json:"info,omitempty"` Other []*IndexConfigOther `json:"other,omitempty"` }
IndexConfig 有索引
type IndexConfigInfo ¶
type IndexConfigInfo struct { Id int `json:"id,omitempty"` Name string `json:"name,omitempty"` Info *IndexConfigInfoInfo `json:"info,omitempty"` }
IndexConfigInfo 信息
type IndexConfigInfoInfo ¶
type IndexConfigInfoInfo struct { Lv int `json:"lv,omitempty"` Exp *IndexConfigInfoInfoExp `json:"exp,omitempty"` }
IndexConfigInfoInfo 信息
type IndexConfigInfoInfoExp ¶
type IndexConfigInfoInfoExp struct { Mux int `json:"mux,omitempty"` Count int `json:"count,omitempty"` }
IndexConfigInfoInfoExp 信息
type IndexConfigOther ¶
IndexConfigOther 信息2
Click to show internal directories.
Click to hide internal directories.