Blame view

cmd/gameserver/plugin/protocode.go 316 Bytes
77f5eec7   zhangqijia   plugin 插件热更 接口
1
2
3
  package main
  
  import (
765431a4   zhangqijia   增加schema接口, 抽象 mo...
4
  	"pro2d/common/logger"
77f5eec7   zhangqijia   plugin 插件热更 接口
5
  	"pro2d/pb"
77f5eec7   zhangqijia   plugin 插件热更 接口
6
7
8
9
10
11
12
13
14
15
16
  )
  
  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
  }