You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
331 B
14 lines
331 B
|
1 year ago
|
package gate
|
||
|
|
|
||
|
|
import (
|
||
|
|
"server/call"
|
||
|
|
"server/common"
|
||
|
|
"server/pb"
|
||
|
|
)
|
||
|
|
|
||
|
|
func loadConfig() error {
|
||
|
|
c := map[int][]func(*pb.ReloadGameConfig) error{}
|
||
|
|
c[common.ReloadConfigServerVersion] = []func(*pb.ReloadGameConfig) error{func(rgc *pb.ReloadGameConfig) error { return call.LoadServerVersions() }}
|
||
|
|
return call.LoadSomeConfigs(c)
|
||
|
|
}
|