pet_home_server/src/server/main.go
2024-12-31 14:38:22 +08:00

29 lines
552 B
Go

package main
import (
"server/conf"
"server/game"
"server/gate"
"server/pkg/github.com/name5566/leaf"
lconf "server/pkg/github.com/name5566/leaf/conf"
)
func main() {
lconf.LogLevel = conf.Server.LogLevel
lconf.LogPath = conf.Server.LogPath
lconf.LogFlag = conf.LogFlag
lconf.ConsolePort = conf.Server.ConsolePort
lconf.ProfilePath = conf.Server.ProfilePath
lconf.ListenAddr = conf.Server.ListenAddr
lconf.CenterAddr = conf.Server.CenterAddr
lconf.PendingWriteNum = conf.PendingWriteNum
leaf.Run(
game.Module,
gate.Module,
)
}