MCPcopy Create free account
hub / github.com/Alex-Rachel/TGameServer / InitGameController

Function InitGameController

app/controllers/gamecontroller.go:9–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7)
8
9func 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
16func UpPos(client *server.Client, mainpack *GameProto.MainPack, isUdp bool) (*GameProto.MainPack, error) {
17 if client == nil {

Callers 1

InitControllersFunction · 0.92

Calls 1

AddFunctionMethod · 0.80

Tested by

no test coverage detected