上传配置文件
This commit is contained in:
parent
d4d1549592
commit
927df75d9f
@ -154,5 +154,17 @@
|
||||
"open": true,
|
||||
"routrules": "~/worker",
|
||||
"describe": "三消"
|
||||
},
|
||||
{
|
||||
"msgid": "gameinvite",
|
||||
"open": true,
|
||||
"routrules": "~/worker",
|
||||
"describe": "游戏邀请"
|
||||
},
|
||||
{
|
||||
"msgid": "caninerabbit",
|
||||
"open": true,
|
||||
"routrules": "~/worker",
|
||||
"describe": "犬兔大战"
|
||||
}
|
||||
]
|
@ -4,6 +4,7 @@
|
||||
"sex": 1,
|
||||
"type": 1,
|
||||
"icon": "sbkp_js_nz",
|
||||
"playerhead": "tx_js_nz",
|
||||
"tujing": [
|
||||
107
|
||||
],
|
||||
@ -13,10 +14,13 @@
|
||||
"pvpAnimator": "Person/10000/10000_MPvp.controller",
|
||||
"mainq": "Person/10000/10000M_q.prefab",
|
||||
"vagueq": "Person/10000/10000MT_q.prefab",
|
||||
"playerhead": "tx_js_nz",
|
||||
"name": {
|
||||
"key": "playerinfor_playerinfor_overview_name_1",
|
||||
"text": "陈旧服饰"
|
||||
},
|
||||
"txt": {
|
||||
"key": "playerinfor_playerinfor_overview_txt_1",
|
||||
"text": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -24,6 +28,7 @@
|
||||
"sex": 2,
|
||||
"type": 1,
|
||||
"icon": "sbkp_js_nvz",
|
||||
"playerhead": "tx_js_nvz",
|
||||
"tujing": [
|
||||
107
|
||||
],
|
||||
@ -33,10 +38,13 @@
|
||||
"pvpAnimator": "Person/10000/10000_WPvp.controller",
|
||||
"mainq": "Person/10000/10000W_q.prefab",
|
||||
"vagueq": "Person/10000/10000WT_q.prefab",
|
||||
"playerhead": "tx_js_nvz",
|
||||
"name": {
|
||||
"key": "playerinfor_playerinfor_overview_name_2",
|
||||
"text": "陈旧服饰"
|
||||
},
|
||||
"txt": {
|
||||
"key": "playerinfor_playerinfor_overview_txt_2",
|
||||
"text": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -44,6 +52,7 @@
|
||||
"sex": 1,
|
||||
"type": 2,
|
||||
"icon": "zj_dz_001",
|
||||
"playerhead": "tx_js_nz",
|
||||
"tujing": [
|
||||
107
|
||||
],
|
||||
@ -53,10 +62,13 @@
|
||||
"pvpAnimator": "",
|
||||
"mainq": "",
|
||||
"vagueq": "",
|
||||
"playerhead": "tx_js_nz",
|
||||
"name": {
|
||||
"key": "playerinfor_playerinfor_overview_name_3",
|
||||
"text": "陈述观念"
|
||||
},
|
||||
"txt": {
|
||||
"key": "playerinfor_playerinfor_overview_txt_3",
|
||||
"text": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -64,6 +76,7 @@
|
||||
"sex": 2,
|
||||
"type": 2,
|
||||
"icon": "zj_dz_002",
|
||||
"playerhead": "tx_js_nvz",
|
||||
"tujing": [
|
||||
107
|
||||
],
|
||||
@ -73,10 +86,13 @@
|
||||
"pvpAnimator": "",
|
||||
"mainq": "",
|
||||
"vagueq": "",
|
||||
"playerhead": "tx_js_nvz",
|
||||
"name": {
|
||||
"key": "playerinfor_playerinfor_overview_name_4",
|
||||
"text": "讲解原理"
|
||||
},
|
||||
"txt": {
|
||||
"key": "playerinfor_playerinfor_overview_txt_4",
|
||||
"text": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -84,6 +100,7 @@
|
||||
"sex": 1,
|
||||
"type": 3,
|
||||
"icon": "zj_dz_003",
|
||||
"playerhead": "tx_js_nz",
|
||||
"tujing": [
|
||||
107
|
||||
],
|
||||
@ -93,10 +110,13 @@
|
||||
"pvpAnimator": "",
|
||||
"mainq": "",
|
||||
"vagueq": "",
|
||||
"playerhead": "tx_js_nz",
|
||||
"name": {
|
||||
"key": "playerinfor_playerinfor_overview_name_5",
|
||||
"text": "虚无星空"
|
||||
},
|
||||
"txt": {
|
||||
"key": "playerinfor_playerinfor_overview_txt_5",
|
||||
"text": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -104,6 +124,7 @@
|
||||
"sex": 2,
|
||||
"type": 3,
|
||||
"icon": "zj_dz_004",
|
||||
"playerhead": "tx_js_nvz",
|
||||
"tujing": [
|
||||
107
|
||||
],
|
||||
@ -113,10 +134,109 @@
|
||||
"pvpAnimator": "",
|
||||
"mainq": "",
|
||||
"vagueq": "",
|
||||
"playerhead": "tx_js_nvz",
|
||||
"name": {
|
||||
"key": "playerinfor_playerinfor_overview_name_6",
|
||||
"text": "虚无星空"
|
||||
},
|
||||
"txt": {
|
||||
"key": "playerinfor_playerinfor_overview_txt_6",
|
||||
"text": ""
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "16010401",
|
||||
"sex": 0,
|
||||
"type": 4,
|
||||
"icon": "zj_txk_01",
|
||||
"playerhead": "zj_txk_01",
|
||||
"tujing": [
|
||||
107
|
||||
],
|
||||
"url": "",
|
||||
"resources": "",
|
||||
"vague": "",
|
||||
"pvpAnimator": "",
|
||||
"mainq": "",
|
||||
"vagueq": "",
|
||||
"name": {
|
||||
"key": "playerinfor_playerinfor_overview_name_7",
|
||||
"text": "头像框1"
|
||||
},
|
||||
"txt": {
|
||||
"key": "playerinfor_playerinfor_overview_txt_7",
|
||||
"text": "头像框道具明细1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "16010402",
|
||||
"sex": 0,
|
||||
"type": 4,
|
||||
"icon": "zj_txk_02",
|
||||
"playerhead": "zj_txk_02",
|
||||
"tujing": [
|
||||
107
|
||||
],
|
||||
"url": "",
|
||||
"resources": "",
|
||||
"vague": "",
|
||||
"pvpAnimator": "",
|
||||
"mainq": "",
|
||||
"vagueq": "",
|
||||
"name": {
|
||||
"key": "playerinfor_playerinfor_overview_name_8",
|
||||
"text": "头像框2"
|
||||
},
|
||||
"txt": {
|
||||
"key": "playerinfor_playerinfor_overview_txt_8",
|
||||
"text": "头像框道具明细2"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "16010403",
|
||||
"sex": 0,
|
||||
"type": 4,
|
||||
"icon": "zj_txk_03",
|
||||
"playerhead": "zj_txk_03",
|
||||
"tujing": [
|
||||
107
|
||||
],
|
||||
"url": "",
|
||||
"resources": "",
|
||||
"vague": "",
|
||||
"pvpAnimator": "",
|
||||
"mainq": "",
|
||||
"vagueq": "",
|
||||
"name": {
|
||||
"key": "playerinfor_playerinfor_overview_name_9",
|
||||
"text": "头像框3"
|
||||
},
|
||||
"txt": {
|
||||
"key": "playerinfor_playerinfor_overview_txt_9",
|
||||
"text": "头像框道具明细3"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "16010404",
|
||||
"sex": 0,
|
||||
"type": 4,
|
||||
"icon": "zj_txk_04",
|
||||
"playerhead": "zj_txk_04",
|
||||
"tujing": [
|
||||
107
|
||||
],
|
||||
"url": "",
|
||||
"resources": "",
|
||||
"vague": "",
|
||||
"pvpAnimator": "",
|
||||
"mainq": "",
|
||||
"vagueq": "",
|
||||
"name": {
|
||||
"key": "playerinfor_playerinfor_overview_name_10",
|
||||
"text": "头像框4"
|
||||
},
|
||||
"txt": {
|
||||
"key": "playerinfor_playerinfor_overview_txt_10",
|
||||
"text": "头像框道具明细4"
|
||||
}
|
||||
}
|
||||
]
|
@ -15,6 +15,22 @@
|
||||
"detail": 1,
|
||||
"weight": 0
|
||||
},
|
||||
{
|
||||
"key": 2,
|
||||
"open": 999999,
|
||||
"icon": "",
|
||||
"name": {
|
||||
"key": "consume_consume_playingmethod_name_02",
|
||||
"text": "3分模式"
|
||||
},
|
||||
"txt": {
|
||||
"key": "consume_consume_playingmethod_txt_02",
|
||||
"text": "额外新增3分方块,独立于普通6色方块之外,消除后可以获得3分。"
|
||||
},
|
||||
"type": 2,
|
||||
"detail": 1,
|
||||
"weight": 2000
|
||||
},
|
||||
{
|
||||
"key": 3,
|
||||
"open": 999999,
|
||||
@ -46,5 +62,53 @@
|
||||
"type": 2,
|
||||
"detail": 1,
|
||||
"weight": 2000
|
||||
},
|
||||
{
|
||||
"key": 5,
|
||||
"open": 999999,
|
||||
"icon": "",
|
||||
"name": {
|
||||
"key": "consume_consume_playingmethod_name_05",
|
||||
"text": "锣鼓喧天"
|
||||
},
|
||||
"txt": {
|
||||
"key": "consume_consume_playingmethod_txt_05",
|
||||
"text": "中央格子被改造为锣鼓,消除锣鼓内的方块会获得额外积分,每次操作如果没有触发锣鼓内的方块消除,积分可以被累计。"
|
||||
},
|
||||
"type": 2,
|
||||
"detail": 2,
|
||||
"weight": 2000
|
||||
},
|
||||
{
|
||||
"key": 6,
|
||||
"open": 999999,
|
||||
"icon": "",
|
||||
"name": {
|
||||
"key": "consume_consume_playingmethod_name_06",
|
||||
"text": "电闪雷鸣"
|
||||
},
|
||||
"txt": {
|
||||
"key": "consume_consume_playingmethod_txt_06",
|
||||
"text": "每名玩家行动开始会随机生成2个雷电格子,消除雷电格子内的方块会获得一次行动步骤。"
|
||||
},
|
||||
"type": 2,
|
||||
"detail": 2,
|
||||
"weight": 2000
|
||||
},
|
||||
{
|
||||
"key": 7,
|
||||
"open": 999999,
|
||||
"icon": "",
|
||||
"name": {
|
||||
"key": "consume_consume_playingmethod_name_07",
|
||||
"text": "飞天舞女"
|
||||
},
|
||||
"txt": {
|
||||
"key": "consume_consume_playingmethod_txt_07",
|
||||
"text": "每名玩家行动开始会随机生成2个飞天舞女格子,消除飞天舞女格子内的方块会消除周围所有方块。"
|
||||
},
|
||||
"type": 2,
|
||||
"detail": 2,
|
||||
"weight": 2000
|
||||
}
|
||||
]
|
@ -120,6 +120,7 @@ const (
|
||||
ModuleTreasureMap core.M_Modules = "treasuremap" //藏宝图
|
||||
ModuleGameInvite core.M_Modules = "gameinvite" //游戏邀请
|
||||
ModuleCanineRabbit core.M_Modules = "caninerabbit" //犬兔游戏
|
||||
ModuleIsLand core.M_Modules = "island" //海岛探险
|
||||
)
|
||||
|
||||
// 数据表名定义处
|
||||
@ -407,6 +408,10 @@ const (
|
||||
TableDcolor = "dcolor"
|
||||
TablekCanineRabbit = "caninerabbit"
|
||||
TableEntertainm = "entertainm"
|
||||
//海岛
|
||||
TableIsLand = "island"
|
||||
//海岛
|
||||
TableIsLandHero = "islandhero"
|
||||
)
|
||||
|
||||
// RPC服务接口定义处
|
||||
|
35
modules/island/api.go
Normal file
35
modules/island/api.go
Normal file
@ -0,0 +1,35 @@
|
||||
package island
|
||||
|
||||
import (
|
||||
"go_dreamfactory/modules"
|
||||
|
||||
"go_dreamfactory/lego/core"
|
||||
)
|
||||
|
||||
const ( //消息回复的头名称
|
||||
GetlistResp = "getlistresp"
|
||||
UseItemResp = "useitemresp"
|
||||
SellItemResp = "sellitemresp"
|
||||
)
|
||||
|
||||
/*
|
||||
背包 处理用户的请求组件 必须继承 modules.MComp_GateComp
|
||||
*/
|
||||
type apiComp struct {
|
||||
modules.MCompGate
|
||||
service core.IService
|
||||
module *IsLand
|
||||
}
|
||||
|
||||
//组件初始化接口
|
||||
func (this *apiComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||
this.MCompGate.Init(service, module, comp, options)
|
||||
this.module = module.(*IsLand)
|
||||
this.service = service
|
||||
return
|
||||
}
|
||||
|
||||
func (this *apiComp) Start() (err error) {
|
||||
err = this.MCompGate.Start()
|
||||
return
|
||||
}
|
23
modules/island/api_Info.go
Normal file
23
modules/island/api_Info.go
Normal file
@ -0,0 +1,23 @@
|
||||
package island
|
||||
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/pb"
|
||||
)
|
||||
|
||||
// 参数校验
|
||||
func (this *apiComp) InfoCheck(session comm.IUserSession, req *pb.IsLandInfoReq) (errdata *pb.ErrorData) {
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// /获取自己的排行榜信息
|
||||
func (this *apiComp) Info(session comm.IUserSession, req *pb.IsLandInfoReq) (errdata *pb.ErrorData) {
|
||||
var ()
|
||||
if errdata = this.InfoCheck(session, req); errdata != nil {
|
||||
return
|
||||
}
|
||||
|
||||
session.SendMsg(string(this.module.GetType()), "info", &pb.IsLandInfoResp{})
|
||||
return
|
||||
}
|
51
modules/island/configure.go
Normal file
51
modules/island/configure.go
Normal file
@ -0,0 +1,51 @@
|
||||
package island
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"go_dreamfactory/modules"
|
||||
cfg "go_dreamfactory/sys/configure/structs"
|
||||
|
||||
"go_dreamfactory/lego/core"
|
||||
)
|
||||
|
||||
const (
|
||||
game_item = "game_item.json"
|
||||
game_potions = "game_potions.json"
|
||||
|
||||
// game_propsgroup = "game_propsgroup.json"
|
||||
// game_propsgrouplist = "game_propsgrouplist.json"
|
||||
)
|
||||
|
||||
// /背包配置管理组件
|
||||
type ConfigureComp struct {
|
||||
modules.MCompConfigure
|
||||
module *IsLand
|
||||
}
|
||||
|
||||
// 组件初始化接口
|
||||
func (this *ConfigureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||
this.MCompConfigure.Init(service, module, comp, options)
|
||||
this.module = module.(*IsLand)
|
||||
err = this.LoadConfigure(game_item, cfg.NewGameItem)
|
||||
err = this.LoadConfigure(game_potions, cfg.NewGamePotions)
|
||||
return
|
||||
}
|
||||
|
||||
// 读取物品配置
|
||||
func (this *ConfigureComp) GetMaterialConfigure(id int32) (configure *cfg.GamePotionsData, err error) {
|
||||
var (
|
||||
v interface{}
|
||||
ok bool
|
||||
)
|
||||
if v, err = this.GetConfigure(game_potions); err != nil {
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
} else {
|
||||
if configure, ok = v.(*cfg.GamePotions).GetDataMap()[id]; !ok {
|
||||
err = fmt.Errorf("no found Material:%d configure", id)
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
49
modules/island/model.go
Normal file
49
modules/island/model.go
Normal file
@ -0,0 +1,49 @@
|
||||
package island
|
||||
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/lego/core"
|
||||
"go_dreamfactory/lego/sys/mgo"
|
||||
"go_dreamfactory/modules"
|
||||
"go_dreamfactory/pb"
|
||||
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
"go.mongodb.org/mongo-driver/x/bsonx"
|
||||
)
|
||||
|
||||
type modelComp struct {
|
||||
modules.MCompModel
|
||||
module *IsLand
|
||||
}
|
||||
|
||||
func (this *modelComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||
err = this.MCompModel.Init(service, module, comp, options)
|
||||
this.TableName = comm.TableIsLand
|
||||
this.module = module.(*IsLand)
|
||||
this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{
|
||||
Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
// 读取数据
|
||||
func (this *modelComp) getmodel(uid string) (result *pb.DBIsland, err error) {
|
||||
result = &pb.DBIsland{}
|
||||
if err = this.Get(uid, result); err != nil && err != mgo.MongodbNil {
|
||||
this.module.Errorln(err)
|
||||
}
|
||||
if err == mgo.MongodbNil {
|
||||
result = &pb.DBIsland{
|
||||
Id: primitive.NewObjectID().Hex(),
|
||||
Uid: uid,
|
||||
Islands: make(map[int32]*pb.DBIslandItem),
|
||||
}
|
||||
if err = this.Add(uid, result); err != nil {
|
||||
this.module.Errorln(err)
|
||||
return
|
||||
}
|
||||
}
|
||||
err = nil
|
||||
return
|
||||
}
|
37
modules/island/modelhero.go
Normal file
37
modules/island/modelhero.go
Normal file
@ -0,0 +1,37 @@
|
||||
package island
|
||||
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/lego/core"
|
||||
"go_dreamfactory/modules"
|
||||
"go_dreamfactory/pb"
|
||||
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
"go.mongodb.org/mongo-driver/x/bsonx"
|
||||
)
|
||||
|
||||
type modelHeroComp struct {
|
||||
modules.MCompModel
|
||||
module *IsLand
|
||||
}
|
||||
|
||||
func (this *modelHeroComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
|
||||
err = this.MCompModel.Init(service, module, comp, options)
|
||||
this.TableName = comm.TableIsLandHero
|
||||
this.module = module.(*IsLand)
|
||||
this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{
|
||||
Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
// 读取数据
|
||||
// 获取玩家的英雄列表
|
||||
func (this *modelHeroComp) getHeroList(uid string) []*pb.DBHero {
|
||||
heroes := make([]*pb.DBHero, 0)
|
||||
err := this.GetList(uid, &heroes)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
return heroes
|
||||
}
|
45
modules/island/module.go
Normal file
45
modules/island/module.go
Normal file
@ -0,0 +1,45 @@
|
||||
package island
|
||||
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/lego/base"
|
||||
"go_dreamfactory/lego/core"
|
||||
"go_dreamfactory/modules"
|
||||
)
|
||||
|
||||
/*
|
||||
模块名:Pack
|
||||
描述:背包系统模块
|
||||
开发:李伟
|
||||
*/
|
||||
func NewModule() core.IModule {
|
||||
m := new(IsLand)
|
||||
return m
|
||||
}
|
||||
|
||||
type IsLand struct {
|
||||
modules.ModuleBase
|
||||
service base.IRPCXService
|
||||
privilege comm.IPrivilege
|
||||
api *apiComp
|
||||
model *modelComp
|
||||
configure *ConfigureComp
|
||||
}
|
||||
|
||||
func (this *IsLand) GetType() core.M_Modules {
|
||||
return comm.ModuleGameInvite
|
||||
}
|
||||
|
||||
func (this *IsLand) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
|
||||
if err = this.ModuleBase.Init(service, module, options); err != nil {
|
||||
return
|
||||
}
|
||||
this.service = service.(comm.IService)
|
||||
return
|
||||
}
|
||||
|
||||
func (this *IsLand) OnInstallComp() {
|
||||
this.ModuleBase.OnInstallComp()
|
||||
this.api = this.RegisterComp(new(apiComp)).(*apiComp)
|
||||
this.model = this.RegisterComp(new(modelComp)).(*modelComp)
|
||||
}
|
248
pb/island_db.pb.go
Normal file
248
pb/island_db.pb.go
Normal file
@ -0,0 +1,248 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.20.0
|
||||
// source: island/island_db.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
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)
|
||||
)
|
||||
|
||||
type DBIsland struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"`
|
||||
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"`
|
||||
Islands map[int32]*DBIslandItem `protobuf:"bytes,4,rep,name=islands,proto3" json:"islands" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` //岛屿
|
||||
}
|
||||
|
||||
func (x *DBIsland) Reset() {
|
||||
*x = DBIsland{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_island_island_db_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DBIsland) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DBIsland) ProtoMessage() {}
|
||||
|
||||
func (x *DBIsland) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_island_island_db_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 DBIsland.ProtoReflect.Descriptor instead.
|
||||
func (*DBIsland) Descriptor() ([]byte, []int) {
|
||||
return file_island_island_db_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *DBIsland) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DBIsland) GetUid() string {
|
||||
if x != nil {
|
||||
return x.Uid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DBIsland) GetIslands() map[int32]*DBIslandItem {
|
||||
if x != nil {
|
||||
return x.Islands
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
//海岛地图
|
||||
type DBIslandItem struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
|
||||
Level map[int32]int32 `protobuf:"bytes,2,rep,name=level,proto3" json:"level" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //key 关卡id value 0或者不存在 表示未通关 不等于 0表示通关 不等于 1 表示 选择的剧情id
|
||||
}
|
||||
|
||||
func (x *DBIslandItem) Reset() {
|
||||
*x = DBIslandItem{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_island_island_db_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *DBIslandItem) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*DBIslandItem) ProtoMessage() {}
|
||||
|
||||
func (x *DBIslandItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_island_island_db_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 DBIslandItem.ProtoReflect.Descriptor instead.
|
||||
func (*DBIslandItem) Descriptor() ([]byte, []int) {
|
||||
return file_island_island_db_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *DBIslandItem) GetId() int32 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DBIslandItem) GetLevel() map[int32]int32 {
|
||||
if x != nil {
|
||||
return x.Level
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_island_island_db_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_island_island_db_proto_rawDesc = []byte{
|
||||
0x0a, 0x16, 0x69, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x2f, 0x69, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x5f,
|
||||
0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa9, 0x01, 0x0a, 0x08, 0x44, 0x42, 0x49,
|
||||
0x73, 0x6c, 0x61, 0x6e, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x07, 0x69, 0x73, 0x6c, 0x61, 0x6e,
|
||||
0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x44, 0x42, 0x49, 0x73, 0x6c,
|
||||
0x61, 0x6e, 0x64, 0x2e, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
|
||||
0x52, 0x07, 0x69, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x73, 0x1a, 0x49, 0x0a, 0x0c, 0x49, 0x73, 0x6c,
|
||||
0x61, 0x6e, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x23, 0x0a, 0x05, 0x76,
|
||||
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x49,
|
||||
0x73, 0x6c, 0x61, 0x6e, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
||||
0x3a, 0x02, 0x38, 0x01, 0x22, 0x88, 0x01, 0x0a, 0x0c, 0x44, 0x42, 0x49, 0x73, 0x6c, 0x61, 0x6e,
|
||||
0x64, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02,
|
||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x44, 0x42, 0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x49,
|
||||
0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05,
|
||||
0x6c, 0x65, 0x76, 0x65, 0x6c, 0x1a, 0x38, 0x0a, 0x0a, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x45, 0x6e,
|
||||
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42,
|
||||
0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_island_island_db_proto_rawDescOnce sync.Once
|
||||
file_island_island_db_proto_rawDescData = file_island_island_db_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_island_island_db_proto_rawDescGZIP() []byte {
|
||||
file_island_island_db_proto_rawDescOnce.Do(func() {
|
||||
file_island_island_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_island_island_db_proto_rawDescData)
|
||||
})
|
||||
return file_island_island_db_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_island_island_db_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_island_island_db_proto_goTypes = []interface{}{
|
||||
(*DBIsland)(nil), // 0: DBIsland
|
||||
(*DBIslandItem)(nil), // 1: DBIslandItem
|
||||
nil, // 2: DBIsland.IslandsEntry
|
||||
nil, // 3: DBIslandItem.LevelEntry
|
||||
}
|
||||
var file_island_island_db_proto_depIdxs = []int32{
|
||||
2, // 0: DBIsland.islands:type_name -> DBIsland.IslandsEntry
|
||||
3, // 1: DBIslandItem.level:type_name -> DBIslandItem.LevelEntry
|
||||
1, // 2: DBIsland.IslandsEntry.value:type_name -> DBIslandItem
|
||||
3, // [3:3] is the sub-list for method output_type
|
||||
3, // [3:3] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_island_island_db_proto_init() }
|
||||
func file_island_island_db_proto_init() {
|
||||
if File_island_island_db_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_island_island_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DBIsland); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_island_island_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*DBIslandItem); 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_island_island_db_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 4,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_island_island_db_proto_goTypes,
|
||||
DependencyIndexes: file_island_island_db_proto_depIdxs,
|
||||
MessageInfos: file_island_island_db_proto_msgTypes,
|
||||
}.Build()
|
||||
File_island_island_db_proto = out.File
|
||||
file_island_island_db_proto_rawDesc = nil
|
||||
file_island_island_db_proto_goTypes = nil
|
||||
file_island_island_db_proto_depIdxs = nil
|
||||
}
|
541
pb/island_msg.pb.go
Normal file
541
pb/island_msg.pb.go
Normal file
@ -0,0 +1,541 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.20.0
|
||||
// source: island/island_msg.proto
|
||||
|
||||
package pb
|
||||
|
||||
import (
|
||||
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)
|
||||
)
|
||||
|
||||
//海岛探险
|
||||
type IsLandInfoReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
}
|
||||
|
||||
func (x *IsLandInfoReq) Reset() {
|
||||
*x = IsLandInfoReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_island_island_msg_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *IsLandInfoReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*IsLandInfoReq) ProtoMessage() {}
|
||||
|
||||
func (x *IsLandInfoReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_island_island_msg_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 IsLandInfoReq.ProtoReflect.Descriptor instead.
|
||||
func (*IsLandInfoReq) Descriptor() ([]byte, []int) {
|
||||
return file_island_island_msg_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
type IsLandInfoResp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Info *DBIsland `protobuf:"bytes,1,opt,name=info,proto3" json:"info"`
|
||||
Heros []*DBHero `protobuf:"bytes,2,rep,name=heros,proto3" json:"heros"`
|
||||
}
|
||||
|
||||
func (x *IsLandInfoResp) Reset() {
|
||||
*x = IsLandInfoResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_island_island_msg_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *IsLandInfoResp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*IsLandInfoResp) ProtoMessage() {}
|
||||
|
||||
func (x *IsLandInfoResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_island_island_msg_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 IsLandInfoResp.ProtoReflect.Descriptor instead.
|
||||
func (*IsLandInfoResp) Descriptor() ([]byte, []int) {
|
||||
return file_island_island_msg_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *IsLandInfoResp) GetInfo() *DBIsland {
|
||||
if x != nil {
|
||||
return x.Info
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *IsLandInfoResp) GetHeros() []*DBHero {
|
||||
if x != nil {
|
||||
return x.Heros
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
//海岛探险 战斗 请求
|
||||
type IsLandBattleReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Level int32 `protobuf:"varint,1,opt,name=level,proto3" json:"level"`
|
||||
Battle *BattleFormation `protobuf:"bytes,2,opt,name=battle,proto3" json:"battle"` //战斗类型
|
||||
}
|
||||
|
||||
func (x *IsLandBattleReq) Reset() {
|
||||
*x = IsLandBattleReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_island_island_msg_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *IsLandBattleReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*IsLandBattleReq) ProtoMessage() {}
|
||||
|
||||
func (x *IsLandBattleReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_island_island_msg_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 IsLandBattleReq.ProtoReflect.Descriptor instead.
|
||||
func (*IsLandBattleReq) Descriptor() ([]byte, []int) {
|
||||
return file_island_island_msg_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *IsLandBattleReq) GetLevel() int32 {
|
||||
if x != nil {
|
||||
return x.Level
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *IsLandBattleReq) GetBattle() *BattleFormation {
|
||||
if x != nil {
|
||||
return x.Battle
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
//海岛探险 战斗 回应
|
||||
type IsLandBattleResp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Level int32 `protobuf:"varint,1,opt,name=level,proto3" json:"level"`
|
||||
Info *BattleInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info"` //战斗信息
|
||||
}
|
||||
|
||||
func (x *IsLandBattleResp) Reset() {
|
||||
*x = IsLandBattleResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_island_island_msg_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *IsLandBattleResp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*IsLandBattleResp) ProtoMessage() {}
|
||||
|
||||
func (x *IsLandBattleResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_island_island_msg_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 IsLandBattleResp.ProtoReflect.Descriptor instead.
|
||||
func (*IsLandBattleResp) Descriptor() ([]byte, []int) {
|
||||
return file_island_island_msg_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *IsLandBattleResp) GetLevel() int32 {
|
||||
if x != nil {
|
||||
return x.Level
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *IsLandBattleResp) GetInfo() *BattleInfo {
|
||||
if x != nil {
|
||||
return x.Info
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
//海岛探险 关卡完成 请求
|
||||
type IsLandCompleteReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Level int32 `protobuf:"varint,1,opt,name=level,proto3" json:"level"`
|
||||
Story int32 `protobuf:"varint,2,opt,name=story,proto3" json:"story"`
|
||||
Report *BattleReport `protobuf:"bytes,3,opt,name=report,proto3" json:"report"` //战报 打怪事件完成需要提交战报
|
||||
}
|
||||
|
||||
func (x *IsLandCompleteReq) Reset() {
|
||||
*x = IsLandCompleteReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_island_island_msg_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *IsLandCompleteReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*IsLandCompleteReq) ProtoMessage() {}
|
||||
|
||||
func (x *IsLandCompleteReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_island_island_msg_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 IsLandCompleteReq.ProtoReflect.Descriptor instead.
|
||||
func (*IsLandCompleteReq) Descriptor() ([]byte, []int) {
|
||||
return file_island_island_msg_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *IsLandCompleteReq) GetLevel() int32 {
|
||||
if x != nil {
|
||||
return x.Level
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *IsLandCompleteReq) GetStory() int32 {
|
||||
if x != nil {
|
||||
return x.Story
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *IsLandCompleteReq) GetReport() *BattleReport {
|
||||
if x != nil {
|
||||
return x.Report
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
//海岛探险 关卡完成 回应
|
||||
type IsLandCompleteResp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Level int32 `protobuf:"varint,1,opt,name=level,proto3" json:"level"`
|
||||
Story int32 `protobuf:"varint,2,opt,name=story,proto3" json:"story"`
|
||||
Award []*UserAtno `protobuf:"bytes,3,rep,name=award,proto3" json:"award"` //奖励
|
||||
}
|
||||
|
||||
func (x *IsLandCompleteResp) Reset() {
|
||||
*x = IsLandCompleteResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_island_island_msg_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *IsLandCompleteResp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*IsLandCompleteResp) ProtoMessage() {}
|
||||
|
||||
func (x *IsLandCompleteResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_island_island_msg_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 IsLandCompleteResp.ProtoReflect.Descriptor instead.
|
||||
func (*IsLandCompleteResp) Descriptor() ([]byte, []int) {
|
||||
return file_island_island_msg_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *IsLandCompleteResp) GetLevel() int32 {
|
||||
if x != nil {
|
||||
return x.Level
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *IsLandCompleteResp) GetStory() int32 {
|
||||
if x != nil {
|
||||
return x.Story
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *IsLandCompleteResp) GetAward() []*UserAtno {
|
||||
if x != nil {
|
||||
return x.Award
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_island_island_msg_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_island_island_msg_proto_rawDesc = []byte{
|
||||
0x0a, 0x17, 0x69, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x2f, 0x69, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x5f,
|
||||
0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x69, 0x73, 0x6c, 0x61, 0x6e,
|
||||
0x64, 0x2f, 0x69, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||
0x6f, 0x1a, 0x17, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65,
|
||||
0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x68, 0x65, 0x72, 0x6f,
|
||||
0x2f, 0x68, 0x65, 0x72, 0x6f, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a,
|
||||
0x63, 0x6f, 0x6d, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x0f, 0x0a, 0x0d, 0x49, 0x73,
|
||||
0x4c, 0x61, 0x6e, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x22, 0x4e, 0x0a, 0x0e, 0x49,
|
||||
0x73, 0x4c, 0x61, 0x6e, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a,
|
||||
0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x44, 0x42,
|
||||
0x49, 0x73, 0x6c, 0x61, 0x6e, 0x64, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x0a, 0x05,
|
||||
0x68, 0x65, 0x72, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42,
|
||||
0x48, 0x65, 0x72, 0x6f, 0x52, 0x05, 0x68, 0x65, 0x72, 0x6f, 0x73, 0x22, 0x51, 0x0a, 0x0f, 0x49,
|
||||
0x73, 0x4c, 0x61, 0x6e, 0x64, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x12, 0x14,
|
||||
0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c,
|
||||
0x65, 0x76, 0x65, 0x6c, 0x12, 0x28, 0x0a, 0x06, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x46, 0x6f, 0x72,
|
||||
0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x22, 0x49,
|
||||
0x0a, 0x10, 0x49, 0x73, 0x4c, 0x61, 0x6e, 0x64, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x52, 0x65,
|
||||
0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1f, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x49,
|
||||
0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x66, 0x0a, 0x11, 0x49, 0x73, 0x4c,
|
||||
0x61, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x12, 0x14,
|
||||
0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c,
|
||||
0x65, 0x76, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x25, 0x0a, 0x06, 0x72, 0x65,
|
||||
0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x74,
|
||||
0x74, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72,
|
||||
0x74, 0x22, 0x61, 0x0a, 0x12, 0x49, 0x73, 0x4c, 0x61, 0x6e, 0x64, 0x43, 0x6f, 0x6d, 0x70, 0x6c,
|
||||
0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x14, 0x0a,
|
||||
0x05, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74,
|
||||
0x6f, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x03,
|
||||
0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e, 0x6f, 0x52, 0x05, 0x61,
|
||||
0x77, 0x61, 0x72, 0x64, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
file_island_island_msg_proto_rawDescOnce sync.Once
|
||||
file_island_island_msg_proto_rawDescData = file_island_island_msg_proto_rawDesc
|
||||
)
|
||||
|
||||
func file_island_island_msg_proto_rawDescGZIP() []byte {
|
||||
file_island_island_msg_proto_rawDescOnce.Do(func() {
|
||||
file_island_island_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_island_island_msg_proto_rawDescData)
|
||||
})
|
||||
return file_island_island_msg_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_island_island_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_island_island_msg_proto_goTypes = []interface{}{
|
||||
(*IsLandInfoReq)(nil), // 0: IsLandInfoReq
|
||||
(*IsLandInfoResp)(nil), // 1: IsLandInfoResp
|
||||
(*IsLandBattleReq)(nil), // 2: IsLandBattleReq
|
||||
(*IsLandBattleResp)(nil), // 3: IsLandBattleResp
|
||||
(*IsLandCompleteReq)(nil), // 4: IsLandCompleteReq
|
||||
(*IsLandCompleteResp)(nil), // 5: IsLandCompleteResp
|
||||
(*DBIsland)(nil), // 6: DBIsland
|
||||
(*DBHero)(nil), // 7: DBHero
|
||||
(*BattleFormation)(nil), // 8: BattleFormation
|
||||
(*BattleInfo)(nil), // 9: BattleInfo
|
||||
(*BattleReport)(nil), // 10: BattleReport
|
||||
(*UserAtno)(nil), // 11: UserAtno
|
||||
}
|
||||
var file_island_island_msg_proto_depIdxs = []int32{
|
||||
6, // 0: IsLandInfoResp.info:type_name -> DBIsland
|
||||
7, // 1: IsLandInfoResp.heros:type_name -> DBHero
|
||||
8, // 2: IsLandBattleReq.battle:type_name -> BattleFormation
|
||||
9, // 3: IsLandBattleResp.info:type_name -> BattleInfo
|
||||
10, // 4: IsLandCompleteReq.report:type_name -> BattleReport
|
||||
11, // 5: IsLandCompleteResp.award:type_name -> UserAtno
|
||||
6, // [6:6] is the sub-list for method output_type
|
||||
6, // [6:6] is the sub-list for method input_type
|
||||
6, // [6:6] is the sub-list for extension type_name
|
||||
6, // [6:6] is the sub-list for extension extendee
|
||||
0, // [0:6] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_island_island_msg_proto_init() }
|
||||
func file_island_island_msg_proto_init() {
|
||||
if File_island_island_msg_proto != nil {
|
||||
return
|
||||
}
|
||||
file_island_island_db_proto_init()
|
||||
file_battle_battle_msg_proto_init()
|
||||
file_hero_hero_db_proto_init()
|
||||
file_comm_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_island_island_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*IsLandInfoReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_island_island_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*IsLandInfoResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_island_island_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*IsLandBattleReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_island_island_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*IsLandBattleResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_island_island_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*IsLandCompleteReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_island_island_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*IsLandCompleteResp); 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_island_island_msg_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 6,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_island_island_msg_proto_goTypes,
|
||||
DependencyIndexes: file_island_island_msg_proto_depIdxs,
|
||||
MessageInfos: file_island_island_msg_proto_msgTypes,
|
||||
}.Build()
|
||||
File_island_island_msg_proto = out.File
|
||||
file_island_island_msg_proto_rawDesc = nil
|
||||
file_island_island_msg_proto_goTypes = nil
|
||||
file_island_island_msg_proto_depIdxs = nil
|
||||
}
|
Loading…
Reference in New Issue
Block a user