上传公会远征系统

This commit is contained in:
liwei1dao 2024-01-23 10:19:44 +08:00
parent 6e8a7ca1f4
commit 3897ee817e
20 changed files with 566 additions and 138 deletions

View File

@ -0,0 +1,52 @@
[
{
"Id": 1,
"TrackID": "Track_1",
"TrackWt": 20
},
{
"Id": 2,
"TrackID": "Track_2",
"TrackWt": 20
},
{
"Id": 3,
"TrackID": "Track_3",
"TrackWt": 20
},
{
"Id": 4,
"TrackID": "Track_4",
"TrackWt": 25
},
{
"Id": 5,
"TrackID": "Track_5",
"TrackWt": 25
},
{
"Id": 6,
"TrackID": "Track_6",
"TrackWt": 20
},
{
"Id": 7,
"TrackID": "Track_7",
"TrackWt": 10
},
{
"Id": 8,
"TrackID": "Track_8",
"TrackWt": 5
},
{
"Id": 9,
"TrackID": "Track_9",
"TrackWt": 5
},
{
"Id": 10,
"TrackID": "Track_10",
"TrackWt": 5
}
]

View File

@ -26,7 +26,7 @@
6 6
], ],
"hid": [ "hid": [
25001 "25001"
], ],
"color": [ "color": [
4, 4,
@ -61,7 +61,7 @@
6 6
], ],
"hid": [ "hid": [
25001 "25001"
], ],
"color": [ "color": [
4, 4,
@ -96,7 +96,7 @@
6 6
], ],
"hid": [ "hid": [
25001 "25001"
], ],
"color": [ "color": [
4, 4,
@ -131,7 +131,7 @@
6 6
], ],
"hid": [ "hid": [
25001 "25001"
], ],
"color": [ "color": [
4, 4,
@ -166,7 +166,7 @@
6 6
], ],
"hid": [ "hid": [
25001 "25001"
], ],
"color": [ "color": [
4, 4,
@ -201,7 +201,7 @@
6 6
], ],
"hid": [ "hid": [
25001 "25001"
], ],
"color": [ "color": [
4, 4,
@ -236,7 +236,7 @@
6 6
], ],
"hid": [ "hid": [
25001 "25001"
], ],
"color": [ "color": [
4, 4,
@ -271,7 +271,7 @@
6 6
], ],
"hid": [ "hid": [
25001 "25001"
], ],
"color": [ "color": [
4, 4,
@ -306,7 +306,7 @@
6 6
], ],
"hid": [ "hid": [
25001 "25001"
], ],
"color": [ "color": [
4, 4,
@ -341,7 +341,7 @@
6 6
], ],
"hid": [ "hid": [
25001 "25001"
], ],
"color": [ "color": [
4, 4,
@ -376,7 +376,7 @@
6 6
], ],
"hid": [ "hid": [
25001 "25001"
], ],
"color": [ "color": [
4, 4,
@ -411,7 +411,7 @@
6 6
], ],
"hid": [ "hid": [
25001 "25001"
], ],
"color": [ "color": [
4, 4,
@ -446,7 +446,7 @@
6 6
], ],
"hid": [ "hid": [
25001 "25001"
], ],
"color": [ "color": [
4, 4,

View File

@ -633,6 +633,7 @@
"buzkashi_recentPlayer": 10, "buzkashi_recentPlayer": 10,
"buzkashi_trackpartdis": 200, "buzkashi_trackpartdis": 200,
"buzkashi_trackpartcount": 4, "buzkashi_trackpartcount": 4,
"buzkashi_trackpartStartDis": 300,
"task_activation": 10000007, "task_activation": 10000007,
"favorability_attenuation": [ "favorability_attenuation": [
{ {

View File

@ -9981,7 +9981,7 @@
"hid": "83008", "hid": "83008",
"name": { "name": {
"key": "hero_main_name_83008", "key": "hero_main_name_83008",
"text": "黑化小猴子" "text": "怪异的拳猴"
}, },
"star": 3, "star": 3,
"color": 2, "color": 2,
@ -10060,7 +10060,7 @@
"expitemnum": 7, "expitemnum": 7,
"herointr": { "herointr": {
"key": "hero_main_herointr_83008", "key": "hero_main_herointr_83008",
"text": "传说中的守护者“黑化小猴子”,拥有不俗的战斗能力" "text": "传说中的守护者“怪异的拳猴”,拥有不俗的战斗能力"
} }
}, },
{ {

View File

@ -493,5 +493,27 @@
}, },
"reword": [], "reword": [],
"duration": 720 "duration": 720
},
{
"id": "XXLRankingReward",
"title": {
"key": "mail_mail_title_23",
"text": "三消排行奖励"
},
"postmark": "yj_icon_yc_mfjl",
"recipient": {
"key": "mail_mail_recipient_23",
"text": "亲爱的玩家:"
},
"content": {
"key": "mail_mail_content_7",
"text": "获得第{0}名,奖励请查收。"
},
"sender": {
"key": "mail_mail_sender_23",
"text": "系统"
},
"reword": [],
"duration": 720
} }
] ]

View File

@ -7526,18 +7526,18 @@
}, },
{ {
"id": "83008", "id": "83008",
"preson": "83008", "preson": "51012",
"presonshow": "83008_exhibition", "presonshow": "51012_exhibition",
"presonstory": "83008_story", "presonstory": "51012_evil",
"presondraw": "", "presondraw": "",
"height": 1, "height": 1,
"weight": 1, "weight": 1,
"ico": "tx_js_83008", "ico": "tx_js_51012",
"fight": "tx_js_83008", "fight": "tx_js_51012",
"img": "sbkp_js_83008", "img": "sbkp_js_51012",
"heroimg": "hbkp_js_83008", "heroimg": "hbkp_js_51012",
"portrait": "zm_img_83008", "portrait": "zm_img_51012",
"bust": "bust_83008", "bust": "bust_51012",
"postxyz": [ "postxyz": [
0, 0,
0, 0,

View File

@ -1033,7 +1033,7 @@
"opencondi": [ "opencondi": [
18000042 18000042
], ],
"wkqbx": 0, "wkqbx": 2,
"img": "icon_sytj", "img": "icon_sytj",
"prompt": { "prompt": {
"key": "opencond_opencond_prompt_37", "key": "opencond_opencond_prompt_37",

View File

@ -1,6 +1,7 @@
package expedition package expedition
import ( import (
"fmt"
"go_dreamfactory/comm" "go_dreamfactory/comm"
"go_dreamfactory/lego/sys/log" "go_dreamfactory/lego/sys/log"
"go_dreamfactory/pb" "go_dreamfactory/pb"
@ -18,19 +19,21 @@ func (this *apiComp) Info(session comm.IUserSession, req *pb.ExpeditionInfoReq)
var ( var (
member *pb.DBGuildMember member *pb.DBGuildMember
info *pb.DBExpedition info *pb.DBExpedition
boos *pb.DBExpeditionBoos
err error err error
) )
if errdata = this.InfoCheck(session, req); errdata != nil { if errdata = this.InfoCheck(session, req); errdata != nil {
return return
} }
lock, _ := this.module.modelExpedition.userlock(req.Guildid) state := getSysDayTimeState()
lock, _ := this.module.model.userlock(req.Guildid)
err = lock.Lock() err = lock.Lock()
if err != nil { if err != nil {
this.module.Error("公会战分布式锁 err!", log.Field{Key: "Guildid", Value: req.Guildid}, log.Field{Key: "err", Value: err.Error()}) this.module.Error("公会战分布式锁 err!", log.Field{Key: "Guildid", Value: req.Guildid}, log.Field{Key: "err", Value: err.Error()})
return return
} }
defer lock.Unlock() defer lock.Unlock()
if info, err = this.module.modelExpedition.getInfo(req.Guildid); err != nil { if info, err = this.module.model.getInfo(req.Guildid); err != nil {
errdata = &pb.ErrorData{ errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError, Code: pb.ErrorCode_DBError,
Message: err.Error(), Message: err.Error(),
@ -38,8 +41,25 @@ func (this *apiComp) Info(session comm.IUserSession, req *pb.ExpeditionInfoReq)
return return
} }
if !utils.IsSameWeek(member.Refreshtime) { if !utils.IsSameWeek(member.Refreshtime) {
this.module.modelExpedition.refreshBoos(info) this.module.model.refreshBoos(info)
}
if state == 2 || state == 3 {
boos = info.Boos[info.Indexboos]
if boos == nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_SystemError,
Message: fmt.Sprintf("no found currboos:%d", info.Indexboos),
} }
session.SendMsg(string(this.module.GetType()), "info", &pb.ExpeditionInfoResp{Info: info}) return
}
if !boos.Crusaded {
if this.module.model.settlementboos(info, boos) {
this.module.model.updateExpedition(info)
}
}
}
session.SendMsg(string(this.module.GetType()), "info", &pb.ExpeditionInfoResp{Info: info, State: state})
return return
} }

View File

@ -0,0 +1,137 @@
package expedition
import (
"fmt"
"go_dreamfactory/comm"
"go_dreamfactory/lego/sys/log"
"go_dreamfactory/pb"
cfg "go_dreamfactory/sys/configure/structs"
)
// 参数校验
func (this *apiComp) ReceiveCheck(session comm.IUserSession, req *pb.ExpeditionReceiveReq) (errdata *pb.ErrorData) {
return
}
// 获取工会boos战信息
func (this *apiComp) Receive(session comm.IUserSession, req *pb.ExpeditionReceiveReq) (errdata *pb.ErrorData) {
var (
conf *cfg.GameExpeditionBoosData
info *pb.DBExpedition
boos *pb.DBExpeditionBoos
member *pb.DBExpeditionMember
award []*pb.UserAtno
err error
ok bool
)
if errdata = this.ReceiveCheck(session, req); errdata != nil {
return
}
lock, _ := this.module.model.userlock(req.Guildid)
err = lock.Lock()
if err != nil {
this.module.Error("公会战分布式锁 err!", log.Field{Key: "Guildid", Value: req.Guildid}, log.Field{Key: "err", Value: err.Error()})
return
}
defer lock.Unlock()
if info, err = this.module.model.getInfo(req.Guildid); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Message: err.Error(),
}
return
}
for _, v := range info.Boos {
if v.Boosid == req.Boosid {
boos = v
}
}
if boos == nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_SystemError,
Message: fmt.Sprintf("no found currboos:%d", req.Boosid),
}
return
}
if !boos.Crusaded {
this.module.model.settlementboos(info, boos)
}
if conf, err = this.module.configure.getGameExpeditionBoosData(boos.Boosid); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ConfigNoFound,
Message: err.Error(),
}
return
}
if boos.Hp > 0 {
if state := getSysDayTimeState(); state != 2 {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ReqParameterError,
Message: "curr no in award time!",
}
return
}
if member, ok = boos.Members[session.GetUserId()]; !ok || member.State == 0 {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ReqParameterError,
Message: "Not involved!",
}
return
}
member.State = 2
if errdata, award = this.module.DispenseAtno(session, conf.FailReward, true); errdata != nil {
return
}
} else {
if member, ok = boos.Members[session.GetUserId()]; ok {
if member.State == 2 {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ReqParameterError,
Message: "Received!",
}
return
}
member.State = 2
} else {
boos.Members[session.GetUserId()] = &pb.DBExpeditionMember{
Uid: session.GetUserId(),
State: 2,
}
}
user, err := this.module.GetUserForSession(session)
if err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Title: pb.ErrorCode_DBError.ToString(),
Message: err.Error(),
}
return
}
if prop := this.module.ModuleTools.GetGroupDataByLottery(conf.KillReward, user.Vip, user.Lv); len(prop) == 0 {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ConfigNoFound,
Title: pb.ErrorCode_ConfigNoFound.ToString(),
Message: fmt.Sprintf("掉落组未找到:%d", conf.KillReward),
}
return
} else {
if errdata, award = this.module.DispenseAtno(session, prop, true); errdata != nil {
return
}
}
}
if err = this.module.model.updateExpedition(info); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Message: err.Error(),
}
return
}
session.SendMsg(string(this.module.GetType()), "info", &pb.ExpeditionReceiveResp{Boosid: req.Boosid, Award: award})
return
}

View File

@ -5,6 +5,7 @@ import (
"go_dreamfactory/comm" "go_dreamfactory/comm"
"go_dreamfactory/lego/sys/log" "go_dreamfactory/lego/sys/log"
"go_dreamfactory/pb" "go_dreamfactory/pb"
cfg "go_dreamfactory/sys/configure/structs"
) )
// 参数校验 // 参数校验
@ -16,67 +17,109 @@ func (this *apiComp) UpHeroCheck(session comm.IUserSession, req *pb.ExpeditionUp
// 获取工会boos战信息 // 获取工会boos战信息
func (this *apiComp) UpHero(session comm.IUserSession, req *pb.ExpeditionUpHeroReq) (errdata *pb.ErrorData) { func (this *apiComp) UpHero(session comm.IUserSession, req *pb.ExpeditionUpHeroReq) (errdata *pb.ErrorData) {
var ( var (
// conf *cfg.GameExpeditionBoosData conf *cfg.GameExpeditionBoosData
hconf *cfg.GameHeroData
member *pb.DBExpeditionMember member *pb.DBExpeditionMember
info *pb.DBExpedition info *pb.DBExpedition
boos *pb.DBExpeditionBoos boos *pb.DBExpeditionBoos
// heros []*pb.DBHero heros []*pb.DBHero
condition []int32
err error err error
) )
if errdata = this.UpHeroCheck(session, req); errdata != nil { if errdata = this.UpHeroCheck(session, req); errdata != nil {
return return
} }
if state := getSysDayTimeState(); state != 1 {
lock, _ := this.module.modelExpedition.userlock(req.Guildid) errdata = &pb.ErrorData{
Code: pb.ErrorCode_ReqParameterError,
Message: "curr no in uptime!",
}
return
}
lock, _ := this.module.model.userlock(req.Guildid)
err = lock.Lock() err = lock.Lock()
if err != nil { if err != nil {
this.module.Error("公会战分布式锁 err!", log.Field{Key: "Guildid", Value: req.Guildid}, log.Field{Key: "err", Value: err.Error()}) this.module.Error("公会战分布式锁 err!", log.Field{Key: "Guildid", Value: req.Guildid}, log.Field{Key: "err", Value: err.Error()})
return return
} }
defer lock.Unlock() defer lock.Unlock()
if info, err = this.module.modelExpedition.getInfo(req.Guildid); err != nil { if info, err = this.module.model.getInfo(req.Guildid); err != nil {
errdata = &pb.ErrorData{ errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError, Code: pb.ErrorCode_DBError,
Message: err.Error(), Message: err.Error(),
} }
return return
} }
for _, v := range info.Boos { boos = info.Boos[info.Indexboos]
if v.Boosid == info.Currboos {
boos = v
}
}
if boos == nil { if boos == nil {
errdata = &pb.ErrorData{ errdata = &pb.ErrorData{
Code: pb.ErrorCode_SystemError, Code: pb.ErrorCode_SystemError,
Message: fmt.Sprintf("no found currboos:%d", info.Currboos), Message: fmt.Sprintf("no found currboos:%d", info.Indexboos),
} }
return return
} }
// if conf, err = this.module.configure.getGameExpeditionBoosData(info.Currboos); err != nil { if conf, err = this.module.configure.getGameExpeditionBoosData(boos.Boosid); err != nil {
// errdata = &pb.ErrorData{ errdata = &pb.ErrorData{
// Code: pb.ErrorCode_ConfigNoFound, Code: pb.ErrorCode_ConfigNoFound,
// Message: err.Error(), Message: err.Error(),
// } }
// return return
// } }
// if heros, err = this.module.ModuleHero.QueryCrossMultipleHeroinfo(req.Heros); err != nil { if heros, err = this.module.ModuleHero.QueryCrossMultipleHeroinfo(session.GetUserId(), req.Heros); err != nil {
// errdata = &pb.ErrorData{ errdata = &pb.ErrorData{
// Code: pb.ErrorCode_DBError, Code: pb.ErrorCode_DBError,
// Message: err.Error(), Message: err.Error(),
// } }
// return return
// } }
member = &pb.DBExpeditionMember{ member = &pb.DBExpeditionMember{
Uid: session.GetUserId(), Uid: session.GetUserId(),
Heros: req.Heros, Heros: req.Heros,
Totalpower: 100, Totalpower: 100,
State: 1, State: 1,
} }
condition = make([]int32, 4)
for _, v := range heros {
if hconf, err = this.module.ModuleTools.GetHeroConfig(v.HeroID); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ConfigNoFound,
Message: err.Error(),
}
return
}
if len(conf.Race) == 2 {
if hconf.Race == conf.Race[0] {
condition[0]++
}
}
if len(conf.Job) == 2 {
if hconf.Job == conf.Job[0] {
condition[1]++
}
}
for _, v := range conf.Hid {
if hconf.Hid == v {
condition[2]++
}
}
if len(conf.Color) == 2 {
if hconf.Color == conf.Color[0] {
condition[3]++
}
}
member.Totalpower += v.Fightvalue
}
boos.Members[session.GetUserId()] = member boos.Members[session.GetUserId()] = member
this.module.modelExpedition.updateGuildGve(info) if err = this.module.model.updateExpedition(info); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Message: err.Error(),
}
return
}
session.SendMsg(string(this.module.GetType()), "info", &pb.ExpeditionInfoResp{Info: info}) session.SendMsg(string(this.module.GetType()), "info", &pb.ExpeditionInfoResp{Info: info})
return return
} }

View File

@ -1,5 +1,20 @@
package expedition package expedition
import "go_dreamfactory/sys/configure"
const ( const (
UnionGveBoosCoonfKey = "UnionGveBoosCoonf" UnionGveBoosCoonfKey = "UnionGveBoosCoonf"
) )
func getSysDayTimeState() (state int32) {
hour := configure.Now().Hour()
if hour < 10 {
return 0
} else if hour < 20 {
return 1
} else if hour < 21 {
return 2
} else {
return 3
}
}

View File

@ -63,6 +63,7 @@ func (this *ModelExpedition) getInfo(guildid string) (result *pb.DBExpedition, e
Guildid: guildid, Guildid: guildid,
Lv: 1, Lv: 1,
Refresh: configure.Now().Unix(), Refresh: configure.Now().Unix(),
Indexboos: 0,
Boos: make([]*pb.DBExpeditionBoos, 0), Boos: make([]*pb.DBExpeditionBoos, 0),
} }
for _, v := range confs { for _, v := range confs {
@ -72,14 +73,14 @@ func (this *ModelExpedition) getInfo(guildid string) (result *pb.DBExpedition, e
Members: make(map[string]*pb.DBExpeditionMember), Members: make(map[string]*pb.DBExpeditionMember),
}) })
} }
result.Currboos = result.Boos[0].Boosid
err = this.Add(guildid, result) err = this.Add(guildid, result)
} }
return return
} }
func (this *ModelExpedition) updateGuildGve(data *pb.DBExpedition) (err error) { func (this *ModelExpedition) updateExpedition(data *pb.DBExpedition) (err error) {
if err = this.ChangeById(data.Guildid, map[string]interface{}{ if err = this.ChangeById(data.Guildid, map[string]interface{}{
"indexboos": data.Indexboos,
"boos": data.Boos, "boos": data.Boos,
}); err != nil { }); err != nil {
this.module.Error("更新用户任务数据 错误!", log.Field{Key: "err", Value: err.Error()}) this.module.Error("更新用户任务数据 错误!", log.Field{Key: "err", Value: err.Error()})
@ -104,7 +105,27 @@ func (this *ModelExpedition) refreshBoos(info *pb.DBExpedition) (conf *pb.DBGuil
Members: make(map[string]*pb.DBExpeditionMember), Members: make(map[string]*pb.DBExpeditionMember),
}) })
} }
info.Currboos = info.Boos[0].Boosid info.Indexboos = 0
return
}
//结算boos
func (this *ModelExpedition) settlementboos(info *pb.DBExpedition, boos *pb.DBExpeditionBoos) (changed bool) {
var (
fightingValue int32
)
if len(boos.Members) == 0 {
return
}
for _, v := range boos.Members {
fightingValue += v.Totalpower
}
boos.Hp -= fightingValue
if boos.Hp < 0 && info.Indexboos < int32(len(info.Boos))-1 {
info.Indexboos++
}
boos.Crusaded = true
changed = true
return return
} }

View File

@ -22,7 +22,7 @@ type Expedition struct {
sociaty comm.ISociaty sociaty comm.ISociaty
mail comm.Imail mail comm.Imail
api *apiComp api *apiComp
modelExpedition *ModelExpedition model *ModelExpedition
configure *MCompConfigure configure *MCompConfigure
} }
@ -60,7 +60,7 @@ func (this *Expedition) OnInstallComp() {
this.ModuleBase.OnInstallComp() this.ModuleBase.OnInstallComp()
this.api = this.RegisterComp(new(apiComp)).(*apiComp) this.api = this.RegisterComp(new(apiComp)).(*apiComp)
this.configure = this.RegisterComp(new(MCompConfigure)).(*MCompConfigure) this.configure = this.RegisterComp(new(MCompConfigure)).(*MCompConfigure)
this.modelExpedition = this.RegisterComp(new(ModelExpedition)).(*ModelExpedition) this.model = this.RegisterComp(new(ModelExpedition)).(*ModelExpedition)
} }
// 红点 // 红点

View File

@ -29,7 +29,7 @@ type DBExpedition struct {
Guildid string `protobuf:"bytes,1,opt,name=guildid,proto3" json:"guildid" bson:"_id"` Guildid string `protobuf:"bytes,1,opt,name=guildid,proto3" json:"guildid" bson:"_id"`
Lv int32 `protobuf:"varint,2,opt,name=lv,proto3" json:"lv"` //当前第几阶段 Lv int32 `protobuf:"varint,2,opt,name=lv,proto3" json:"lv"` //当前第几阶段
Refresh int64 `protobuf:"varint,3,opt,name=refresh,proto3" json:"refresh"` //最后刷新时间 Refresh int64 `protobuf:"varint,3,opt,name=refresh,proto3" json:"refresh"` //最后刷新时间
Currboos int32 `protobuf:"varint,4,opt,name=currboos,proto3" json:"currboos"` //当前boos Indexboos int32 `protobuf:"varint,4,opt,name=indexboos,proto3" json:"indexboos"` //当前boos
Boos []*DBExpeditionBoos `protobuf:"bytes,5,rep,name=boos,proto3" json:"boos"` //boos列表 Boos []*DBExpeditionBoos `protobuf:"bytes,5,rep,name=boos,proto3" json:"boos"` //boos列表
} }
@ -86,9 +86,9 @@ func (x *DBExpedition) GetRefresh() int64 {
return 0 return 0
} }
func (x *DBExpedition) GetCurrboos() int32 { func (x *DBExpedition) GetIndexboos() int32 {
if x != nil { if x != nil {
return x.Currboos return x.Indexboos
} }
return 0 return 0
} }
@ -107,7 +107,8 @@ type DBExpeditionBoos struct {
Boosid int32 `protobuf:"varint,1,opt,name=boosid,proto3" json:"boosid"` Boosid int32 `protobuf:"varint,1,opt,name=boosid,proto3" json:"boosid"`
Hp int32 `protobuf:"varint,2,opt,name=hp,proto3" json:"hp"` Hp int32 `protobuf:"varint,2,opt,name=hp,proto3" json:"hp"`
Members map[string]*DBExpeditionMember `protobuf:"bytes,3,rep,name=members,proto3" json:"members" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` Crusaded bool `protobuf:"varint,3,opt,name=crusaded,proto3" json:"crusaded"` //是否讨伐完毕
Members map[string]*DBExpeditionMember `protobuf:"bytes,4,rep,name=members,proto3" json:"members" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
} }
func (x *DBExpeditionBoos) Reset() { func (x *DBExpeditionBoos) Reset() {
@ -156,6 +157,13 @@ func (x *DBExpeditionBoos) GetHp() int32 {
return 0 return 0
} }
func (x *DBExpeditionBoos) GetCrusaded() bool {
if x != nil {
return x.Crusaded
}
return false
}
func (x *DBExpeditionBoos) GetMembers() map[string]*DBExpeditionMember { func (x *DBExpeditionBoos) GetMembers() map[string]*DBExpeditionMember {
if x != nil { if x != nil {
return x.Members return x.Members
@ -240,37 +248,39 @@ var File_expedition_expedition_db_proto protoreflect.FileDescriptor
var file_expedition_expedition_db_proto_rawDesc = []byte{ var file_expedition_expedition_db_proto_rawDesc = []byte{
0x0a, 0x1e, 0x65, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x65, 0x78, 0x70, 0x0a, 0x1e, 0x65, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x65, 0x78, 0x70,
0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0x95, 0x01, 0x0a, 0x0c, 0x44, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x22, 0x97, 0x01, 0x0a, 0x0c, 0x44, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f,
0x6e, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x28, 0x09, 0x52, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6c,
0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x18, 0x0a, 0x07, 0x72,
0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x72, 0x65, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x72, 0x65,
0x66, 0x72, 0x65, 0x73, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x75, 0x72, 0x72, 0x62, 0x6f, 0x6f, 0x66, 0x72, 0x65, 0x73, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x62, 0x6f,
0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x75, 0x72, 0x72, 0x62, 0x6f, 0x6f, 0x6f, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x62,
0x73, 0x12, 0x25, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x6f, 0x6f, 0x73, 0x12, 0x25, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28,
0x11, 0x2e, 0x44, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x6f, 0x0b, 0x32, 0x11, 0x2e, 0x44, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e,
0x6f, 0x73, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x73, 0x22, 0xc5, 0x01, 0x0a, 0x10, 0x44, 0x42, 0x45, 0x42, 0x6f, 0x6f, 0x73, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x73, 0x22, 0xe1, 0x01, 0x0a, 0x10, 0x44,
0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x6f, 0x6f, 0x73, 0x12, 0x16, 0x0a, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x6f, 0x6f, 0x73, 0x12,
0x06, 0x62, 0x6f, 0x6f, 0x73, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x62, 0x16, 0x0a, 0x06, 0x62, 0x6f, 0x6f, 0x73, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
0x6f, 0x6f, 0x73, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x06, 0x62, 0x6f, 0x6f, 0x73, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x70, 0x18, 0x02, 0x20,
0x05, 0x52, 0x02, 0x68, 0x70, 0x12, 0x38, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x01, 0x28, 0x05, 0x52, 0x02, 0x68, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x72, 0x75, 0x73, 0x61,
0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x44, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x64, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x72, 0x75, 0x73, 0x61,
0x69, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x6f, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x64, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x04,
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x44, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74,
0x4f, 0x0a, 0x0c, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x69, 0x6f, 0x6e, 0x42, 0x6f, 0x6f, 0x73, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x45,
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x1a, 0x4f, 0x0a,
0x79, 0x12, 0x29, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x0c, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a,
0x32, 0x13, 0x2e, 0x44, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x29, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13,
0x22, 0x72, 0x0a, 0x12, 0x44, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d,
0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x62, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x72,
0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x65, 0x72, 0x6f, 0x0a, 0x12, 0x44, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65,
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x68, 0x65, 0x72, 0x6f, 0x73, 0x12, 0x1e, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0a, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x65, 0x72, 0x6f, 0x73, 0x18,
0x28, 0x05, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x14, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x68, 0x65, 0x72, 0x6f, 0x73, 0x12, 0x1e, 0x0a, 0x0a,
0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
0x74, 0x61, 0x74, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05,
0x6f, 0x74, 0x6f, 0x33, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61,
0x74, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
} }
var ( var (

View File

@ -74,6 +74,7 @@ type ExpeditionInfoResp struct {
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Info *DBExpedition `protobuf:"bytes,1,opt,name=info,proto3" json:"info"` Info *DBExpedition `protobuf:"bytes,1,opt,name=info,proto3" json:"info"`
State int32 `protobuf:"varint,2,opt,name=state,proto3" json:"state"` //0 未开放 1 准备中 2讨伐中 3结算中
} }
func (x *ExpeditionInfoResp) Reset() { func (x *ExpeditionInfoResp) Reset() {
@ -115,6 +116,13 @@ func (x *ExpeditionInfoResp) GetInfo() *DBExpedition {
return nil return nil
} }
func (x *ExpeditionInfoResp) GetState() int32 {
if x != nil {
return x.State
}
return 0
}
//上英雄 //上英雄
type ExpeditionUpHeroReq struct { type ExpeditionUpHeroReq struct {
state protoimpl.MessageState state protoimpl.MessageState
@ -338,30 +346,32 @@ var file_expedition_expedition_msg_proto_rawDesc = []byte{
0x6f, 0x1a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2d, 0x0a, 0x6f, 0x1a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2d, 0x0a,
0x11, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x11, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52,
0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x64, 0x22, 0x37, 0x0a, 0x12, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x64, 0x22, 0x4d, 0x0a, 0x12,
0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65,
0x73, 0x70, 0x12, 0x21, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x0d, 0x2e, 0x44, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52,
0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x45, 0x0a, 0x13, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02,
0x69, 0x6f, 0x6e, 0x55, 0x70, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x45, 0x0a, 0x13, 0x45,
0x67, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x48, 0x65, 0x72, 0x6f, 0x52,
0x75, 0x69, 0x6c, 0x64, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x65, 0x72, 0x6f, 0x73, 0x18, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20,
0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x68, 0x65, 0x72, 0x6f, 0x73, 0x22, 0x43, 0x0a, 0x14, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05,
0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x48, 0x65, 0x72, 0x6f, 0x68, 0x65, 0x72, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x68, 0x65, 0x72,
0x52, 0x65, 0x73, 0x70, 0x12, 0x2b, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x6f, 0x73, 0x22, 0x43, 0x0a, 0x14, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x55, 0x70, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2b, 0x0a, 0x06, 0x6d, 0x65,
0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x45,
0x72, 0x22, 0x48, 0x0a, 0x14, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52,
0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x75, 0x69, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x48, 0x0a, 0x14, 0x45, 0x78, 0x70, 0x65, 0x64,
0x6c, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x12,
0x64, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x6f, 0x6f, 0x73, 0x69, 0x64, 0x18, 0x02, 0x20, 0x18, 0x0a, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x01, 0x28, 0x05, 0x52, 0x06, 0x62, 0x6f, 0x6f, 0x73, 0x69, 0x64, 0x22, 0x50, 0x0a, 0x15, 0x45, 0x52, 0x07, 0x67, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x6f, 0x6f,
0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x73, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x62, 0x6f, 0x6f, 0x73, 0x69,
0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x6f, 0x6f, 0x73, 0x69, 0x64, 0x18, 0x01, 0x64, 0x22, 0x50, 0x0a, 0x15, 0x45, 0x78, 0x70, 0x65, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52,
0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x62, 0x6f, 0x6f, 0x73, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x05, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x6f,
0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x6f, 0x73, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x62, 0x6f, 0x6f, 0x73,
0x65, 0x72, 0x41, 0x74, 0x6e, 0x6f, 0x52, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x42, 0x06, 0x5a, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28,
0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 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 ( var (

View File

@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
type GameBuzkashiTrackLottery struct {
_dataMap map[int32]*GameBuzkashiTrackLotteryData
_dataList []*GameBuzkashiTrackLotteryData
}
func NewGameBuzkashiTrackLottery(_buf []map[string]interface{}) (*GameBuzkashiTrackLottery, error) {
_dataList := make([]*GameBuzkashiTrackLotteryData, 0, len(_buf))
dataMap := make(map[int32]*GameBuzkashiTrackLotteryData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGameBuzkashiTrackLotteryData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Id] = _v
}
}
return &GameBuzkashiTrackLottery{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GameBuzkashiTrackLottery) GetDataMap() map[int32]*GameBuzkashiTrackLotteryData {
return table._dataMap
}
func (table *GameBuzkashiTrackLottery) GetDataList() []*GameBuzkashiTrackLotteryData {
return table._dataList
}
func (table *GameBuzkashiTrackLottery) Get(key int32) *GameBuzkashiTrackLotteryData {
return table._dataMap[key]
}

View File

@ -0,0 +1,39 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
import "errors"
type GameBuzkashiTrackLotteryData struct {
Id int32
TrackID string
TrackWt int32
}
const TypeId_GameBuzkashiTrackLotteryData = 172598875
func (*GameBuzkashiTrackLotteryData) GetTypeId() int32 {
return 172598875
}
func (_v *GameBuzkashiTrackLotteryData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Id"].(float64); !_ok_ { err = errors.New("Id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; if _v.TrackID, _ok_ = _buf["TrackID"].(string); !_ok_ { err = errors.New("TrackID error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["TrackWt"].(float64); !_ok_ { err = errors.New("TrackWt error"); return }; _v.TrackWt = int32(_tempNum_) }
return
}
func DeserializeGameBuzkashiTrackLotteryData(_buf map[string]interface{}) (*GameBuzkashiTrackLotteryData, error) {
v := &GameBuzkashiTrackLotteryData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}

View File

@ -21,7 +21,7 @@ type GameExpeditionBoosData struct {
FailReward []*Gameatn FailReward []*Gameatn
Race []int32 Race []int32
Job []int32 Job []int32
Hid []int32 Hid []string
Color []int32 Color []int32
Fight int32 Fight int32
} }
@ -87,11 +87,11 @@ func (_v *GameExpeditionBoosData)Deserialize(_buf map[string]interface{}) (err e
var _ok_ bool var _ok_ bool
if _arr_, _ok_ = _buf["hid"].([]interface{}); !_ok_ { err = errors.New("hid error"); return } if _arr_, _ok_ = _buf["hid"].([]interface{}); !_ok_ { err = errors.New("hid error"); return }
_v.Hid = make([]int32, 0, len(_arr_)) _v.Hid = make([]string, 0, len(_arr_))
for _, _e_ := range _arr_ { for _, _e_ := range _arr_ {
var _list_v_ int32 var _list_v_ string
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } { if _list_v_, _ok_ = _e_.(string); !_ok_ { err = errors.New("_list_v_ error"); return } }
_v.Hid = append(_v.Hid, _list_v_) _v.Hid = append(_v.Hid, _list_v_)
} }
} }

View File

@ -184,6 +184,7 @@ type Tables struct {
BuzkashiFm *GameBuzkashiFm BuzkashiFm *GameBuzkashiFm
BuzkashiOpen *GameBuzkashiOpen BuzkashiOpen *GameBuzkashiOpen
BuzkashiTrack *GameBuzkashiTrack BuzkashiTrack *GameBuzkashiTrack
BuzkashiTrackLottery *GameBuzkashiTrackLottery
Pricegroup *GamePricegroup Pricegroup *GamePricegroup
Loading *GameLoading Loading *GameLoading
RuleDesc *GameRuleDesc RuleDesc *GameRuleDesc
@ -344,6 +345,7 @@ type Tables struct {
FightingSkilllv *GameFightingSkilllv FightingSkilllv *GameFightingSkilllv
FightingSkill *GameFightingSkill FightingSkill *GameFightingSkill
FightingSkillStar *GameFightingSkillStar FightingSkillStar *GameFightingSkillStar
ExpeditionBoos *GameExpeditionBoos
} }
func NewTables(loader JsonLoader) (*Tables, error) { func NewTables(loader JsonLoader) (*Tables, error) {
@ -1389,6 +1391,12 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.BuzkashiTrack, err = NewGameBuzkashiTrack(buf) ; err != nil { if tables.BuzkashiTrack, err = NewGameBuzkashiTrack(buf) ; err != nil {
return nil, err return nil, err
} }
if buf, err = loader("game_buzkashitracklottery") ; err != nil {
return nil, err
}
if tables.BuzkashiTrackLottery, err = NewGameBuzkashiTrackLottery(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_pricegroup") ; err != nil { if buf, err = loader("game_pricegroup") ; err != nil {
return nil, err return nil, err
} }
@ -2349,5 +2357,11 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.FightingSkillStar, err = NewGameFightingSkillStar(buf) ; err != nil { if tables.FightingSkillStar, err = NewGameFightingSkillStar(buf) ; err != nil {
return nil, err return nil, err
} }
if buf, err = loader("game_expeditionboos") ; err != nil {
return nil, err
}
if tables.ExpeditionBoos, err = NewGameExpeditionBoos(buf) ; err != nil {
return nil, err
}
return tables, nil return tables, nil
} }

View File

@ -220,6 +220,7 @@ type GameGlobalData struct {
BuzkashiRecentPlayer int32 BuzkashiRecentPlayer int32
BuzkashiTrackpartdis int32 BuzkashiTrackpartdis int32
BuzkashiTrackpartcount int32 BuzkashiTrackpartcount int32
BuzkashiTrackpartStartDis int32
TaskActivation int32 TaskActivation int32
FavorabilityAttenuation []*Gamekv FavorabilityAttenuation []*Gamekv
Mounts string Mounts string
@ -930,6 +931,7 @@ func (_v *GameGlobalData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_recentPlayer"].(float64); !_ok_ { err = errors.New("buzkashi_recentPlayer error"); return }; _v.BuzkashiRecentPlayer = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_recentPlayer"].(float64); !_ok_ { err = errors.New("buzkashi_recentPlayer error"); return }; _v.BuzkashiRecentPlayer = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_trackpartdis"].(float64); !_ok_ { err = errors.New("buzkashi_trackpartdis error"); return }; _v.BuzkashiTrackpartdis = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_trackpartdis"].(float64); !_ok_ { err = errors.New("buzkashi_trackpartdis error"); return }; _v.BuzkashiTrackpartdis = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_trackpartcount"].(float64); !_ok_ { err = errors.New("buzkashi_trackpartcount error"); return }; _v.BuzkashiTrackpartcount = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_trackpartcount"].(float64); !_ok_ { err = errors.New("buzkashi_trackpartcount error"); return }; _v.BuzkashiTrackpartcount = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_trackpartStartDis"].(float64); !_ok_ { err = errors.New("buzkashi_trackpartStartDis error"); return }; _v.BuzkashiTrackpartStartDis = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["task_activation"].(float64); !_ok_ { err = errors.New("task_activation error"); return }; _v.TaskActivation = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["task_activation"].(float64); !_ok_ { err = errors.New("task_activation error"); return }; _v.TaskActivation = int32(_tempNum_) }
{ {
var _arr_ []interface{} var _arr_ []interface{}