简化配置表读取

This commit is contained in:
flswld
2023-03-16 16:26:14 +08:00
parent 2a3ce25898
commit 5e5492943d
51 changed files with 418 additions and 2560 deletions

View File

@@ -7,7 +7,7 @@ import (
_ "net/http/pprof"
"os"
"hk4e/fight/app"
"hk4e/anticheat/app"
"hk4e/pkg/statsviz_serve"
)

View File

@@ -3,16 +3,16 @@ package main
import (
"context"
"hk4e/fight/app"
"hk4e/anticheat/app"
"github.com/spf13/cobra"
)
func FightCmd() *cobra.Command {
func AnticheatCmd() *cobra.Command {
var cfg string
c := &cobra.Command{
Use: "fight",
Short: "fight server",
Use: "anticheat",
Short: "anticheat server",
RunE: func(cmd *cobra.Command, args []string) error {
return app.Run(context.Background(), cfg)
},

View File

@@ -23,7 +23,7 @@ func main() {
NodeCmd(),
DispatchCmd(),
GateCmd(),
FightCmd(),
AnticheatCmd(),
PathfindingCmd(),
GSCmd(),
GMCmd(),