合并杂项功能服务器节点到multi服务器节点

This commit is contained in:
flswld committed 2023-10-22 19:46:08 +08:00
1 parent 64699c23d7
commit 6cca998915
42 files changed
+344 -647

No files matched your search

+1 -2
View File
@@ -25,9 +25,8 @@ func main() {
NodeCmd(),
DispatchCmd(),
GateCmd(),
AnticheatCmd(),
PathfindingCmd(),
GSCmd(),
MultiCmd(),
GMCmd(),
)
+4 -4
View File
@@ -3,17 +3,17 @@ package main
import (
"context"
"hk4e/anticheat/app"
"hk4e/multi/app"
"github.com/spf13/cobra"
)
func AnticheatCmd() *cobra.Command {
func MultiCmd() *cobra.Command {
var cfg string
app.APPVERSION = VERSION
c := &cobra.Command{
Use: "anticheat",
Short: "anticheat server",
Use: "multi",
Short: "multi server",
RunE: func(cmd *cobra.Command, args []string) error {
return app.Run(context.Background(), cfg)
},
-23
View File
@@ -1,23 +0,0 @@
package main
import (
"context"
"hk4e/pathfinding/app"
"github.com/spf13/cobra"
)
func PathfindingCmd() *cobra.Command {
var cfg string
app.APPVERSION = VERSION
c := &cobra.Command{
Use: "pathfinding",
Short: "pathfinding server",
RunE: func(cmd *cobra.Command, args []string) error {
return app.Run(context.Background(), cfg)
},
}
c.Flags().StringVar(&cfg, "config", "application.toml", "config file")
return c
}