Blame view

cmd/gameserver/plugin/protocode.go 315 Bytes
77f5eec7   zhangqijia   plugin 插件热更 接口
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  package main
  
  import (
  	"pro2d/pb"
  	"pro2d/utils/logger"
  )
  
  func GetActionMap() map[interface{}]interface{} {
  	logger.Debug("init protocode...")
  	am := make(map[interface{}]interface{})
  	am[pb.ProtoCode_HeartReq] = HeartRpc
  	am[pb.ProtoCode_LoginReq] = LoginRpc
  	am[pb.ProtoCode_CreateReq] = CreateRpc
  
  	return am
  }