From 1b06af241c579ba495df414ca056be66a2ac151d Mon Sep 17 00:00:00 2001 From: NorthLan <6995syu@163.com> Date: Mon, 3 Oct 2022 21:45:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=B8=B8=E6=88=8F?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=EF=BC=9A=E6=8C=87=E6=8C=A5=E5=AE=98-?= =?UTF-8?q?=E8=8E=BD=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config-dev.yml | 56 +- config.yml | 50 +- config/config.go | 5 +- config/zhgmang_config.go | 40 + game/live_logic/manager.go | 11 + game/live_logic/zhgmang_handler.go | 278 +++ game/pb/game/zhgmang/Command.cs | 2684 ++++++++++++++++++++++++++++ game/pb/game/zhgmang/command.pb.go | 914 ++++++++++ game/pb/game/zhgmang/command.proto | 72 + game/pb/gen.bat | 2 +- game/pb/genCSharp.bat | 3 +- game/pb/room/Room.cs | 12 +- game/pb/room/room.pb.go | 49 +- game/pb/room/room.proto | 3 +- game/pb/routes.go | 15 + logs/dcg.log | 13 + 16 files changed, 4148 insertions(+), 59 deletions(-) create mode 100644 config/zhgmang_config.go create mode 100644 game/live_logic/zhgmang_handler.go create mode 100644 game/pb/game/zhgmang/Command.cs create mode 100644 game/pb/game/zhgmang/command.pb.go create mode 100644 game/pb/game/zhgmang/command.proto create mode 100644 logs/dcg.log diff --git a/config-dev.yml b/config-dev.yml index e13acd3..9c0f6e6 100644 --- a/config-dev.yml +++ b/config-dev.yml @@ -1,36 +1,36 @@ Server: Debug: false - Listen: 0.0.0.0:22222 + Listen: 0.0.0.0:8888 UserCenterRpc: Etcd: Hosts: - 127.0.0.1:2379 - Key: usercenter.rpc.dev + Key: usercenter.rpc NonBlock: true Kafka: Danmaku: Addr: [ "127.0.0.1:9093" ] - Topic: "danmaku-dev" - ConsumerGroup: "msgToPush-dev" + Topic: "danmaku" + ConsumerGroup: "msgToPush" Gift: Addr: [ "127.0.0.1:9093" ] - Topic: "gift-dev" - ConsumerGroup: "giftToPush-dev" + Topic: "gift" + ConsumerGroup: "giftToPush" GuardBuy: Addr: [ "127.0.0.1:9093" ] - Topic: "guardBuy-dev" - ConsumerGroup: "guardBuyConsumerG-dev" + Topic: "guardBuy" + ConsumerGroup: "guardBuyConsumerG" RewardPool: Addr: [ "127.0.0.1:9093" ] - Topic: "rewardPool-dev" - ConsumerGroup: "rewardPoolConsumerG-dev" + Topic: "rewardPool" + ConsumerGroup: "rewardPoolConsumerG" UserCoin: Addr: [ "127.0.0.1:9093" ] - Topic: "notify-user-coin-dev" - ConsumerGroup: "notifyUserCoinConsumerG-dev" + Topic: "notify-user-coin" + ConsumerGroup: "notifyUserCoinConsumerG" Game: # 30213831837876229 地球 - AdminUserId: [ 30096265903603717, 30213831837876229 ] + AdminUserId: [30096265903603717, 30213831837876229] DefaultRooms: - ID: 1 GameType: ZHG @@ -40,16 +40,18 @@ Game: GameType: ZHGWW2 - ID: 4 GameType: TEST + - ID: 5 + GameType: ZHGMang Zhg: # 1元=10 Coin (1元40个步兵) CoinFoodRatio: 4 OutbreakCount: 3 - OutbreakMaxCount: 30 # 3x10=30 + OutbreakMaxCount: 30 # 5*4=20字符 4x10=40 (最多40兵) OutbreakBaseCost: 5 OutbreakCostDict: 1: 1 # 步兵 - 2: 2.333 # 骑兵 - 3: 1.333 # 弓箭手 + 2: 2.34 # 骑兵 + 3: 1.34 # 弓箭手 4: 1 # 法师 Zhghz: Zhgfb: @@ -109,28 +111,36 @@ Game: SkillIds: [ "S0002" ] SuperSkill: # 干杯 超级技能 - GiftIds: [ 30606, 31049, 31251, 31116 ] + GiftIds: [30606, 31049, 31251, 31116] Zhgww2: GiftEffect: # 辣条 Free: [ 1 ] - # 牛哇牛哇 - RestoreHealth: [ 31039, 31477, 31225, 31214, 31202 ] + # 打call + RestoreHealth: [31485, 31641, 31212, 31037, 31278 ] SupportSkill: [ ] # 告白气球,这个好诶 Paratroops: [ 31702, 31639, 30758, 30971, 31213, 31478 ] - # 打call - Reborn: [ 31485, 31641, 31212, 31037, 31278 ] # 小花花 - Overtime: [ 31036, 31476 ] + Reborn: [ 31036, 31476 ] + # 牛哇牛哇 + Overtime: [ 31039, 31477, 31225, 31214, 31202 ] # 粉丝团灯牌 Commander: [ 31164,31738 ] # 盛典门票 - Tank: [ 30727 ] + Tank: [ 30727, 32051, 32057 ] TankRatio: 0.1 TankMulThreshold: 40000 TankMulRatio: 0.2 OvertimeRatio: 6 + Zhgmang: + GiftEffect: + # 辣条 + Free: [ 1 ] + # 清屏 心动盲盒 + ClearScreen: [32124] + # 随机加成 粉丝团灯牌 + RandomAddon: [31164,31738] Log: Console: Level: debug diff --git a/config.yml b/config.yml index 7df8305..19b0a24 100644 --- a/config.yml +++ b/config.yml @@ -6,6 +6,7 @@ UserCenterRpc: Hosts: - 127.0.0.1:2379 Key: usercenter.rpc + NonBlock: true Kafka: Danmaku: Addr: [ "127.0.0.1:9093" ] @@ -30,16 +31,28 @@ Kafka: Game: # 30213831837876229 地球 AdminUserId: [30096265903603717, 30213831837876229] + DefaultRooms: + - ID: 1 + GameType: ZHG + - ID: 2 + GameType: ZHGZD + - ID: 3 + GameType: ZHGWW2 + - ID: 4 + GameType: TEST + - ID: 5 + GameType: ZHGMang Zhg: # 1元=10 Coin (1元40个步兵) CoinFoodRatio: 4 OutbreakCount: 3 + OutbreakMaxCount: 30 # 5*4=20字符 4x10=40 (最多40兵) OutbreakBaseCost: 5 OutbreakCostDict: - 1: 3 # 步兵 - 2: 7 # 骑兵 - 3: 4 # 弓箭手 - 4: 3 # 法师 + 1: 1 # 步兵 + 2: 2.34 # 骑兵 + 3: 1.34 # 弓箭手 + 4: 1 # 法师 Zhghz: Zhgfb: Zhgzd: @@ -99,6 +112,35 @@ Game: SuperSkill: # 干杯 超级技能 GiftIds: [30606, 31049, 31251, 31116] + Zhgww2: + GiftEffect: + # 辣条 + Free: [ 1 ] + # 打call + RestoreHealth: [31485, 31641, 31212, 31037, 31278 ] + SupportSkill: [ ] + # 告白气球,这个好诶 + Paratroops: [ 31702, 31639, 30758, 30971, 31213, 31478 ] + # 小花花 + Reborn: [ 31036, 31476 ] + # 牛哇牛哇 + Overtime: [ 31039, 31477, 31225, 31214, 31202 ] + # 粉丝团灯牌 + Commander: [ 31164,31738 ] + # 盛典门票 + Tank: [ 30727, 32051, 32057 ] + TankRatio: 0.1 + TankMulThreshold: 40000 + TankMulRatio: 0.2 + OvertimeRatio: 6 + Zhgmang: + GiftEffect: + # 辣条 + Free: [ 1 ] + # 清屏 心动盲盒 + ClearScreen: [32124] + # 随机加成 粉丝团灯牌 + RandomAddon: [31164,31738] Log: Console: Level: info diff --git a/config/config.go b/config/config.go index 7eeda65..6912719 100644 --- a/config/config.go +++ b/config/config.go @@ -42,8 +42,9 @@ type ( // Zhgfb 指挥官副本模式 Zhgfb struct { } - Zhgzd Zhgzd // Zhgzd 指挥官-阵地 - Zhgww2 Zhgww2 // Zhgww2 指挥官-二战 + Zhgzd Zhgzd // Zhgzd 指挥官-阵地 + Zhgww2 Zhgww2 // Zhgww2 指挥官-二战 + Zhgmang Zhgmang // Zhgmang 指挥官-莽 } // RPC diff --git a/config/zhgmang_config.go b/config/zhgmang_config.go new file mode 100644 index 0000000..322a05e --- /dev/null +++ b/config/zhgmang_config.go @@ -0,0 +1,40 @@ +package config + +// Zhgmang 指挥官-莽 +type ( + Zhgmang struct { + GiftEffect struct { + Free []int64 // 免费礼物 + ClearScreen []int64 // 清屏礼物 + RandomAddon []int64 // 随机加成礼物 + } + } + ZhgmangGiftType int32 +) + +const ( + ZhgmangGiftUnknown ZhgmangGiftType = iota + ZhgmangGiftFree + ZhgmangGiftClearScreen + ZhgmangGiftRandomAddon +) + +func (z Zhgmang) ParseGiftType(id int64) ZhgmangGiftType { + if z.isContains(id, z.GiftEffect.Free) { + return ZhgmangGiftFree + } else if z.isContains(id, z.GiftEffect.ClearScreen) { + return ZhgmangGiftClearScreen + } else if z.isContains(id, z.GiftEffect.RandomAddon) { + return ZhgmangGiftRandomAddon + } + return ZhgmangGiftUnknown +} + +func (z Zhgmang) isContains(id int64, arr []int64) bool { + for _, s := range arr { + if s == id { + return true + } + } + return false +} diff --git a/game/live_logic/manager.go b/game/live_logic/manager.go index a7f1533..1331d64 100644 --- a/game/live_logic/manager.go +++ b/game/live_logic/manager.go @@ -66,6 +66,17 @@ func InitLiveManager(svcCtx *svc.ServiceContext) { zhgww2Logic.WithGiftHandler(), ) LiveManager.registerLogic(NewLiveGameLogic(opts...)) + + opts = opts[:1] + zhgmang := NewZhgmangLiveGameLogic(svcCtx) + opts = append(opts, WithGiftHandler(commonLogic.GiftHandler())) + opts = append(opts, + zhgmang.WithGameType(), + zhgmang.WithCmdHandlers(), + zhgmang.WithCmdParserLogic(commonLogic.CmdParserPatterns()), + zhgmang.WithGiftHandler(), + ) + LiveManager.registerLogic(NewLiveGameLogic(opts...)) } func (m *Manager) registerLogic(h LiveLogic) { diff --git a/game/live_logic/zhgmang_handler.go b/game/live_logic/zhgmang_handler.go new file mode 100644 index 0000000..d4f1630 --- /dev/null +++ b/game/live_logic/zhgmang_handler.go @@ -0,0 +1,278 @@ +package live_logic + +import ( + "dcg/app/user_center/usercenter" + "dcg/config" + "dcg/game/manager" + "dcg/game/pb" + pbCommon "dcg/game/pb/common" + pbGameZhgMang "dcg/game/pb/game/zhgmang" + pbMq "dcg/game/pb/mq" + pbRoom "dcg/game/pb/room" + "dcg/game/svc" + "dcg/pkg/cmd" + "git.noahlan.cn/northlan/ntools-go/logger" + "strconv" + "strings" +) + +type ZhgmangGameLogic struct { + svcCtx *svc.ServiceContext +} + +func NewZhgmangLiveGameLogic(svcCtx *svc.ServiceContext) *ZhgmangGameLogic { + return &ZhgmangGameLogic{ + svcCtx: svcCtx, + } +} + +func (h *ZhgmangGameLogic) WithGameType() LogicOption { + return WithGameType(pbRoom.GameType_name[int32(pbRoom.GameType_ZHGMang)]) +} + +func (h *ZhgmangGameLogic) WithCmdParserLogic(p []cmd.Pattern) LogicOption { + pattern := []cmd.Pattern{ + { + Prefix: "j", + Alias: []string{"加入", "加入游戏"}, + ContentMaxLen: 1, + }, { + Prefix: "c", + Alias: []string{"抽卡"}, + ContentMaxLen: 1, + }, { + Prefix: "w", + Alias: []string{"我在哪"}, + ContentMaxLen: 0, + }, { + Prefix: "g", + Alias: []string{"苟"}, + ContentMaxLen: 0, + }, { + Prefix: "m", + Alias: []string{"莽"}, + ContentMaxLen: 0, + }, { + Prefix: "l", + Alias: []string{"升级"}, + ContentMaxLen: 0, + }, { + Prefix: "n", + ContentMaxLen: 8, + }, + } + pattern = append(pattern, p...) + cmdParser := cmd.NewCMDParser(pattern...) + cmdParser.SetDistinct(false) + + return WithCmdParser(cmdParser) +} + +func (h *ZhgmangGameLogic) WithCmdHandlers() LogicOption { + return func(logic LiveLogic) { + logic.RegisterCMDHandler(h.handleJoinGame, "j") + logic.RegisterCMDHandler(h.handleAddUnit, "c") + logic.RegisterCMDHandler(h.handleWai, "w") + logic.RegisterCMDHandler(h.handleLevelUp, "l") + logic.RegisterCMDHandler(h.handleMockGift, "n") + } +} + +func (h *ZhgmangGameLogic) WithGiftHandler() LogicOption { + return WithGiftHandler(func(next GiftHandlerFunc) GiftHandlerFunc { + return func(liveRoom *LiveRoom, user *pbCommon.PbUser, gift *pbMq.MqGift) { + h.handleGift(liveRoom, user, gift) + next(liveRoom, user, gift) + } + }) +} + +func (h *ZhgmangGameLogic) handleJoinGame(liveRoom *LiveRoom, _ string, _ []rune, user *pbCommon.PbUser) { + room, err := manager.GameManager.RoomByLiveRoom(liveRoom.RoomId, liveRoom.Platform) + if err != nil { + return + } + + details, err := h.svcCtx.UserCenterRpc.GetUserDetails(h.svcCtx.Ctx, &usercenter.UserIdReq{ + UserId: user.UserId, + }) + if err != nil { + return + } + + resp := &pbGameZhgMang.JoinGame{ + User: user, + NobilityLevel: details.NobilityLevel, + } + + logger.SLog.Debugf("用户 [%s] 加入游戏", user.Username) + room.Broadcast(pb.PushZhgmangJoinGame, resp) +} + +func (h *ZhgmangGameLogic) handleAddUnit(liveRoom *LiveRoom, _ string, content []rune, user *pbCommon.PbUser) { + room, err := manager.GameManager.RoomByLiveRoom(liveRoom.RoomId, liveRoom.Platform) + if err != nil { + return + } + + if len(content) < 1 { + return + } + + var card int32 + if len(content) > 0 { + t, err := strconv.ParseInt(string(content[0]), 10, 32) + if err == nil { + card = int32(t) + } + } + if card > 5 { + return + } + + logger.SLog.Debugf("用户 [%s] 抽卡 [%d]", user.Username, card) + room.Broadcast(pb.PushZhgmangAddUnit, &pbGameZhgMang.AddUnit{ + User: user, + Card: card, + }) +} + +func (h *ZhgmangGameLogic) handleWai(liveRoom *LiveRoom, _ string, _ []rune, user *pbCommon.PbUser) { + room, err := manager.GameManager.RoomByLiveRoom(liveRoom.RoomId, liveRoom.Platform) + if err != nil { + return + } + + logger.SLog.Debugf("用户 [%s] 我在哪", user.Username) + + room.Broadcast(pb.PushZhgmangWai, &pbGameZhgMang.Wai{User: user}) +} + +func (h *ZhgmangGameLogic) handleLevelUp(liveRoom *LiveRoom, _ string, _ []rune, user *pbCommon.PbUser) { + room, err := manager.GameManager.RoomByLiveRoom(liveRoom.RoomId, liveRoom.Platform) + if err != nil { + return + } + + logger.SLog.Debugf("用户 [%s] 基地升级", user.Username) + + room.Broadcast(pb.PushZhgmangLevelUp, &pbGameZhgMang.LevelUp{ + User: user, + }) +} + +func (h *ZhgmangGameLogic) handleMockGift(liveRoom *LiveRoom, _ string, content []rune, user *pbCommon.PbUser) { + var err error + room, err := manager.GameManager.RoomByLiveRoom(liveRoom.RoomId, liveRoom.Platform) + if err != nil { + return + } + + var isAdminUser bool + for _, i := range h.svcCtx.Config.Game.AdminUserId { + if user.UserId == i { + isAdminUser = true + break + } + } + if !isAdminUser { + return + } + + if len(content) < 1 { + return + } + contentStr := string(content) + spaceIdx := strings.Index(contentStr, " ") + if spaceIdx < 0 { + return + } + giftType := contentStr[:spaceIdx] + var count int64 = 1 + if count, err = strconv.ParseInt(contentStr[spaceIdx+1:], 10, 32); err != nil { + return + } + if count <= 0 { + count = 1 + } + + logger.SLog.Debugf("用户 [%s] gift [%s] count [%d]", user.Username, giftType, count) + // 禁止 c w l n j + switch giftType { + case "tt": + h.goldSpeedUp(room, user, float64(count)*0.1) + case "qp": + h.clearScreen(room, user) + case "rd": + h.randomAddon(room, user) + case "hb": + h.redPackAddon(room, user) + default: + h.goldSpeedUp(room, user, float64(count)) + } +} + +/* + */ +func (h *ZhgmangGameLogic) handleGift(liveRoom *LiveRoom, user *pbCommon.PbUser, gift *pbMq.MqGift) { + room, err := manager.GameManager.RoomByLiveRoom(liveRoom.RoomId, liveRoom.Platform) + if err != nil { + return + } + + cfg := h.svcCtx.Config.Game.Zhgmang + cfgGiftType := cfg.ParseGiftType(gift.GiftId) + switch gift.Type { + case pbMq.MqGift_NORMAL: + switch cfgGiftType { + case config.ZhgmangGiftFree: + h.goldSpeedUp(room, user, float64(gift.GiftNum)*0.1) + case config.ZhgmangGiftClearScreen: + for i := 0; i < int(gift.GiftNum); i++ { + h.clearScreen(room, user) + } + case config.ZhgmangGiftRandomAddon: + for i := 0; i < int(gift.GiftNum); i++ { + h.randomAddon(room, user) + } + default: + h.goldSpeedUp(room, user, float64(gift.GiftNum*gift.Price)*0.01) + } + case pbMq.MqGift_PACK: + if cfgGiftType == config.ZhgmangGiftClearScreen { + for i := 0; i < int(gift.GiftNum); i++ { + h.clearScreen(room, user) + } + } else { + h.goldSpeedUp(room, user, float64(gift.GiftNum)*0.01) + } + case pbMq.MqGift_RED_PACK: + // 红包 + h.redPackAddon(room, user) + } +} + +func (h *ZhgmangGameLogic) goldSpeedUp(room *manager.Room, user *pbCommon.PbUser, battery float64) { + room.Broadcast(pb.PushZhgmangGoldSpeedUp, &pbGameZhgMang.SpeedUp{ + User: user, + Second: int32(battery * 10), + }) +} + +func (h *ZhgmangGameLogic) clearScreen(room *manager.Room, user *pbCommon.PbUser) { + room.Broadcast(pb.PushZhgmangClearScreen, &pbGameZhgMang.ClearScreen{ + User: user, + }) +} + +func (h *ZhgmangGameLogic) randomAddon(room *manager.Room, user *pbCommon.PbUser) { + room.Broadcast(pb.PushZhgmangRandomAddon, &pbGameZhgMang.RandomAddon{ + User: user, + }) +} + +func (h *ZhgmangGameLogic) redPackAddon(room *manager.Room, user *pbCommon.PbUser) { + room.Broadcast(pb.PushZhgmangRedPackAddon, &pbGameZhgMang.RedPackAddon{ + User: user, + }) +} diff --git a/game/pb/game/zhgmang/Command.cs b/game/pb/game/zhgmang/Command.cs new file mode 100644 index 0000000..3821ee6 --- /dev/null +++ b/game/pb/game/zhgmang/Command.cs @@ -0,0 +1,2684 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: game/zhgmang/command.proto +// +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Pb.Game.Zhgmang { + + /// Holder for reflection information generated from game/zhgmang/command.proto + public static partial class CommandReflection { + + #region Descriptor + /// File descriptor for game/zhgmang/command.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static CommandReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpnYW1lL3poZ21hbmcvY29tbWFuZC5wcm90bxIPcGIuZ2FtZS56aGdtYW5n", + "GhNjb21tb24vY29tbW9uLnByb3RvIkIKCEpvaW5HYW1lEh8KBHVzZXIYASAB", + "KAsyES5wYi5jb21tb24uUGJVc2VyEhUKDW5vYmlsaXR5TGV2ZWwYAiABKAUi", + "OAoHQWRkVW5pdBIfCgR1c2VyGAEgASgLMhEucGIuY29tbW9uLlBiVXNlchIM", + "CgRjYXJkGAIgASgFIioKB0xldmVsVXASHwoEdXNlchgBIAEoCzIRLnBiLmNv", + "bW1vbi5QYlVzZXIiOgoHU3BlZWRVcBIfCgR1c2VyGAEgASgLMhEucGIuY29t", + "bW9uLlBiVXNlchIOCgZzZWNvbmQYAiABKAUiLgoLQ2xlYXJTY3JlZW4SHwoE", + "dXNlchgBIAEoCzIRLnBiLmNvbW1vbi5QYlVzZXIiJgoDR291Eh8KBHVzZXIY", + "ASABKAsyES5wYi5jb21tb24uUGJVc2VyIiYKA1J1YRIfCgR1c2VyGAEgASgL", + "MhEucGIuY29tbW9uLlBiVXNlciIuCgtSYW5kb21BZGRvbhIfCgR1c2VyGAEg", + "ASgLMhEucGIuY29tbW9uLlBiVXNlciIvCgxSZWRQYWNrQWRkb24SHwoEdXNl", + "chgBIAEoCzIRLnBiLmNvbW1vbi5QYlVzZXIiJgoDV2FpEh8KBHVzZXIYASAB", + "KAsyES5wYi5jb21tb24uUGJVc2VyImoKDFVzZXJRdWVyeU1zZxIfCgR1c2Vy", + "GAEgASgLMhEucGIuY29tbW9uLlBiVXNlcho5CghSYW5rSXRlbRIQCghyYW5r", + "VHlwZRgBIAEoBRINCgVzY29yZRgCIAEoAxIMCgRyYW5rGAMgASgFQihaJmRj", + "Zy9nYW1lL3BiL2dhbWUvemhnbWFuZztwYkdhbWVaaGdNYW5nYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Pb.Common.CommonReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhgmang.JoinGame), global::Pb.Game.Zhgmang.JoinGame.Parser, new[]{ "User", "NobilityLevel" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhgmang.AddUnit), global::Pb.Game.Zhgmang.AddUnit.Parser, new[]{ "User", "Card" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhgmang.LevelUp), global::Pb.Game.Zhgmang.LevelUp.Parser, new[]{ "User" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhgmang.SpeedUp), global::Pb.Game.Zhgmang.SpeedUp.Parser, new[]{ "User", "Second" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhgmang.ClearScreen), global::Pb.Game.Zhgmang.ClearScreen.Parser, new[]{ "User" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhgmang.Gou), global::Pb.Game.Zhgmang.Gou.Parser, new[]{ "User" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhgmang.Rua), global::Pb.Game.Zhgmang.Rua.Parser, new[]{ "User" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhgmang.RandomAddon), global::Pb.Game.Zhgmang.RandomAddon.Parser, new[]{ "User" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhgmang.RedPackAddon), global::Pb.Game.Zhgmang.RedPackAddon.Parser, new[]{ "User" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhgmang.Wai), global::Pb.Game.Zhgmang.Wai.Parser, new[]{ "User" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhgmang.UserQueryMsg), global::Pb.Game.Zhgmang.UserQueryMsg.Parser, new[]{ "User" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Game.Zhgmang.UserQueryMsg.Types.RankItem), global::Pb.Game.Zhgmang.UserQueryMsg.Types.RankItem.Parser, new[]{ "RankType", "Score", "Rank" }, null, null, null, null)}) + })); + } + #endregion + + } + #region Messages + /// + /// 加入游戏(指令j) push -> game.join + /// + public sealed partial class JoinGame : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JoinGame()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Pb.Game.Zhgmang.CommandReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JoinGame() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JoinGame(JoinGame other) : this() { + user_ = other.user_ != null ? other.user_.Clone() : null; + nobilityLevel_ = other.nobilityLevel_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public JoinGame Clone() { + return new JoinGame(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private global::Pb.Common.PbUser user_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Pb.Common.PbUser User { + get { return user_; } + set { + user_ = value; + } + } + + /// Field number for the "nobilityLevel" field. + public const int NobilityLevelFieldNumber = 2; + private int nobilityLevel_; + /// + /// 贵族等级 3舰长 0总督? + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NobilityLevel { + get { return nobilityLevel_; } + set { + nobilityLevel_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as JoinGame); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(JoinGame other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) return false; + if (NobilityLevel != other.NobilityLevel) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (user_ != null) hash ^= User.GetHashCode(); + if (NobilityLevel != 0) hash ^= NobilityLevel.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (NobilityLevel != 0) { + output.WriteRawTag(16); + output.WriteInt32(NobilityLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (NobilityLevel != 0) { + output.WriteRawTag(16); + output.WriteInt32(NobilityLevel); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (user_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (NobilityLevel != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NobilityLevel); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(JoinGame other) { + if (other == null) { + return; + } + if (other.user_ != null) { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + User.MergeFrom(other.User); + } + if (other.NobilityLevel != 0) { + NobilityLevel = other.NobilityLevel; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + case 16: { + NobilityLevel = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + case 16: { + NobilityLevel = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// 抽卡 push -> game.c + /// + public sealed partial class AddUnit : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddUnit()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Pb.Game.Zhgmang.CommandReflection.Descriptor.MessageTypes[1]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddUnit() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddUnit(AddUnit other) : this() { + user_ = other.user_ != null ? other.user_.Clone() : null; + card_ = other.card_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddUnit Clone() { + return new AddUnit(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private global::Pb.Common.PbUser user_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Pb.Common.PbUser User { + get { return user_; } + set { + user_ = value; + } + } + + /// Field number for the "card" field. + public const int CardFieldNumber = 2; + private int card_; + /// + /// 1 2 3 4 5 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Card { + get { return card_; } + set { + card_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AddUnit); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddUnit other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) return false; + if (Card != other.Card) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (user_ != null) hash ^= User.GetHashCode(); + if (Card != 0) hash ^= Card.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (Card != 0) { + output.WriteRawTag(16); + output.WriteInt32(Card); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (Card != 0) { + output.WriteRawTag(16); + output.WriteInt32(Card); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (user_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (Card != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Card); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddUnit other) { + if (other == null) { + return; + } + if (other.user_ != null) { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + User.MergeFrom(other.User); + } + if (other.Card != 0) { + Card = other.Card; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + case 16: { + Card = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + case 16: { + Card = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// 购买基地升级,提升金币上限,提升人口上限 + /// + public sealed partial class LevelUp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LevelUp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Pb.Game.Zhgmang.CommandReflection.Descriptor.MessageTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LevelUp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LevelUp(LevelUp other) : this() { + user_ = other.user_ != null ? other.user_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public LevelUp Clone() { + return new LevelUp(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private global::Pb.Common.PbUser user_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Pb.Common.PbUser User { + get { return user_; } + set { + user_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as LevelUp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(LevelUp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (user_ != null) hash ^= User.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (user_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(LevelUp other) { + if (other == null) { + return; + } + if (other.user_ != null) { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + User.MergeFrom(other.User); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + } + } + } + #endif + + } + + /// + /// 金币加速(礼物) push -> game.speedUp + /// + public sealed partial class SpeedUp : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SpeedUp()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Pb.Game.Zhgmang.CommandReflection.Descriptor.MessageTypes[3]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SpeedUp() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SpeedUp(SpeedUp other) : this() { + user_ = other.user_ != null ? other.user_.Clone() : null; + second_ = other.second_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SpeedUp Clone() { + return new SpeedUp(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private global::Pb.Common.PbUser user_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Pb.Common.PbUser User { + get { return user_; } + set { + user_ = value; + } + } + + /// Field number for the "second" field. + public const int SecondFieldNumber = 2; + private int second_; + /// + /// 加速时间 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Second { + get { return second_; } + set { + second_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SpeedUp); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SpeedUp other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) return false; + if (Second != other.Second) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (user_ != null) hash ^= User.GetHashCode(); + if (Second != 0) hash ^= Second.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (Second != 0) { + output.WriteRawTag(16); + output.WriteInt32(Second); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (Second != 0) { + output.WriteRawTag(16); + output.WriteInt32(Second); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (user_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (Second != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Second); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SpeedUp other) { + if (other == null) { + return; + } + if (other.user_ != null) { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + User.MergeFrom(other.User); + } + if (other.Second != 0) { + Second = other.Second; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + case 16: { + Second = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + case 16: { + Second = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + /// + /// 清屏(礼物) push -> game.clearScreen + /// + public sealed partial class ClearScreen : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ClearScreen()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Pb.Game.Zhgmang.CommandReflection.Descriptor.MessageTypes[4]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClearScreen() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClearScreen(ClearScreen other) : this() { + user_ = other.user_ != null ? other.user_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ClearScreen Clone() { + return new ClearScreen(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private global::Pb.Common.PbUser user_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Pb.Common.PbUser User { + get { return user_; } + set { + user_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ClearScreen); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ClearScreen other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (user_ != null) hash ^= User.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (user_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ClearScreen other) { + if (other == null) { + return; + } + if (other.user_ != null) { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + User.MergeFrom(other.User); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + } + } + } + #endif + + } + + /// + /// 苟 push -> game.gou + /// + public sealed partial class Gou : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Gou()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Pb.Game.Zhgmang.CommandReflection.Descriptor.MessageTypes[5]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Gou() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Gou(Gou other) : this() { + user_ = other.user_ != null ? other.user_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Gou Clone() { + return new Gou(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private global::Pb.Common.PbUser user_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Pb.Common.PbUser User { + get { return user_; } + set { + user_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Gou); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Gou other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (user_ != null) hash ^= User.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (user_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Gou other) { + if (other == null) { + return; + } + if (other.user_ != null) { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + User.MergeFrom(other.User); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + } + } + } + #endif + + } + + /// + /// 莽 push -> game.rua + /// + public sealed partial class Rua : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Rua()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Pb.Game.Zhgmang.CommandReflection.Descriptor.MessageTypes[6]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Rua() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Rua(Rua other) : this() { + user_ = other.user_ != null ? other.user_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Rua Clone() { + return new Rua(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private global::Pb.Common.PbUser user_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Pb.Common.PbUser User { + get { return user_; } + set { + user_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Rua); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Rua other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (user_ != null) hash ^= User.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (user_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Rua other) { + if (other == null) { + return; + } + if (other.user_ != null) { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + User.MergeFrom(other.User); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + } + } + } + #endif + + } + + /// + /// 随机加成(礼物) push -> game.randomAddon + /// + public sealed partial class RandomAddon : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RandomAddon()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Pb.Game.Zhgmang.CommandReflection.Descriptor.MessageTypes[7]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RandomAddon() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RandomAddon(RandomAddon other) : this() { + user_ = other.user_ != null ? other.user_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RandomAddon Clone() { + return new RandomAddon(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private global::Pb.Common.PbUser user_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Pb.Common.PbUser User { + get { return user_; } + set { + user_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RandomAddon); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RandomAddon other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (user_ != null) hash ^= User.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (user_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RandomAddon other) { + if (other == null) { + return; + } + if (other.user_ != null) { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + User.MergeFrom(other.User); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + } + } + } + #endif + + } + + /// + /// 红包加成 push -> game.redPackAddon + /// + public sealed partial class RedPackAddon : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RedPackAddon()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Pb.Game.Zhgmang.CommandReflection.Descriptor.MessageTypes[8]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RedPackAddon() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RedPackAddon(RedPackAddon other) : this() { + user_ = other.user_ != null ? other.user_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RedPackAddon Clone() { + return new RedPackAddon(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private global::Pb.Common.PbUser user_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Pb.Common.PbUser User { + get { return user_; } + set { + user_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RedPackAddon); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RedPackAddon other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (user_ != null) hash ^= User.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (user_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RedPackAddon other) { + if (other == null) { + return; + } + if (other.user_ != null) { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + User.MergeFrom(other.User); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + } + } + } + #endif + + } + + /// + /// 查询位置 push -> game.w + /// + public sealed partial class Wai : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Wai()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Pb.Game.Zhgmang.CommandReflection.Descriptor.MessageTypes[9]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Wai() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Wai(Wai other) : this() { + user_ = other.user_ != null ? other.user_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Wai Clone() { + return new Wai(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private global::Pb.Common.PbUser user_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Pb.Common.PbUser User { + get { return user_; } + set { + user_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Wai); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Wai other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (user_ != null) hash ^= User.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (user_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Wai other) { + if (other == null) { + return; + } + if (other.user_ != null) { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + User.MergeFrom(other.User); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + } + } + } + #endif + + } + + /// + /// 查询信息通知 push -> user.query + /// + public sealed partial class UserQueryMsg : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserQueryMsg()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Pb.Game.Zhgmang.CommandReflection.Descriptor.MessageTypes[10]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserQueryMsg() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserQueryMsg(UserQueryMsg other) : this() { + user_ = other.user_ != null ? other.user_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserQueryMsg Clone() { + return new UserQueryMsg(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private global::Pb.Common.PbUser user_; + /// + /// 用户信息 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Pb.Common.PbUser User { + get { return user_; } + set { + user_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UserQueryMsg); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserQueryMsg other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (user_ != null) hash ^= User.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (user_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UserQueryMsg other) { + if (other == null) { + return; + } + if (other.user_ != null) { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + User.MergeFrom(other.User); + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 10: { + if (user_ == null) { + User = new global::Pb.Common.PbUser(); + } + input.ReadMessage(User); + break; + } + } + } + } + #endif + + #region Nested types + /// Container for nested types declared in the UserQueryMsg message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// RankItem 排行数据结构 + /// + public sealed partial class RankItem : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RankItem()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::Pb.Game.Zhgmang.UserQueryMsg.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RankItem() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RankItem(RankItem other) : this() { + rankType_ = other.rankType_; + score_ = other.score_; + rank_ = other.rank_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RankItem Clone() { + return new RankItem(this); + } + + /// Field number for the "rankType" field. + public const int RankTypeFieldNumber = 1; + private int rankType_; + /// + /// 排行榜类型 (与pbGameZhg.RankType一致) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RankType { + get { return rankType_; } + set { + rankType_ = value; + } + } + + /// Field number for the "score" field. + public const int ScoreFieldNumber = 2; + private long score_; + /// + /// 具体分数 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Score { + get { return score_; } + set { + score_ = value; + } + } + + /// Field number for the "rank" field. + public const int RankFieldNumber = 3; + private int rank_; + /// + /// 具体排名,不上榜为0 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Rank { + get { return rank_; } + set { + rank_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RankItem); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RankItem other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (RankType != other.RankType) return false; + if (Score != other.Score) return false; + if (Rank != other.Rank) return false; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (RankType != 0) hash ^= RankType.GetHashCode(); + if (Score != 0L) hash ^= Score.GetHashCode(); + if (Rank != 0) hash ^= Rank.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (RankType != 0) { + output.WriteRawTag(8); + output.WriteInt32(RankType); + } + if (Score != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Score); + } + if (Rank != 0) { + output.WriteRawTag(24); + output.WriteInt32(Rank); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (RankType != 0) { + output.WriteRawTag(8); + output.WriteInt32(RankType); + } + if (Score != 0L) { + output.WriteRawTag(16); + output.WriteInt64(Score); + } + if (Rank != 0) { + output.WriteRawTag(24); + output.WriteInt32(Rank); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (RankType != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RankType); + } + if (Score != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Score); + } + if (Rank != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rank); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RankItem other) { + if (other == null) { + return; + } + if (other.RankType != 0) { + RankType = other.RankType; + } + if (other.Score != 0L) { + Score = other.Score; + } + if (other.Rank != 0) { + Rank = other.Rank; + } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(pb::CodedInputStream input) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + input.ReadRawMessage(this); + #else + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + RankType = input.ReadInt32(); + break; + } + case 16: { + Score = input.ReadInt64(); + break; + } + case 24: { + Rank = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + RankType = input.ReadInt32(); + break; + } + case 16: { + Score = input.ReadInt64(); + break; + } + case 24: { + Rank = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + } + #endregion + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/game/pb/game/zhgmang/command.pb.go b/game/pb/game/zhgmang/command.pb.go new file mode 100644 index 0000000..f3e008c --- /dev/null +++ b/game/pb/game/zhgmang/command.pb.go @@ -0,0 +1,914 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc v3.19.4 +// source: game/zhgmang/command.proto + +package pbGameZhgMang + +import ( + common "dcg/game/pb/common" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// 加入游戏(指令j) push -> game.join +type JoinGame struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *common.PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + NobilityLevel int32 `protobuf:"varint,2,opt,name=nobilityLevel,proto3" json:"nobilityLevel,omitempty"` // 贵族等级 3舰长 0总督? +} + +func (x *JoinGame) Reset() { + *x = JoinGame{} + if protoimpl.UnsafeEnabled { + mi := &file_game_zhgmang_command_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JoinGame) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JoinGame) ProtoMessage() {} + +func (x *JoinGame) ProtoReflect() protoreflect.Message { + mi := &file_game_zhgmang_command_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use JoinGame.ProtoReflect.Descriptor instead. +func (*JoinGame) Descriptor() ([]byte, []int) { + return file_game_zhgmang_command_proto_rawDescGZIP(), []int{0} +} + +func (x *JoinGame) GetUser() *common.PbUser { + if x != nil { + return x.User + } + return nil +} + +func (x *JoinGame) GetNobilityLevel() int32 { + if x != nil { + return x.NobilityLevel + } + return 0 +} + +// 抽卡 push -> game.c +type AddUnit struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *common.PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + Card int32 `protobuf:"varint,2,opt,name=card,proto3" json:"card,omitempty"` // 1 2 3 4 5 +} + +func (x *AddUnit) Reset() { + *x = AddUnit{} + if protoimpl.UnsafeEnabled { + mi := &file_game_zhgmang_command_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddUnit) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddUnit) ProtoMessage() {} + +func (x *AddUnit) ProtoReflect() protoreflect.Message { + mi := &file_game_zhgmang_command_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AddUnit.ProtoReflect.Descriptor instead. +func (*AddUnit) Descriptor() ([]byte, []int) { + return file_game_zhgmang_command_proto_rawDescGZIP(), []int{1} +} + +func (x *AddUnit) GetUser() *common.PbUser { + if x != nil { + return x.User + } + return nil +} + +func (x *AddUnit) GetCard() int32 { + if x != nil { + return x.Card + } + return 0 +} + +// 购买基地升级,提升金币上限,提升人口上限 +type LevelUp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *common.PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *LevelUp) Reset() { + *x = LevelUp{} + if protoimpl.UnsafeEnabled { + mi := &file_game_zhgmang_command_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *LevelUp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LevelUp) ProtoMessage() {} + +func (x *LevelUp) ProtoReflect() protoreflect.Message { + mi := &file_game_zhgmang_command_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LevelUp.ProtoReflect.Descriptor instead. +func (*LevelUp) Descriptor() ([]byte, []int) { + return file_game_zhgmang_command_proto_rawDescGZIP(), []int{2} +} + +func (x *LevelUp) GetUser() *common.PbUser { + if x != nil { + return x.User + } + return nil +} + +// 金币加速(礼物) push -> game.speedUp +type SpeedUp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *common.PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + Second int32 `protobuf:"varint,2,opt,name=second,proto3" json:"second,omitempty"` // 加速时间 +} + +func (x *SpeedUp) Reset() { + *x = SpeedUp{} + if protoimpl.UnsafeEnabled { + mi := &file_game_zhgmang_command_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SpeedUp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SpeedUp) ProtoMessage() {} + +func (x *SpeedUp) ProtoReflect() protoreflect.Message { + mi := &file_game_zhgmang_command_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SpeedUp.ProtoReflect.Descriptor instead. +func (*SpeedUp) Descriptor() ([]byte, []int) { + return file_game_zhgmang_command_proto_rawDescGZIP(), []int{3} +} + +func (x *SpeedUp) GetUser() *common.PbUser { + if x != nil { + return x.User + } + return nil +} + +func (x *SpeedUp) GetSecond() int32 { + if x != nil { + return x.Second + } + return 0 +} + +// 清屏(礼物) push -> game.clearScreen +type ClearScreen struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *common.PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *ClearScreen) Reset() { + *x = ClearScreen{} + if protoimpl.UnsafeEnabled { + mi := &file_game_zhgmang_command_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ClearScreen) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClearScreen) ProtoMessage() {} + +func (x *ClearScreen) ProtoReflect() protoreflect.Message { + mi := &file_game_zhgmang_command_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClearScreen.ProtoReflect.Descriptor instead. +func (*ClearScreen) Descriptor() ([]byte, []int) { + return file_game_zhgmang_command_proto_rawDescGZIP(), []int{4} +} + +func (x *ClearScreen) GetUser() *common.PbUser { + if x != nil { + return x.User + } + return nil +} + +// 苟 push -> game.gou +type Gou struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *common.PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *Gou) Reset() { + *x = Gou{} + if protoimpl.UnsafeEnabled { + mi := &file_game_zhgmang_command_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Gou) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Gou) ProtoMessage() {} + +func (x *Gou) ProtoReflect() protoreflect.Message { + mi := &file_game_zhgmang_command_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Gou.ProtoReflect.Descriptor instead. +func (*Gou) Descriptor() ([]byte, []int) { + return file_game_zhgmang_command_proto_rawDescGZIP(), []int{5} +} + +func (x *Gou) GetUser() *common.PbUser { + if x != nil { + return x.User + } + return nil +} + +// 莽 push -> game.rua +type Rua struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *common.PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *Rua) Reset() { + *x = Rua{} + if protoimpl.UnsafeEnabled { + mi := &file_game_zhgmang_command_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Rua) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Rua) ProtoMessage() {} + +func (x *Rua) ProtoReflect() protoreflect.Message { + mi := &file_game_zhgmang_command_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Rua.ProtoReflect.Descriptor instead. +func (*Rua) Descriptor() ([]byte, []int) { + return file_game_zhgmang_command_proto_rawDescGZIP(), []int{6} +} + +func (x *Rua) GetUser() *common.PbUser { + if x != nil { + return x.User + } + return nil +} + +// 随机加成(礼物) push -> game.randomAddon +type RandomAddon struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *common.PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *RandomAddon) Reset() { + *x = RandomAddon{} + if protoimpl.UnsafeEnabled { + mi := &file_game_zhgmang_command_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RandomAddon) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RandomAddon) ProtoMessage() {} + +func (x *RandomAddon) ProtoReflect() protoreflect.Message { + mi := &file_game_zhgmang_command_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RandomAddon.ProtoReflect.Descriptor instead. +func (*RandomAddon) Descriptor() ([]byte, []int) { + return file_game_zhgmang_command_proto_rawDescGZIP(), []int{7} +} + +func (x *RandomAddon) GetUser() *common.PbUser { + if x != nil { + return x.User + } + return nil +} + +// 红包加成 push -> game.redPackAddon +type RedPackAddon struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *common.PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *RedPackAddon) Reset() { + *x = RedPackAddon{} + if protoimpl.UnsafeEnabled { + mi := &file_game_zhgmang_command_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RedPackAddon) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RedPackAddon) ProtoMessage() {} + +func (x *RedPackAddon) ProtoReflect() protoreflect.Message { + mi := &file_game_zhgmang_command_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RedPackAddon.ProtoReflect.Descriptor instead. +func (*RedPackAddon) Descriptor() ([]byte, []int) { + return file_game_zhgmang_command_proto_rawDescGZIP(), []int{8} +} + +func (x *RedPackAddon) GetUser() *common.PbUser { + if x != nil { + return x.User + } + return nil +} + +// 查询位置 push -> game.w +type Wai struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *common.PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` +} + +func (x *Wai) Reset() { + *x = Wai{} + if protoimpl.UnsafeEnabled { + mi := &file_game_zhgmang_command_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Wai) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Wai) ProtoMessage() {} + +func (x *Wai) ProtoReflect() protoreflect.Message { + mi := &file_game_zhgmang_command_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Wai.ProtoReflect.Descriptor instead. +func (*Wai) Descriptor() ([]byte, []int) { + return file_game_zhgmang_command_proto_rawDescGZIP(), []int{9} +} + +func (x *Wai) GetUser() *common.PbUser { + if x != nil { + return x.User + } + return nil +} + +// 查询信息通知 push -> user.query +type UserQueryMsg struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + User *common.PbUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // 用户信息 +} + +func (x *UserQueryMsg) Reset() { + *x = UserQueryMsg{} + if protoimpl.UnsafeEnabled { + mi := &file_game_zhgmang_command_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserQueryMsg) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserQueryMsg) ProtoMessage() {} + +func (x *UserQueryMsg) ProtoReflect() protoreflect.Message { + mi := &file_game_zhgmang_command_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserQueryMsg.ProtoReflect.Descriptor instead. +func (*UserQueryMsg) Descriptor() ([]byte, []int) { + return file_game_zhgmang_command_proto_rawDescGZIP(), []int{10} +} + +func (x *UserQueryMsg) GetUser() *common.PbUser { + if x != nil { + return x.User + } + return nil +} + +// RankItem 排行数据结构 +type UserQueryMsg_RankItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + RankType int32 `protobuf:"varint,1,opt,name=rankType,proto3" json:"rankType,omitempty"` // 排行榜类型 (与pbGameZhg.RankType一致) + Score int64 `protobuf:"varint,2,opt,name=score,proto3" json:"score,omitempty"` // 具体分数 + Rank int32 `protobuf:"varint,3,opt,name=rank,proto3" json:"rank,omitempty"` // 具体排名,不上榜为0 +} + +func (x *UserQueryMsg_RankItem) Reset() { + *x = UserQueryMsg_RankItem{} + if protoimpl.UnsafeEnabled { + mi := &file_game_zhgmang_command_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserQueryMsg_RankItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserQueryMsg_RankItem) ProtoMessage() {} + +func (x *UserQueryMsg_RankItem) ProtoReflect() protoreflect.Message { + mi := &file_game_zhgmang_command_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UserQueryMsg_RankItem.ProtoReflect.Descriptor instead. +func (*UserQueryMsg_RankItem) Descriptor() ([]byte, []int) { + return file_game_zhgmang_command_proto_rawDescGZIP(), []int{10, 0} +} + +func (x *UserQueryMsg_RankItem) GetRankType() int32 { + if x != nil { + return x.RankType + } + return 0 +} + +func (x *UserQueryMsg_RankItem) GetScore() int64 { + if x != nil { + return x.Score + } + return 0 +} + +func (x *UserQueryMsg_RankItem) GetRank() int32 { + if x != nil { + return x.Rank + } + return 0 +} + +var File_game_zhgmang_command_proto protoreflect.FileDescriptor + +var file_game_zhgmang_command_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x67, 0x61, 0x6d, 0x65, 0x2f, 0x7a, 0x68, 0x67, 0x6d, 0x61, 0x6e, 0x67, 0x2f, 0x63, + 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x70, 0x62, + 0x2e, 0x67, 0x61, 0x6d, 0x65, 0x2e, 0x7a, 0x68, 0x67, 0x6d, 0x61, 0x6e, 0x67, 0x1a, 0x13, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x22, 0x57, 0x0a, 0x08, 0x4a, 0x6f, 0x69, 0x6e, 0x47, 0x61, 0x6d, 0x65, 0x12, 0x25, + 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x24, 0x0a, 0x0d, 0x6e, 0x6f, 0x62, 0x69, 0x6c, 0x69, 0x74, + 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6e, 0x6f, + 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x44, 0x0a, 0x07, 0x41, + 0x64, 0x64, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x25, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, + 0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x12, 0x0a, + 0x04, 0x63, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x61, 0x72, + 0x64, 0x22, 0x30, 0x0a, 0x07, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x55, 0x70, 0x12, 0x25, 0x0a, 0x04, + 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, + 0x73, 0x65, 0x72, 0x22, 0x48, 0x0a, 0x07, 0x53, 0x70, 0x65, 0x65, 0x64, 0x55, 0x70, 0x12, 0x25, + 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x22, 0x34, 0x0a, + 0x0b, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x53, 0x63, 0x72, 0x65, 0x65, 0x6e, 0x12, 0x25, 0x0a, 0x04, + 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, + 0x73, 0x65, 0x72, 0x22, 0x2c, 0x0a, 0x03, 0x47, 0x6f, 0x75, 0x12, 0x25, 0x0a, 0x04, 0x75, 0x73, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, + 0x72, 0x22, 0x2c, 0x0a, 0x03, 0x52, 0x75, 0x61, 0x12, 0x25, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, + 0x34, 0x0a, 0x0b, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x41, 0x64, 0x64, 0x6f, 0x6e, 0x12, 0x25, + 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52, + 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x35, 0x0a, 0x0c, 0x52, 0x65, 0x64, 0x50, 0x61, 0x63, 0x6b, + 0x41, 0x64, 0x64, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, + 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x2c, 0x0a, 0x03, + 0x57, 0x61, 0x69, 0x12, 0x25, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x62, + 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x22, 0x87, 0x01, 0x0a, 0x0c, 0x55, + 0x73, 0x65, 0x72, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4d, 0x73, 0x67, 0x12, 0x25, 0x0a, 0x04, 0x75, + 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x62, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, + 0x65, 0x72, 0x1a, 0x50, 0x0a, 0x08, 0x52, 0x61, 0x6e, 0x6b, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1a, + 0x0a, 0x08, 0x72, 0x61, 0x6e, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x08, 0x72, 0x61, 0x6e, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, + 0x6f, 0x72, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x72, 0x65, + 0x12, 0x12, 0x0a, 0x04, 0x72, 0x61, 0x6e, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, + 0x72, 0x61, 0x6e, 0x6b, 0x42, 0x28, 0x5a, 0x26, 0x64, 0x63, 0x67, 0x2f, 0x67, 0x61, 0x6d, 0x65, + 0x2f, 0x70, 0x62, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x2f, 0x7a, 0x68, 0x67, 0x6d, 0x61, 0x6e, 0x67, + 0x3b, 0x70, 0x62, 0x47, 0x61, 0x6d, 0x65, 0x5a, 0x68, 0x67, 0x4d, 0x61, 0x6e, 0x67, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_game_zhgmang_command_proto_rawDescOnce sync.Once + file_game_zhgmang_command_proto_rawDescData = file_game_zhgmang_command_proto_rawDesc +) + +func file_game_zhgmang_command_proto_rawDescGZIP() []byte { + file_game_zhgmang_command_proto_rawDescOnce.Do(func() { + file_game_zhgmang_command_proto_rawDescData = protoimpl.X.CompressGZIP(file_game_zhgmang_command_proto_rawDescData) + }) + return file_game_zhgmang_command_proto_rawDescData +} + +var file_game_zhgmang_command_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_game_zhgmang_command_proto_goTypes = []interface{}{ + (*JoinGame)(nil), // 0: pb.game.zhgmang.JoinGame + (*AddUnit)(nil), // 1: pb.game.zhgmang.AddUnit + (*LevelUp)(nil), // 2: pb.game.zhgmang.LevelUp + (*SpeedUp)(nil), // 3: pb.game.zhgmang.SpeedUp + (*ClearScreen)(nil), // 4: pb.game.zhgmang.ClearScreen + (*Gou)(nil), // 5: pb.game.zhgmang.Gou + (*Rua)(nil), // 6: pb.game.zhgmang.Rua + (*RandomAddon)(nil), // 7: pb.game.zhgmang.RandomAddon + (*RedPackAddon)(nil), // 8: pb.game.zhgmang.RedPackAddon + (*Wai)(nil), // 9: pb.game.zhgmang.Wai + (*UserQueryMsg)(nil), // 10: pb.game.zhgmang.UserQueryMsg + (*UserQueryMsg_RankItem)(nil), // 11: pb.game.zhgmang.UserQueryMsg.RankItem + (*common.PbUser)(nil), // 12: pb.common.PbUser +} +var file_game_zhgmang_command_proto_depIdxs = []int32{ + 12, // 0: pb.game.zhgmang.JoinGame.user:type_name -> pb.common.PbUser + 12, // 1: pb.game.zhgmang.AddUnit.user:type_name -> pb.common.PbUser + 12, // 2: pb.game.zhgmang.LevelUp.user:type_name -> pb.common.PbUser + 12, // 3: pb.game.zhgmang.SpeedUp.user:type_name -> pb.common.PbUser + 12, // 4: pb.game.zhgmang.ClearScreen.user:type_name -> pb.common.PbUser + 12, // 5: pb.game.zhgmang.Gou.user:type_name -> pb.common.PbUser + 12, // 6: pb.game.zhgmang.Rua.user:type_name -> pb.common.PbUser + 12, // 7: pb.game.zhgmang.RandomAddon.user:type_name -> pb.common.PbUser + 12, // 8: pb.game.zhgmang.RedPackAddon.user:type_name -> pb.common.PbUser + 12, // 9: pb.game.zhgmang.Wai.user:type_name -> pb.common.PbUser + 12, // 10: pb.game.zhgmang.UserQueryMsg.user:type_name -> pb.common.PbUser + 11, // [11:11] is the sub-list for method output_type + 11, // [11:11] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_game_zhgmang_command_proto_init() } +func file_game_zhgmang_command_proto_init() { + if File_game_zhgmang_command_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_game_zhgmang_command_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*JoinGame); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_game_zhgmang_command_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AddUnit); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_game_zhgmang_command_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*LevelUp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_game_zhgmang_command_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SpeedUp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_game_zhgmang_command_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ClearScreen); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_game_zhgmang_command_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Gou); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_game_zhgmang_command_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Rua); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_game_zhgmang_command_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RandomAddon); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_game_zhgmang_command_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RedPackAddon); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_game_zhgmang_command_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Wai); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_game_zhgmang_command_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserQueryMsg); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_game_zhgmang_command_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserQueryMsg_RankItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_game_zhgmang_command_proto_rawDesc, + NumEnums: 0, + NumMessages: 12, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_game_zhgmang_command_proto_goTypes, + DependencyIndexes: file_game_zhgmang_command_proto_depIdxs, + MessageInfos: file_game_zhgmang_command_proto_msgTypes, + }.Build() + File_game_zhgmang_command_proto = out.File + file_game_zhgmang_command_proto_rawDesc = nil + file_game_zhgmang_command_proto_goTypes = nil + file_game_zhgmang_command_proto_depIdxs = nil +} diff --git a/game/pb/game/zhgmang/command.proto b/game/pb/game/zhgmang/command.proto new file mode 100644 index 0000000..68c4bd0 --- /dev/null +++ b/game/pb/game/zhgmang/command.proto @@ -0,0 +1,72 @@ +syntax = "proto3"; + +package pb.game.zhgmang; + +import "common/common.proto"; + +option go_package = "dcg/game/pb/game/zhgmang;pbGameZhgMang"; + +// 加入游戏(指令j) push -> game.join +message JoinGame{ + pb.common.PbUser user = 1; + int32 nobilityLevel = 2; // 贵族等级 3舰长 0总督? +} + +// 抽卡 push -> game.c +message AddUnit { + pb.common.PbUser user = 1; + int32 card = 2; // 1 2 3 4 5 +} + +// 购买基地升级,提升金币上限,提升人口上限 +message LevelUp { + pb.common.PbUser user = 1; +} + +// 金币加速(礼物) push -> game.speedUp +message SpeedUp { + pb.common.PbUser user = 1; + int32 second = 2; // 加速时间 +} + +// 清屏(礼物) push -> game.clearScreen +message ClearScreen { + pb.common.PbUser user = 1; +} + +// 苟 push -> game.gou +message Gou { + pb.common.PbUser user = 1; +} + +// 莽 push -> game.rua +message Rua { + pb.common.PbUser user = 1; +} + +// 随机加成(礼物) push -> game.randomAddon +message RandomAddon { + pb.common.PbUser user = 1; +} + +// 红包加成 push -> game.redPackAddon +message RedPackAddon { + pb.common.PbUser user = 1; +} + +// 查询位置 push -> game.w +message Wai{ + pb.common.PbUser user = 1; +} + +// 查询信息通知 push -> user.query +message UserQueryMsg { + // RankItem 排行数据结构 + message RankItem { + int32 rankType = 1; // 排行榜类型 (与pbGameZhg.RankType一致) + int64 score = 2; // 具体分数 + int32 rank = 3; // 具体排名,不上榜为0 + } + + pb.common.PbUser user = 1; // 用户信息 +} \ No newline at end of file diff --git a/game/pb/gen.bat b/game/pb/gen.bat index ec8365e..0a7b056 100644 --- a/game/pb/gen.bat +++ b/game/pb/gen.bat @@ -2,4 +2,4 @@ protoc --go_opt=paths=source_relative ^ --go-grpc_opt=paths=source_relative ^ --go-grpc_opt=require_unimplemented_servers=false ^ --go_out=. --go-grpc_out=. --proto_path=. ^ - ./vars/*.proto ./mq/*.proto ./common/*.proto ./room/*.proto ./game/zhg/*.proto ./game/zhghz/*.proto ./game/zhgzd/*.proto ./game/zhgww2/*.proto \ No newline at end of file + ./vars/*.proto ./mq/*.proto ./common/*.proto ./room/*.proto ./game/zhg/*.proto ./game/zhghz/*.proto ./game/zhgzd/*.proto ./game/zhgww2/*.proto ./game/zhgmang/*.proto \ No newline at end of file diff --git a/game/pb/genCSharp.bat b/game/pb/genCSharp.bat index eef0068..41e2878 100644 --- a/game/pb/genCSharp.bat +++ b/game/pb/genCSharp.bat @@ -5,4 +5,5 @@ protoc --csharp_out=./room --proto_path=. --proto_path=./room --proto_path=./var protoc --csharp_out=./game/zhg --proto_path=. --proto_path=./vars --proto_path=./game/zhg ./game/zhg/*.proto protoc --csharp_out=./game/zhghz --proto_path=. --proto_path=./vars --proto_path=./game/zhghz ./game/zhghz/*.proto protoc --csharp_out=./game/zhgzd --proto_path=. --proto_path=./vars --proto_path=./game/zhgzd ./game/zhgzd/*.proto -protoc --csharp_out=./game/zhgww2 --proto_path=. --proto_path=./vars --proto_path=./game/zhgww2 ./game/zhgww2/*.proto \ No newline at end of file +protoc --csharp_out=./game/zhgww2 --proto_path=. --proto_path=./vars --proto_path=./game/zhgww2 ./game/zhgww2/*.proto +protoc --csharp_out=./game/zhgmang --proto_path=. --proto_path=./vars --proto_path=./game/zhgmang ./game/zhgmang/*.proto \ No newline at end of file diff --git a/game/pb/room/Room.cs b/game/pb/room/Room.cs index fdf53d4..84345c4 100644 --- a/game/pb/room/Room.cs +++ b/game/pb/room/Room.cs @@ -30,10 +30,10 @@ namespace Pb.Room { "ZXEuTGl2ZVJvb20SIwoIR2FtZVR5cGUYAiABKA4yES5wYi5yb29tLkdhbWVU", "eXBlEg4KBnJvb21JZBgDIAEoAxowCghMaXZlUm9vbRISCgpsaXZlUm9vbUlk", "GAEgASgDEhAKCHBsYXRmb3JtGAIgASgJIiwKDEpvaW5Sb29tUmVzcBIMCgRD", - "b2RlGAEgASgDEg4KBlJlc3VsdBgCIAEoCSpKCghHYW1lVHlwZRIHCgNaSEcQ", + "b2RlGAEgASgDEg4KBlJlc3VsdBgCIAEoCSpXCghHYW1lVHlwZRIHCgNaSEcQ", "ABIJCgVaSEdIWhABEgkKBVpIR0ZCEAISCQoFWkhHWkQQAxIKCgZaSEdXVzIQ", - "BBIICgRURVNUEApCGVoXZGNnL2dhbWUvcGIvcm9vbTtwYlJvb21iBnByb3Rv", - "Mw==")); + "BBILCgdaSEdNYW5nEAUSCAoEVEVTVBBkQhlaF2RjZy9nYW1lL3BiL3Jvb207", + "cGJSb29tYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Pb.Room.GameType), }, null, new pbr::GeneratedClrTypeInfo[] { @@ -71,9 +71,13 @@ namespace Pb.Room { /// [pbr::OriginalName("ZHGWW2")] Zhgww2 = 4, /// + /// 指挥官-二战 + /// + [pbr::OriginalName("ZHGMang")] Zhgmang = 5, + /// /// 测试 /// - [pbr::OriginalName("TEST")] Test = 10, + [pbr::OriginalName("TEST")] Test = 100, } #endregion diff --git a/game/pb/room/room.pb.go b/game/pb/room/room.pb.go index e94de08..bd5a091 100644 --- a/game/pb/room/room.pb.go +++ b/game/pb/room/room.pb.go @@ -24,31 +24,34 @@ const ( type GameType int32 const ( - GameType_ZHG GameType = 0 // 指挥官 - GameType_ZHGHZ GameType = 1 // 指挥官-海战 - GameType_ZHGFB GameType = 2 // 指挥官-副本 - GameType_ZHGZD GameType = 3 // 指挥官-阵地 - GameType_ZHGWW2 GameType = 4 // 指挥官-二战 - GameType_TEST GameType = 10 // 测试 + GameType_ZHG GameType = 0 // 指挥官 + GameType_ZHGHZ GameType = 1 // 指挥官-海战 + GameType_ZHGFB GameType = 2 // 指挥官-副本 + GameType_ZHGZD GameType = 3 // 指挥官-阵地 + GameType_ZHGWW2 GameType = 4 // 指挥官-二战 + GameType_ZHGMang GameType = 5 // 指挥官-二战 + GameType_TEST GameType = 100 // 测试 ) // Enum value maps for GameType. var ( GameType_name = map[int32]string{ - 0: "ZHG", - 1: "ZHGHZ", - 2: "ZHGFB", - 3: "ZHGZD", - 4: "ZHGWW2", - 10: "TEST", + 0: "ZHG", + 1: "ZHGHZ", + 2: "ZHGFB", + 3: "ZHGZD", + 4: "ZHGWW2", + 5: "ZHGMang", + 100: "TEST", } GameType_value = map[string]int32{ - "ZHG": 0, - "ZHGHZ": 1, - "ZHGFB": 2, - "ZHGZD": 3, - "ZHGWW2": 4, - "TEST": 10, + "ZHG": 0, + "ZHGHZ": 1, + "ZHGFB": 2, + "ZHGZD": 3, + "ZHGWW2": 4, + "ZHGMang": 5, + "TEST": 100, } ) @@ -325,14 +328,14 @@ var file_room_room_proto_rawDesc = []byte{ 0x6f, 0x6d, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x52, 0x65, 0x73, 0x75, - 0x6c, 0x74, 0x2a, 0x4a, 0x0a, 0x08, 0x47, 0x61, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, + 0x6c, 0x74, 0x2a, 0x57, 0x0a, 0x08, 0x47, 0x61, 0x6d, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x5a, 0x48, 0x47, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x5a, 0x48, 0x47, 0x48, 0x5a, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x5a, 0x48, 0x47, 0x46, 0x42, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x5a, 0x48, 0x47, 0x5a, 0x44, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x5a, 0x48, 0x47, 0x57, - 0x57, 0x32, 0x10, 0x04, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x45, 0x53, 0x54, 0x10, 0x0a, 0x42, 0x19, - 0x5a, 0x17, 0x64, 0x63, 0x67, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x72, 0x6f, - 0x6f, 0x6d, 0x3b, 0x70, 0x62, 0x52, 0x6f, 0x6f, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x57, 0x32, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x5a, 0x48, 0x47, 0x4d, 0x61, 0x6e, 0x67, 0x10, + 0x05, 0x12, 0x08, 0x0a, 0x04, 0x54, 0x45, 0x53, 0x54, 0x10, 0x64, 0x42, 0x19, 0x5a, 0x17, 0x64, + 0x63, 0x67, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x72, 0x6f, 0x6f, 0x6d, 0x3b, + 0x70, 0x62, 0x52, 0x6f, 0x6f, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/game/pb/room/room.proto b/game/pb/room/room.proto index 81b64d9..97cae4a 100644 --- a/game/pb/room/room.proto +++ b/game/pb/room/room.proto @@ -11,7 +11,8 @@ enum GameType { ZHGFB = 2; // 指挥官-副本 ZHGZD = 3; // 指挥官-阵地 ZHGWW2 = 4; // 指挥官-二战 - TEST = 10; // 测试 + ZHGMang = 5; // 指挥官-二战 + TEST = 100; // 测试 } message CreateRoomReq { diff --git a/game/pb/routes.go b/game/pb/routes.go index aefcf6b..add1fec 100644 --- a/game/pb/routes.go +++ b/game/pb/routes.go @@ -56,3 +56,18 @@ const ( PushZhgww2Overtime = "game.control.overtime" PushZhgww2BecomeCommander = "game.become.commander" ) + +// zhgmang +const ( + PushZhgmangJoinGame = "game.join" + PushZhgmangAddUnit = "game.c" + PushZhgmangWai = "game.w" + PushZhgmangGou = "game.gou" + PushZhgmangRua = "game.rua" + + PushZhgmangLevelUp = "game.levelUp" + PushZhgmangGoldSpeedUp = "game.goldSpeedUp" + PushZhgmangClearScreen = "game.clearScreen" + PushZhgmangRandomAddon = "game.randomAddon" + PushZhgmangRedPackAddon = "game.redPackAddon" +) diff --git a/logs/dcg.log b/logs/dcg.log new file mode 100644 index 0000000..195dec2 --- /dev/null +++ b/logs/dcg.log @@ -0,0 +1,13 @@ +2022-10-03 13:51:10.687+08 error E:/Projects/dm-game/dcg/game/live_logic/manager.go:104 获取游戏逻辑失败, err:弹幕对应直播间未加入游戏房间 +2022-10-03 13:53:46.344+08 error E:/Projects/dm-game/dcg/game/live_logic/manager.go:104 获取游戏逻辑失败, err:弹幕对应直播间未加入游戏房间 +2022-10-03 13:54:34.097+08 error E:/Projects/dm-game/dcg/game/live_logic/manager.go:104 获取游戏逻辑失败, err:弹幕对应直播间未加入游戏房间 +2022-10-03 13:54:37.909+08 error E:/Projects/dm-game/dcg/game/live_logic/manager.go:104 获取游戏逻辑失败, err:弹幕对应直播间未加入游戏房间 +2022-10-03 13:54:43.738+08 error E:/Projects/dm-game/dcg/game/live_logic/manager.go:104 获取游戏逻辑失败, err:弹幕对应直播间未加入游戏房间 +2022-10-03 13:55:33.699+08 error E:/Projects/dm-game/dcg/game/live_logic/manager.go:104 获取游戏逻辑失败, err:弹幕对应直播间未加入游戏房间 +2022-10-03 13:55:34.421+08 error E:/Projects/dm-game/dcg/game/live_logic/manager.go:104 获取游戏逻辑失败, err:弹幕对应直播间未加入游戏房间 +2022-10-03 13:55:51.325+08 error E:/Projects/dm-game/dcg/game/live_logic/manager.go:104 获取游戏逻辑失败, err:弹幕对应直播间未加入游戏房间 +2022-10-03 13:55:58.791+08 error E:/Projects/dm-game/dcg/game/live_logic/manager.go:104 获取游戏逻辑失败, err:弹幕对应直播间未加入游戏房间 +2022-10-03 13:57:39.824+08 error E:/Projects/dm-game/dcg/game/live_logic/manager.go:104 获取游戏逻辑失败, err:未找到当前直播间支持的游戏逻辑 +2022-10-03 13:57:43.134+08 error E:/Projects/dm-game/dcg/game/live_logic/manager.go:104 获取游戏逻辑失败, err:未找到当前直播间支持的游戏逻辑 +2022-10-03 13:58:02.000+08 error E:/Projects/dm-game/dcg/game/live_logic/manager.go:104 获取游戏逻辑失败, err:未找到当前直播间支持的游戏逻辑 +2022-10-03 13:59:32.995+08 error E:/Projects/dm-game/dcg/game/live_logic/manager.go:104 获取游戏逻辑失败, err:弹幕对应直播间未加入游戏房间