Blame view

cmd/gameserver/action/protocode.go 726 Bytes
69d286a7   zhangqijia   fix: 插件用来做部分热更
1
  package action
77f5eec7   zhangqijia   plugin 插件热更 接口
2
3
  
  import (
765431a4   zhangqijia   增加schema接口, 抽象 mo...
4
  	"pro2d/common/logger"
77f5eec7   zhangqijia   plugin 插件热更 接口
5
  	"pro2d/pb"
77f5eec7   zhangqijia   plugin 插件热更 接口
6
7
8
9
10
  )
  
  func GetActionMap() map[interface{}]interface{} {
  	logger.Debug("init protocode...")
  	am := make(map[interface{}]interface{})
2e0d2609   zhangqijia   fix: 英雄升级返回值+prot...
11
  	am[uint32(pb.ProtoCode_HeartRpc)] = HeartRpc
f8ce769e   zhangqijia   fix: rpc = rar + ...
12
13
14
  	am[uint32(pb.ProtoCode_RoleStartBattleRpc)] = RoleStartBattleRpc
  	am[uint32(pb.ProtoCode_RoleEndBattleRpc)] = RoleEndBattleRpc
  	am[uint32(pb.ProtoCode_HeroUpLevelRpc)] = HeroUpLevelRpc
2e0d2609   zhangqijia   fix: 英雄升级返回值+prot...
15
16
17
18
  	am[uint32(pb.ProtoCode_CreateRpc)] = CreateRpc
  	am[uint32(pb.ProtoCode_ChangeTeamRpc)] = ChangeTeamRpc
  	am[uint32(pb.ProtoCode_HeroEquipReferRpc)] = HeroEquipReferRpc
  	am[uint32(pb.ProtoCode_RoleClearItemsRpc)] = RoleClearItemsRpc
2e0d2609   zhangqijia   fix: 英雄升级返回值+prot...
19
  	am[uint32(pb.ProtoCode_EquipmentDelRpc)] = EquipmentDelRpc
77f5eec7   zhangqijia   plugin 插件热更 接口
20
21
  
  	return am
8568cf44   zhangqijia   update preserve
22
  }