()
| 7 | ) |
| 8 | |
| 9 | func InitGameController() { |
| 10 | controller := server.InstanceController("Game", GameProto.RequestCode_Game) |
| 11 | controller.Funcs = map[string]interface{}{} |
| 12 | controller.Funcs, _ = controller.AddFunction("UpPos", UpPos) |
| 13 | server.RegisterController(GameProto.RequestCode_Game, controller) |
| 14 | } |
| 15 | |
| 16 | func UpPos(client *server.Client, mainpack *GameProto.MainPack, isUdp bool) (*GameProto.MainPack, error) { |
| 17 | if client == nil { |
no test coverage detected