package main import ( "server/conf" "server/game" "server/game/teen" "server/gate" "server/hall" "server/login" "github.com/name5566/leaf" lconf "github.com/name5566/leaf/conf" ) func setupConfig() { lconf.LogLevel = conf.Server.LogLevel lconf.LogPath = conf.Server.LogPath lconf.LogFlag = conf.LogFlag lconf.ConsolePort = conf.Server.ConsolePort lconf.ProfilePath = conf.Server.ProfilePath } func main() { setupConfig() teen.InitGame() leaf.Run( gate.Module, login.Module, game.Module, hall.Module, ) }