| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- // Code generated by excel export. DO NOT EDIT.
- package data
- import (
- "f1-game/internal/types"
- )
- var NodeState = &nodeStateConfig{}
- func init() {
- _allList = append(_allList, NodeState)
- }
- type (
- NodeStateRow struct {
- State int32 `json:"state"` // 节点启动后默认状态 0:开放,1:维护,2:关闭
- GmEnable bool `json:"gmEnable"` // 是否启用GM
- MaxOfOnline int64 `json:"maxOfOnline"` // 最高在线人数
- MaxOfPlayer int64 `json:"maxOfPlayer"` // 最大注册玩家数
- UpdateGameNodeInterval int64 `json:"updateGameNodeInterval"` // 更新游戏节点的间隔时间(秒)
- IpList types.List[string] `json:"ipList"` // ip 白名单
- UidList types.List[int64] `json:"uidList"` // uid 白名单
- }
- nodeStateConfig struct {
- baseConfig
- NodeStateRow
- }
- )
- func (p *nodeStateConfig) Name() string {
- return "node_state"
- }
- func (p *nodeStateConfig) Init() {
- }
- func (p *nodeStateConfig) OnLoad(maps interface{}, reload bool) (int, error) {
- if reload && p.denyLoad {
- return 0, nil
- }
- err := DecodeData(maps, &p.NodeStateRow)
- return 1, err
- }
- // func (p *nodeStateConfig) OnAfterLoad(_ bool) {
- // }
|