main.go 427 B

123456789101112131415161718192021222324
  1. package main
  2. import (
  3. "github.com/name5566/leaf"
  4. lconf "github.com/name5566/leaf/conf"
  5. "server/conf"
  6. "server/game"
  7. "server/gate"
  8. "server/login"
  9. )
  10. func main() {
  11. lconf.LogLevel = conf.Server.LogLevel
  12. lconf.LogPath = conf.Server.LogPath
  13. lconf.LogFlag = conf.LogFlag
  14. lconf.ConsolePort = conf.Server.ConsolePort
  15. lconf.ProfilePath = conf.Server.ProfilePath
  16. leaf.Run(
  17. game.Module,
  18. gate.Module,
  19. login.Module,
  20. )
  21. }