This commit is contained in:
liwei 2023-08-09 20:30:00 +08:00
commit 403e6a9ade
21 changed files with 985 additions and 245 deletions

View File

@ -12,6 +12,7 @@
"vague": "Person/10000/10000MT.prefab", "vague": "Person/10000/10000MT.prefab",
"pvpAnimator": "Person/10000/10000_MPvp.controller", "pvpAnimator": "Person/10000/10000_MPvp.controller",
"mainq": "Person/10000/10000M_q.prefab", "mainq": "Person/10000/10000M_q.prefab",
"vagueq": "Person/10000/10000MT_q.prefab",
"playerhead": "tx_js_nz", "playerhead": "tx_js_nz",
"name": { "name": {
"key": "playerinfor_playerinfor_overview_name_1", "key": "playerinfor_playerinfor_overview_name_1",
@ -31,6 +32,7 @@
"vague": "Person/10000/10000WT.prefab", "vague": "Person/10000/10000WT.prefab",
"pvpAnimator": "Person/10000/10000_WPvp.controller", "pvpAnimator": "Person/10000/10000_WPvp.controller",
"mainq": "Person/10000/10000W_q.prefab", "mainq": "Person/10000/10000W_q.prefab",
"vagueq": "Person/10000/10000WT_q.prefab",
"playerhead": "tx_js_nvz", "playerhead": "tx_js_nvz",
"name": { "name": {
"key": "playerinfor_playerinfor_overview_name_2", "key": "playerinfor_playerinfor_overview_name_2",
@ -50,6 +52,7 @@
"vague": "", "vague": "",
"pvpAnimator": "", "pvpAnimator": "",
"mainq": "", "mainq": "",
"vagueq": "",
"playerhead": "tx_js_nz", "playerhead": "tx_js_nz",
"name": { "name": {
"key": "playerinfor_playerinfor_overview_name_3", "key": "playerinfor_playerinfor_overview_name_3",
@ -69,6 +72,7 @@
"vague": "", "vague": "",
"pvpAnimator": "", "pvpAnimator": "",
"mainq": "", "mainq": "",
"vagueq": "",
"playerhead": "tx_js_nvz", "playerhead": "tx_js_nvz",
"name": { "name": {
"key": "playerinfor_playerinfor_overview_name_4", "key": "playerinfor_playerinfor_overview_name_4",
@ -88,6 +92,7 @@
"vague": "", "vague": "",
"pvpAnimator": "", "pvpAnimator": "",
"mainq": "", "mainq": "",
"vagueq": "",
"playerhead": "tx_js_nz", "playerhead": "tx_js_nz",
"name": { "name": {
"key": "playerinfor_playerinfor_overview_name_5", "key": "playerinfor_playerinfor_overview_name_5",
@ -107,6 +112,7 @@
"vague": "", "vague": "",
"pvpAnimator": "", "pvpAnimator": "",
"mainq": "", "mainq": "",
"vagueq": "",
"playerhead": "tx_js_nvz", "playerhead": "tx_js_nvz",
"name": { "name": {
"key": "playerinfor_playerinfor_overview_name_6", "key": "playerinfor_playerinfor_overview_name_6",

View File

@ -12,7 +12,13 @@
"resource": "", "resource": "",
"integral": [], "integral": [],
"condition": 0, "condition": 0,
"lbid": 1001, "lbid": [
{
"a": "attr",
"t": "gold",
"n": 1
}
],
"time": 240, "time": 240,
"rebate": 1500, "rebate": 1500,
"isdayrepeat": 0, "isdayrepeat": 0,
@ -32,7 +38,13 @@
"resource": "", "resource": "",
"integral": [], "integral": [],
"condition": 0, "condition": 0,
"lbid": 1002, "lbid": [
{
"a": "attr",
"t": "gold",
"n": 1
}
],
"time": 240, "time": 240,
"rebate": 1000, "rebate": 1000,
"isdayrepeat": 0, "isdayrepeat": 0,
@ -52,7 +64,13 @@
"resource": "", "resource": "",
"integral": [], "integral": [],
"condition": 0, "condition": 0,
"lbid": 1003, "lbid": [
{
"a": "attr",
"t": "gold",
"n": 1
}
],
"time": 240, "time": 240,
"rebate": 1000, "rebate": 1000,
"isdayrepeat": 0, "isdayrepeat": 0,
@ -72,7 +90,13 @@
"resource": "", "resource": "",
"integral": [], "integral": [],
"condition": 0, "condition": 0,
"lbid": 1004, "lbid": [
{
"a": "attr",
"t": "gold",
"n": 1
}
],
"time": 240, "time": 240,
"rebate": 900, "rebate": 900,
"isdayrepeat": 0, "isdayrepeat": 0,
@ -92,7 +116,13 @@
"resource": "", "resource": "",
"integral": [], "integral": [],
"condition": 0, "condition": 0,
"lbid": 1005, "lbid": [
{
"a": "attr",
"t": "gold",
"n": 1
}
],
"time": 240, "time": 240,
"rebate": 900, "rebate": 900,
"isdayrepeat": 0, "isdayrepeat": 0,
@ -112,7 +142,13 @@
"resource": "", "resource": "",
"integral": [], "integral": [],
"condition": 0, "condition": 0,
"lbid": 1006, "lbid": [
{
"a": "attr",
"t": "gold",
"n": 1
}
],
"time": 240, "time": 240,
"rebate": 600, "rebate": 600,
"isdayrepeat": 0, "isdayrepeat": 0,
@ -132,7 +168,13 @@
"resource": "", "resource": "",
"integral": [], "integral": [],
"condition": 0, "condition": 0,
"lbid": 1007, "lbid": [
{
"a": "attr",
"t": "gold",
"n": 1
}
],
"time": 240, "time": 240,
"rebate": 600, "rebate": 600,
"isdayrepeat": 0, "isdayrepeat": 0,
@ -152,7 +194,13 @@
"resource": "", "resource": "",
"integral": [], "integral": [],
"condition": 0, "condition": 0,
"lbid": 1008, "lbid": [
{
"a": "attr",
"t": "gold",
"n": 1
}
],
"time": 240, "time": 240,
"rebate": 1500, "rebate": 1500,
"isdayrepeat": 0, "isdayrepeat": 0,
@ -172,7 +220,13 @@
"resource": "", "resource": "",
"integral": [], "integral": [],
"condition": 0, "condition": 0,
"lbid": 1009, "lbid": [
{
"a": "attr",
"t": "gold",
"n": 1
}
],
"time": 240, "time": 240,
"rebate": 1000, "rebate": 1000,
"isdayrepeat": 0, "isdayrepeat": 0,
@ -192,7 +246,13 @@
"resource": "", "resource": "",
"integral": [], "integral": [],
"condition": 0, "condition": 0,
"lbid": 1010, "lbid": [
{
"a": "attr",
"t": "gold",
"n": 1
}
],
"time": 240, "time": 240,
"rebate": 1000, "rebate": 1000,
"isdayrepeat": 0, "isdayrepeat": 0,
@ -212,7 +272,13 @@
"resource": "", "resource": "",
"integral": [], "integral": [],
"condition": 0, "condition": 0,
"lbid": 1011, "lbid": [
{
"a": "attr",
"t": "gold",
"n": 1
}
],
"time": 240, "time": 240,
"rebate": 900, "rebate": 900,
"isdayrepeat": 0, "isdayrepeat": 0,
@ -232,7 +298,13 @@
"resource": "", "resource": "",
"integral": [], "integral": [],
"condition": 0, "condition": 0,
"lbid": 1012, "lbid": [
{
"a": "attr",
"t": "gold",
"n": 1
}
],
"time": 240, "time": 240,
"rebate": 900, "rebate": 900,
"isdayrepeat": 0, "isdayrepeat": 0,
@ -252,7 +324,13 @@
"resource": "", "resource": "",
"integral": [], "integral": [],
"condition": 0, "condition": 0,
"lbid": 1013, "lbid": [
{
"a": "attr",
"t": "gold",
"n": 1
}
],
"time": 240, "time": 240,
"rebate": 600, "rebate": 600,
"isdayrepeat": 0, "isdayrepeat": 0,

File diff suppressed because it is too large Load Diff

View File

@ -345,6 +345,8 @@ const (
//开服任务 //开服任务
TableStoryline = "storyline" TableStoryline = "storyline"
TableGameMiner = "miner"
) )
// RPC服务接口定义处 // RPC服务接口定义处

View File

@ -0,0 +1,77 @@
package uigame
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
"go_dreamfactory/sys/configure"
"go_dreamfactory/utils"
)
//参数校验
func (this *apiComp) GetMinerCheck(session comm.IUserSession, req *pb.UiGameGetMinerReq) (errdata *pb.ErrorData) {
return
}
func (this *apiComp) GetMiner(session comm.IUserSession, req *pb.UiGameGetMinerReq) (errdata *pb.ErrorData) {
if errdata = this.GetMinerCheck(session, req); errdata != nil {
return // 参数校验失败直接返回
}
var (
activity *pb.DBHuodong
err error
hdData *pb.DBMinerData // 玩家的活动数据
update map[string]interface{} //
)
update = make(map[string]interface{})
curTime := configure.Now().Unix()
if activity, err = this.module.ModuleActivity.GetHdInfoByHdId(req.Hdid); err != nil { // 活动不存在
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ActivityInvalid,
Title: pb.ErrorCode_ActivityInvalid.ToString(),
}
return
}
if activity.Stime > curTime || curTime > activity.Etime { // 不在活动范围内数据不给活动记录数据
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ActivityNotIntime,
Title: pb.ErrorCode_ActivityNotIntime.ToString(),
}
return
}
// 获取玩家活动数据
hdData, _ = this.module.modelMiner.getMinerList(session.GetUserId(), activity.Id)
if e, err := this.module.ModuleUser.GetUserExpand(session.GetUserId()); err == nil {
if conf, err := this.module.configure.GetMinerConsumConf(); err == nil {
bchange := false
// 清除每日获得的碎片数据
if !utils.IsToday(hdData.Lasttime) {
hdData.Lasttime = configure.Now().Unix()
hdData.Val = 0
update["val"] = hdData.Val
update["lasttime"] = hdData.Lasttime
bchange = true
}
if conf.Getmax > hdData.Val { // 超过今日上限
if e.ConsumPs/conf.Usepawer >= hdData.Val {
hdData.Val = e.ConsumPs / conf.Usepawer
if conf.Getmax < hdData.Val { // 超过今日上限
hdData.Val = conf.Getmax
update["val"] = hdData.Val
bchange = true
}
}
}
if bchange {
this.module.modelMiner.modifyMinerListByObjId(session.GetUserId(), update)
}
}
}
list, _ := this.module.modelMiner.getMinerList(session.GetUserId(), req.Hdid)
session.SendMsg(string(this.module.GetType()), "getminer", &pb.UiGameGetMinerResp{Data: list})
return
}

View File

@ -38,10 +38,13 @@ func (this *apiComp) LatticeGrid(session comm.IUserSession, req *pb.UiGameLattic
} }
if v1, ok := list.Lattice[list.Floor]; ok { if v1, ok := list.Lattice[list.Floor]; ok {
if _, ok := v1.Data[req.Grid]; ok { if _, ok := v1.Data[req.Grid]; ok {
errdata = &pb.ErrorData{ // 重复领取 list.Curpos = req.Grid
Code: pb.ErrorCode_ActivityRepatReward, update["curpos"] = list.Curpos
Title: pb.ErrorCode_ActivityRepatReward.ToString(), this.module.modelLattice.modifyLatticeListByObjId(session.GetUserId(), update)
} session.SendMsg(string(this.module.GetType()), "latticegrid", &pb.UiGameLatticeGridResp{
Data: list,
Atno: atno,
})
return return
} }
list.Lattice[list.Floor].Data[req.Grid] = 1 list.Lattice[list.Floor].Data[req.Grid] = 1
@ -97,9 +100,9 @@ func (this *apiComp) LatticeGrid(session comm.IUserSession, req *pb.UiGameLattic
update["total"] = list.Total update["total"] = list.Total
} }
} }
// list.Gotarr[req.Grid] = 1
// update["gotarr"] = list.Gotarr list.Curpos = req.Grid
update["curpos"] = list.Curpos
this.module.modelLattice.modifyLatticeListByObjId(session.GetUserId(), update) this.module.modelLattice.modifyLatticeListByObjId(session.GetUserId(), update)
session.SendMsg(string(this.module.GetType()), "latticegrid", &pb.UiGameLatticeGridResp{ session.SendMsg(string(this.module.GetType()), "latticegrid", &pb.UiGameLatticeGridResp{
Data: list, Data: list,

View File

@ -0,0 +1,61 @@
package uigame
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
)
//参数校验
func (this *apiComp) MinerFinishCheck(session comm.IUserSession, req *pb.UiGameMinerFinishReq) (errdata *pb.ErrorData) {
if req.Hdid == "" {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ReqParameterError,
Title: pb.ErrorCode_ReqParameterError.ToString(),
}
}
return
}
// 点击某个格子进行拼图
func (this *apiComp) MinerFinish(session comm.IUserSession, req *pb.UiGameMinerFinishReq) (errdata *pb.ErrorData) {
if errdata = this.MinerFinishCheck(session, req); errdata != nil {
return // 参数校验失败直接返回
}
var (
atno []*pb.UserAtno
)
list, _ := this.module.modelMiner.getMinerList(session.GetUserId(), req.Hdid)
if conf, err := this.module.configure.GetMinerConsumConf(); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ConfigNoFound,
Title: pb.ErrorCode_ConfigNoFound.ToString(),
Message: err.Error(),
}
return
} else {
list, _ := this.module.modelMiner.getMinerList(session.GetUserId(), req.Hdid)
if list.BReward {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ActivityRepatReward,
Title: pb.ErrorCode_ActivityRepatReward.ToString(),
}
return
}
if errdata, atno = this.module.DispenseAtno(session, conf.Reward, true); errdata != nil {
return
}
// 记录数据
list.BReward = true
update := make(map[string]interface{}, 0)
update["bReward"] = list.BReward
this.module.modelMiner.modifyMinerListByObjId(session.GetUserId(), update) // 修改进度
}
session.SendMsg(string(this.module.GetType()), "minerFinish", &pb.UiGameMinerFinishResp{
Data: list,
Atno: atno,
})
return
}

View File

@ -0,0 +1,57 @@
package uigame
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
cfg "go_dreamfactory/sys/configure/structs"
)
//参数校验
func (this *apiComp) MinerKeyCheck(session comm.IUserSession, req *pb.UiGameMinerKeyReq) (errdata *pb.ErrorData) {
if req.Hdid == "" {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ReqParameterError,
Title: pb.ErrorCode_ReqParameterError.ToString(),
}
return
}
return
}
// 点击某个格子进行拼图
func (this *apiComp) MinerKey(session comm.IUserSession, req *pb.UiGameMinerKeyReq) (errdata *pb.ErrorData) {
if errdata = this.MinerKeyCheck(session, req); errdata != nil {
return // 参数校验失败直接返回
}
var (
atno []*pb.UserAtno
)
list, _ := this.module.modelMiner.getMinerList(session.GetUserId(), req.Hdid)
if _, ok := list.Gotarr[req.Cid]; ok { // 重复拼图
return
}
// 校验消耗
if conf, err := this.module.configure.GetMinerConsumConf(); err == nil {
if conf.Cost.N > 0 {
if errdata = this.module.ConsumeRes(session, []*cfg.Gameatn{conf.Cost}, true); errdata != nil {
return
}
}
if conf.Itemget.N > 0 {
if errdata, atno = this.module.DispenseAtno(session, []*cfg.Gameatn{conf.Itemget}, true); errdata != nil {
return
}
}
}
list.Gotarr[req.Cid] = 1
update := make(map[string]interface{}, 0)
update["gotarr"] = list.Gotarr
this.module.modelMiner.modifyMinerListByObjId(session.GetUserId(), update) // 修改进度
session.SendMsg(string(this.module.GetType()), "minerkey", &pb.UiGameMinerKeyResp{
Data: list,
Atno: atno,
})
return
}

View File

@ -1,27 +1,26 @@
package uigame package uigame
import ( import (
"fmt" "go_dreamfactory/comm"
"go_dreamfactory/lego/core" "go_dreamfactory/lego/core"
"go_dreamfactory/lego/sys/log" "go_dreamfactory/lego/sys/log"
"go_dreamfactory/modules" "go_dreamfactory/modules"
"go_dreamfactory/sys/configure" "go_dreamfactory/sys/configure"
cfg "go_dreamfactory/sys/configure/structs" cfg "go_dreamfactory/sys/configure/structs"
"sync"
) )
var moduleName = "viking" var moduleName = "uigame"
const ( const (
game_puzzle = "game_uigamepuzzle.json" game_puzzle = "game_uigamepuzzle.json"
game_lattice = "game_uigamelattice.json" game_lattice = "game_uigamelattice.json"
game_miner = "game_uigameminer.json"
game_consum = "game_uigameconsum.json" game_consum = "game_uigameconsum.json"
) )
///配置管理基础组件 ///配置管理基础组件
type configureComp struct { type configureComp struct {
module *UiGame module *UiGame
hlock sync.RWMutex
modules.MCompConfigure modules.MCompConfigure
} }
@ -32,6 +31,7 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
err = this.LoadMultiConfigure(map[string]interface{}{ err = this.LoadMultiConfigure(map[string]interface{}{
game_puzzle: cfg.NewGameUiGamePuzzle, game_puzzle: cfg.NewGameUiGamePuzzle,
game_lattice: cfg.NewGameUiGameLattice, game_lattice: cfg.NewGameUiGameLattice,
game_miner: cfg.NewGameUiGameMiner,
game_consum: cfg.NewGameUiGameConsum, game_consum: cfg.NewGameUiGameConsum,
}) })
@ -81,7 +81,7 @@ func (this *configureComp) GetPuzzleConsumConf() (conf *cfg.GameUiGameConsumData
} }
} }
} }
this.module.Errorf("GetPuzzleConf conf not found key :puzzle") err = comm.NewNotFoundConfErr(moduleName, game_consum, "1")
return return
} }
@ -96,7 +96,7 @@ func (this *configureComp) GetLatticeConsumConf() (conf *cfg.GameUiGameConsumDat
} }
} }
} }
this.module.Errorf("GetLatticeConsumConf conf not found key :puzzle") err = comm.NewNotFoundConfErr(moduleName, game_consum, "2")
return return
} }
@ -111,7 +111,36 @@ func (this *configureComp) GetLatticeConf(id int32) (conf *cfg.GameUiGameLattice
} }
} }
} }
err = fmt.Errorf("GetLatticeConf conf not found key :%d", id) err = comm.NewNotFoundConfErr(moduleName, game_lattice, id)
this.module.Errorf("GetLatticeConf conf not found key :%d", id) return
}
// 获取矿工体力消耗
func (this *configureComp) GetMinerConsumConf() (conf *cfg.GameUiGameConsumData, err error) {
var (
v interface{}
)
if v, err = this.GetConfigure(game_consum); err == nil {
if configure, ok := v.(*cfg.GameUiGameConsum); ok {
if conf = configure.Get(3); conf != nil {
return
}
}
}
err = comm.NewNotFoundConfErr(moduleName, game_consum, "3")
return
}
func (this *configureComp) GetMinerConf(id int32) (conf *cfg.GameUiGameMinerData, err error) {
var (
v interface{}
)
if v, err = this.GetConfigure(game_miner); err == nil {
if configure, ok := v.(*cfg.GameUiGameMiner); ok {
if conf = configure.Get(id); conf != nil {
return
}
}
}
err = comm.NewNotFoundConfErr(moduleName, game_miner, id)
return return
} }

View File

@ -0,0 +1,55 @@
package uigame
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 modelMiner struct {
modules.MCompModel
module *UiGame
}
func (this *modelMiner) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
this.TableName = string(comm.TableGameMiner)
err = this.MCompModel.Init(service, module, comp, options)
this.module = module.(*UiGame)
// uid 创建索引
this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{
Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},
})
return
}
func (this *modelMiner) getMinerList(uid string, hid string) (result *pb.DBMinerData, err error) {
result = &pb.DBMinerData{}
if err = this.Get(uid, result); err != nil {
if mgo.MongodbNil == err {
result = &pb.DBMinerData{
Id: primitive.NewObjectID().Hex(),
Uid: uid,
Hdoid: hid,
Gotarr: map[int32]int32{},
Lasttime: 0,
Val: 0,
BReward: false,
}
err = nil
this.module.modelMiner.Add(uid, result)
}
return
}
err = nil
return result, err
}
func (this *modelMiner) modifyMinerListByObjId(uid string, data map[string]interface{}) error {
return this.Change(uid, data)
}

View File

@ -19,6 +19,7 @@ type UiGame struct {
configure *configureComp configure *configureComp
service base.IRPCXService service base.IRPCXService
modelLattice *modelLattice modelLattice *modelLattice
modelMiner *modelMiner
} }
func NewModule() core.IModule { func NewModule() core.IModule {
@ -40,6 +41,7 @@ func (this *UiGame) OnInstallComp() {
this.api = this.RegisterComp(new(apiComp)).(*apiComp) this.api = this.RegisterComp(new(apiComp)).(*apiComp)
this.modelPuzzle = this.RegisterComp(new(modelPuzzle)).(*modelPuzzle) this.modelPuzzle = this.RegisterComp(new(modelPuzzle)).(*modelPuzzle)
this.modelLattice = this.RegisterComp(new(modelLattice)).(*modelLattice) this.modelLattice = this.RegisterComp(new(modelLattice)).(*modelLattice)
this.modelMiner = this.RegisterComp(new(modelMiner)).(*modelMiner)
this.configure = this.RegisterComp(new(configureComp)).(*configureComp) this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
} }
@ -99,4 +101,100 @@ func (this *UiGame) HDPSTodayConsum(uid string, ps int32) {
} }
} }
} }
if v, ok := activity[pb.HdType_HdLattice]; ok { // 迷宫小游戏
if v.Stime <= curTime && curTime <= v.Etime { // 活动时间范围内
if rst, err := this.modelLattice.getLatticeList(uid, v.Id); err == nil {
if conf, err := this.configure.GetLatticeConsumConf(); err == nil {
update := make(map[string]interface{})
// 清除每日获得的碎片数据
if !utils.IsToday(rst.Lasttime) {
rst.Lasttime = configure.Now().Unix()
rst.Val = 0
update["val"] = rst.Val
update["lasttime"] = rst.Lasttime
}
if conf.Getmax > rst.Val { // 超过今日上限
tmp := ps / conf.Usepawer
if tmp > rst.Val {
l := rst.Val
rst.Val = tmp
if conf.Getmax < rst.Val { // 超过今日上限
rst.Val = conf.Getmax
}
sub := rst.Val - l // 增长的
s, ok := this.GetUserSession(uid)
if sub > 0 {
var res *cfg.Gameatn
res = &cfg.Gameatn{
A: conf.Itemget.A,
T: conf.Itemget.T,
N: conf.Itemget.N * sub,
}
this.DispenseRes(s, []*cfg.Gameatn{res}, true)
}
update["val"] = rst.Val
this.modelLattice.modifyLatticeListByObjId(uid, update)
// 推送活动数据进度变化
if ok {
s.SendMsg(string(this.GetType()), "latticechange", &pb.UiGameLatticeChangePush{
Data: rst,
})
s.Push()
}
}
}
}
}
}
}
if v, ok := activity[pb.HdType_HdMiner]; ok { // 矿工小游戏
if v.Stime <= curTime && curTime <= v.Etime { // 活动时间范围内
if rst, err := this.modelMiner.getMinerList(uid, v.Id); err == nil {
if conf, err := this.configure.GetMinerConsumConf(); err == nil {
update := make(map[string]interface{})
// 清除每日获得的碎片数据
if !utils.IsToday(rst.Lasttime) {
rst.Lasttime = configure.Now().Unix()
rst.Val = 0
update["val"] = rst.Val
update["lasttime"] = rst.Lasttime
}
if conf.Getmax > rst.Val { // 超过今日上限
tmp := ps / conf.Usepawer
if tmp > rst.Val {
l := rst.Val
rst.Val = tmp
if conf.Getmax < rst.Val { // 超过今日上限
rst.Val = conf.Getmax
}
sub := rst.Val - l // 增长的
s, ok := this.GetUserSession(uid)
if sub > 0 {
var res *cfg.Gameatn
res = &cfg.Gameatn{
A: conf.Itemget.A,
T: conf.Itemget.T,
N: conf.Itemget.N * sub,
}
this.DispenseRes(s, []*cfg.Gameatn{res}, true)
}
update["val"] = rst.Val
this.modelMiner.modifyMinerListByObjId(uid, update)
// 推送活动数据进度变化
if ok {
s.SendMsg(string(this.GetType()), "minerchange", &pb.UiGameMinerChangePush{
Data: rst,
})
s.Push()
}
}
}
}
}
}
}
} }

View File

@ -179,6 +179,7 @@ type DBLatticeData struct {
Total int32 `protobuf:"varint,8,opt,name=total,proto3" json:"total"` // 总的层数 Total int32 `protobuf:"varint,8,opt,name=total,proto3" json:"total"` // 总的层数
BReward bool `protobuf:"varint,9,opt,name=bReward,proto3" json:"bReward"` // 总奖励 BReward bool `protobuf:"varint,9,opt,name=bReward,proto3" json:"bReward"` // 总奖励
Floor int32 `protobuf:"varint,10,opt,name=floor,proto3" json:"floor"` // 当前第几层 Floor int32 `protobuf:"varint,10,opt,name=floor,proto3" json:"floor"` // 当前第几层
Curpos int32 `protobuf:"varint,11,opt,name=curpos,proto3" json:"curpos"` // 当前位置
} }
func (x *DBLatticeData) Reset() { func (x *DBLatticeData) Reset() {
@ -283,6 +284,13 @@ func (x *DBLatticeData) GetFloor() int32 {
return 0 return 0
} }
func (x *DBLatticeData) GetCurpos() int32 {
if x != nil {
return x.Curpos
}
return 0
}
// 矿工 // 矿工
type DBMinerData struct { type DBMinerData struct {
state protoimpl.MessageState state protoimpl.MessageState
@ -412,7 +420,7 @@ var file_uigame_uigame_db_proto_rawDesc = []byte{
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 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, 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, 0x22, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22,
0xab, 0x03, 0x0a, 0x0d, 0x44, 0x42, 0x4c, 0x61, 0x74, 0x74, 0x69, 0x63, 0x65, 0x44, 0x61, 0x74, 0xc3, 0x03, 0x0a, 0x0d, 0x44, 0x42, 0x4c, 0x61, 0x74, 0x74, 0x69, 0x63, 0x65, 0x44, 0x61, 0x74,
0x61, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x61, 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, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x64, 0x6f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x64, 0x6f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
@ -430,32 +438,34 @@ var file_uigame_uigame_db_proto_rawDesc = []byte{
0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x52, 0x65, 0x77, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x52, 0x65, 0x77,
0x61, 0x72, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x62, 0x52, 0x65, 0x77, 0x61, 0x61, 0x72, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x62, 0x52, 0x65, 0x77, 0x61,
0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28,
0x05, 0x52, 0x05, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x1a, 0x39, 0x0a, 0x0b, 0x47, 0x6f, 0x74, 0x61, 0x05, 0x52, 0x05, 0x66, 0x6c, 0x6f, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x70,
0x72, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x6f, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x75, 0x72, 0x70, 0x6f, 0x73,
0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x1a, 0x39, 0x0a, 0x0b, 0x47, 0x6f, 0x74, 0x61, 0x72, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65,
0x02, 0x38, 0x01, 0x1a, 0x48, 0x0a, 0x0c, 0x4c, 0x61, 0x74, 0x74, 0x69, 0x63, 0x65, 0x45, 0x6e, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x48, 0x0a, 0x0c, 0x4c,
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x22, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x61, 0x74, 0x74, 0x69, 0x63, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x4c, 0x61, 0x74, 0x74, 0x69, 0x63, 0x65, 0x44, 0x61, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x22, 0x0a,
0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xfa, 0x01, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x4c,
0x0a, 0x0b, 0x44, 0x42, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, 0x0e, 0x0a, 0x61, 0x74, 0x74, 0x69, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xfa, 0x01, 0x0a, 0x0b, 0x44, 0x42, 0x4d, 0x69, 0x6e, 0x65,
0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x14, 0x0a, 0x05, 0x68, 0x64, 0x6f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
0x68, 0x64, 0x6f, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x06, 0x67, 0x6f, 0x74, 0x61, 0x72, 0x72, 0x18, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x68, 0x64, 0x6f, 0x69, 0x64,
0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x44, 0x42, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x68, 0x64, 0x6f, 0x69, 0x64, 0x12, 0x30, 0x0a,
0x61, 0x74, 0x61, 0x2e, 0x47, 0x6f, 0x74, 0x61, 0x72, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x67, 0x6f, 0x74, 0x61, 0x72, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e,
0x06, 0x67, 0x6f, 0x74, 0x61, 0x72, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x74, 0x44, 0x42, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x47, 0x6f, 0x74, 0x61,
0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x74, 0x72, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x67, 0x6f, 0x74, 0x61, 0x72, 0x72, 0x12,
0x69, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
0x52, 0x03, 0x76, 0x61, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x62, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x03, 0x52, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x76,
0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x62, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x1a, 0x61, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x76, 0x61, 0x6c, 0x12, 0x18, 0x0a,
0x39, 0x0a, 0x0b, 0x47, 0x6f, 0x74, 0x61, 0x72, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x07, 0x62, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x62, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x1a, 0x39, 0x0a, 0x0b, 0x47, 0x6f, 0x74, 0x61, 0x72,
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 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 ( var (

View File

@ -807,6 +807,53 @@ func (x *UiGameLatticeFinishResp) GetAtno() []*UserAtno {
return nil return nil
} }
type UiGameLatticeChangePush struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data *DBLatticeData `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
}
func (x *UiGameLatticeChangePush) Reset() {
*x = UiGameLatticeChangePush{}
if protoimpl.UnsafeEnabled {
mi := &file_uigame_uigame_msg_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UiGameLatticeChangePush) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UiGameLatticeChangePush) ProtoMessage() {}
func (x *UiGameLatticeChangePush) ProtoReflect() protoreflect.Message {
mi := &file_uigame_uigame_msg_proto_msgTypes[15]
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 UiGameLatticeChangePush.ProtoReflect.Descriptor instead.
func (*UiGameLatticeChangePush) Descriptor() ([]byte, []int) {
return file_uigame_uigame_msg_proto_rawDescGZIP(), []int{15}
}
func (x *UiGameLatticeChangePush) GetData() *DBLatticeData {
if x != nil {
return x.Data
}
return nil
}
////////////矿工 ////////////矿工
type UiGameGetMinerReq struct { type UiGameGetMinerReq struct {
state protoimpl.MessageState state protoimpl.MessageState
@ -819,7 +866,7 @@ type UiGameGetMinerReq struct {
func (x *UiGameGetMinerReq) Reset() { func (x *UiGameGetMinerReq) Reset() {
*x = UiGameGetMinerReq{} *x = UiGameGetMinerReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_uigame_uigame_msg_proto_msgTypes[15] mi := &file_uigame_uigame_msg_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -832,7 +879,7 @@ func (x *UiGameGetMinerReq) String() string {
func (*UiGameGetMinerReq) ProtoMessage() {} func (*UiGameGetMinerReq) ProtoMessage() {}
func (x *UiGameGetMinerReq) ProtoReflect() protoreflect.Message { func (x *UiGameGetMinerReq) ProtoReflect() protoreflect.Message {
mi := &file_uigame_uigame_msg_proto_msgTypes[15] mi := &file_uigame_uigame_msg_proto_msgTypes[16]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -845,7 +892,7 @@ func (x *UiGameGetMinerReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use UiGameGetMinerReq.ProtoReflect.Descriptor instead. // Deprecated: Use UiGameGetMinerReq.ProtoReflect.Descriptor instead.
func (*UiGameGetMinerReq) Descriptor() ([]byte, []int) { func (*UiGameGetMinerReq) Descriptor() ([]byte, []int) {
return file_uigame_uigame_msg_proto_rawDescGZIP(), []int{15} return file_uigame_uigame_msg_proto_rawDescGZIP(), []int{16}
} }
func (x *UiGameGetMinerReq) GetHdid() string { func (x *UiGameGetMinerReq) GetHdid() string {
@ -867,7 +914,7 @@ type UiGameGetMinerResp struct {
func (x *UiGameGetMinerResp) Reset() { func (x *UiGameGetMinerResp) Reset() {
*x = UiGameGetMinerResp{} *x = UiGameGetMinerResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_uigame_uigame_msg_proto_msgTypes[16] mi := &file_uigame_uigame_msg_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -880,7 +927,7 @@ func (x *UiGameGetMinerResp) String() string {
func (*UiGameGetMinerResp) ProtoMessage() {} func (*UiGameGetMinerResp) ProtoMessage() {}
func (x *UiGameGetMinerResp) ProtoReflect() protoreflect.Message { func (x *UiGameGetMinerResp) ProtoReflect() protoreflect.Message {
mi := &file_uigame_uigame_msg_proto_msgTypes[16] mi := &file_uigame_uigame_msg_proto_msgTypes[17]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -893,7 +940,7 @@ func (x *UiGameGetMinerResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use UiGameGetMinerResp.ProtoReflect.Descriptor instead. // Deprecated: Use UiGameGetMinerResp.ProtoReflect.Descriptor instead.
func (*UiGameGetMinerResp) Descriptor() ([]byte, []int) { func (*UiGameGetMinerResp) Descriptor() ([]byte, []int) {
return file_uigame_uigame_msg_proto_rawDescGZIP(), []int{16} return file_uigame_uigame_msg_proto_rawDescGZIP(), []int{17}
} }
func (x *UiGameGetMinerResp) GetData() *DBMinerData { func (x *UiGameGetMinerResp) GetData() *DBMinerData {
@ -915,7 +962,7 @@ type UiGameMinerKeyReq struct {
func (x *UiGameMinerKeyReq) Reset() { func (x *UiGameMinerKeyReq) Reset() {
*x = UiGameMinerKeyReq{} *x = UiGameMinerKeyReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_uigame_uigame_msg_proto_msgTypes[17] mi := &file_uigame_uigame_msg_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -928,7 +975,7 @@ func (x *UiGameMinerKeyReq) String() string {
func (*UiGameMinerKeyReq) ProtoMessage() {} func (*UiGameMinerKeyReq) ProtoMessage() {}
func (x *UiGameMinerKeyReq) ProtoReflect() protoreflect.Message { func (x *UiGameMinerKeyReq) ProtoReflect() protoreflect.Message {
mi := &file_uigame_uigame_msg_proto_msgTypes[17] mi := &file_uigame_uigame_msg_proto_msgTypes[18]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -941,7 +988,7 @@ func (x *UiGameMinerKeyReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use UiGameMinerKeyReq.ProtoReflect.Descriptor instead. // Deprecated: Use UiGameMinerKeyReq.ProtoReflect.Descriptor instead.
func (*UiGameMinerKeyReq) Descriptor() ([]byte, []int) { func (*UiGameMinerKeyReq) Descriptor() ([]byte, []int) {
return file_uigame_uigame_msg_proto_rawDescGZIP(), []int{17} return file_uigame_uigame_msg_proto_rawDescGZIP(), []int{18}
} }
func (x *UiGameMinerKeyReq) GetHdid() string { func (x *UiGameMinerKeyReq) GetHdid() string {
@ -970,7 +1017,7 @@ type UiGameMinerKeyResp struct {
func (x *UiGameMinerKeyResp) Reset() { func (x *UiGameMinerKeyResp) Reset() {
*x = UiGameMinerKeyResp{} *x = UiGameMinerKeyResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_uigame_uigame_msg_proto_msgTypes[18] mi := &file_uigame_uigame_msg_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -983,7 +1030,7 @@ func (x *UiGameMinerKeyResp) String() string {
func (*UiGameMinerKeyResp) ProtoMessage() {} func (*UiGameMinerKeyResp) ProtoMessage() {}
func (x *UiGameMinerKeyResp) ProtoReflect() protoreflect.Message { func (x *UiGameMinerKeyResp) ProtoReflect() protoreflect.Message {
mi := &file_uigame_uigame_msg_proto_msgTypes[18] mi := &file_uigame_uigame_msg_proto_msgTypes[19]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -996,7 +1043,7 @@ func (x *UiGameMinerKeyResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use UiGameMinerKeyResp.ProtoReflect.Descriptor instead. // Deprecated: Use UiGameMinerKeyResp.ProtoReflect.Descriptor instead.
func (*UiGameMinerKeyResp) Descriptor() ([]byte, []int) { func (*UiGameMinerKeyResp) Descriptor() ([]byte, []int) {
return file_uigame_uigame_msg_proto_rawDescGZIP(), []int{18} return file_uigame_uigame_msg_proto_rawDescGZIP(), []int{19}
} }
func (x *UiGameMinerKeyResp) GetData() *DBMinerData { func (x *UiGameMinerKeyResp) GetData() *DBMinerData {
@ -1013,110 +1060,6 @@ func (x *UiGameMinerKeyResp) GetAtno() []*UserAtno {
return nil return nil
} }
// 拼图领取奖励
type UiGameMinerRewardReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Hdid string `protobuf:"bytes,1,opt,name=hdid,proto3" json:"hdid"` // 活动ID
}
func (x *UiGameMinerRewardReq) Reset() {
*x = UiGameMinerRewardReq{}
if protoimpl.UnsafeEnabled {
mi := &file_uigame_uigame_msg_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UiGameMinerRewardReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UiGameMinerRewardReq) ProtoMessage() {}
func (x *UiGameMinerRewardReq) ProtoReflect() protoreflect.Message {
mi := &file_uigame_uigame_msg_proto_msgTypes[19]
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 UiGameMinerRewardReq.ProtoReflect.Descriptor instead.
func (*UiGameMinerRewardReq) Descriptor() ([]byte, []int) {
return file_uigame_uigame_msg_proto_rawDescGZIP(), []int{19}
}
func (x *UiGameMinerRewardReq) GetHdid() string {
if x != nil {
return x.Hdid
}
return ""
}
// 获取活动列表
type UiGameMinerRewardResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data *DBMinerData `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
Atno []*UserAtno `protobuf:"bytes,2,rep,name=atno,proto3" json:"atno"` // 奖励
}
func (x *UiGameMinerRewardResp) Reset() {
*x = UiGameMinerRewardResp{}
if protoimpl.UnsafeEnabled {
mi := &file_uigame_uigame_msg_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UiGameMinerRewardResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UiGameMinerRewardResp) ProtoMessage() {}
func (x *UiGameMinerRewardResp) ProtoReflect() protoreflect.Message {
mi := &file_uigame_uigame_msg_proto_msgTypes[20]
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 UiGameMinerRewardResp.ProtoReflect.Descriptor instead.
func (*UiGameMinerRewardResp) Descriptor() ([]byte, []int) {
return file_uigame_uigame_msg_proto_rawDescGZIP(), []int{20}
}
func (x *UiGameMinerRewardResp) GetData() *DBMinerData {
if x != nil {
return x.Data
}
return nil
}
func (x *UiGameMinerRewardResp) GetAtno() []*UserAtno {
if x != nil {
return x.Atno
}
return nil
}
// 进度变化推送 // 进度变化推送
type UiGameMinerChangePush struct { type UiGameMinerChangePush struct {
state protoimpl.MessageState state protoimpl.MessageState
@ -1129,7 +1072,7 @@ type UiGameMinerChangePush struct {
func (x *UiGameMinerChangePush) Reset() { func (x *UiGameMinerChangePush) Reset() {
*x = UiGameMinerChangePush{} *x = UiGameMinerChangePush{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_uigame_uigame_msg_proto_msgTypes[21] mi := &file_uigame_uigame_msg_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1142,7 +1085,7 @@ func (x *UiGameMinerChangePush) String() string {
func (*UiGameMinerChangePush) ProtoMessage() {} func (*UiGameMinerChangePush) ProtoMessage() {}
func (x *UiGameMinerChangePush) ProtoReflect() protoreflect.Message { func (x *UiGameMinerChangePush) ProtoReflect() protoreflect.Message {
mi := &file_uigame_uigame_msg_proto_msgTypes[21] mi := &file_uigame_uigame_msg_proto_msgTypes[20]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1155,7 +1098,7 @@ func (x *UiGameMinerChangePush) ProtoReflect() protoreflect.Message {
// Deprecated: Use UiGameMinerChangePush.ProtoReflect.Descriptor instead. // Deprecated: Use UiGameMinerChangePush.ProtoReflect.Descriptor instead.
func (*UiGameMinerChangePush) Descriptor() ([]byte, []int) { func (*UiGameMinerChangePush) Descriptor() ([]byte, []int) {
return file_uigame_uigame_msg_proto_rawDescGZIP(), []int{21} return file_uigame_uigame_msg_proto_rawDescGZIP(), []int{20}
} }
func (x *UiGameMinerChangePush) GetData() *DBMinerData { func (x *UiGameMinerChangePush) GetData() *DBMinerData {
@ -1165,6 +1108,108 @@ func (x *UiGameMinerChangePush) GetData() *DBMinerData {
return nil return nil
} }
type UiGameMinerFinishReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Hdid string `protobuf:"bytes,1,opt,name=hdid,proto3" json:"hdid"` // 活动ID
}
func (x *UiGameMinerFinishReq) Reset() {
*x = UiGameMinerFinishReq{}
if protoimpl.UnsafeEnabled {
mi := &file_uigame_uigame_msg_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UiGameMinerFinishReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UiGameMinerFinishReq) ProtoMessage() {}
func (x *UiGameMinerFinishReq) ProtoReflect() protoreflect.Message {
mi := &file_uigame_uigame_msg_proto_msgTypes[21]
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 UiGameMinerFinishReq.ProtoReflect.Descriptor instead.
func (*UiGameMinerFinishReq) Descriptor() ([]byte, []int) {
return file_uigame_uigame_msg_proto_rawDescGZIP(), []int{21}
}
func (x *UiGameMinerFinishReq) GetHdid() string {
if x != nil {
return x.Hdid
}
return ""
}
type UiGameMinerFinishResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data *DBMinerData `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
Atno []*UserAtno `protobuf:"bytes,2,rep,name=atno,proto3" json:"atno"` // 奖励
}
func (x *UiGameMinerFinishResp) Reset() {
*x = UiGameMinerFinishResp{}
if protoimpl.UnsafeEnabled {
mi := &file_uigame_uigame_msg_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UiGameMinerFinishResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UiGameMinerFinishResp) ProtoMessage() {}
func (x *UiGameMinerFinishResp) ProtoReflect() protoreflect.Message {
mi := &file_uigame_uigame_msg_proto_msgTypes[22]
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 UiGameMinerFinishResp.ProtoReflect.Descriptor instead.
func (*UiGameMinerFinishResp) Descriptor() ([]byte, []int) {
return file_uigame_uigame_msg_proto_rawDescGZIP(), []int{22}
}
func (x *UiGameMinerFinishResp) GetData() *DBMinerData {
if x != nil {
return x.Data
}
return nil
}
func (x *UiGameMinerFinishResp) GetAtno() []*UserAtno {
if x != nil {
return x.Atno
}
return nil
}
var File_uigame_uigame_msg_proto protoreflect.FileDescriptor var File_uigame_uigame_msg_proto protoreflect.FileDescriptor
var file_uigame_uigame_msg_proto_rawDesc = []byte{ var file_uigame_uigame_msg_proto_rawDesc = []byte{
@ -1236,35 +1281,39 @@ var file_uigame_uigame_msg_proto_rawDesc = []byte{
0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x4c, 0x61, 0x74, 0x74, 0x69, 0x63, 0x65, 0x44, 0x61, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x4c, 0x61, 0x74, 0x74, 0x69, 0x63, 0x65, 0x44, 0x61,
0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x04, 0x61, 0x74, 0x6e, 0x6f, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x04, 0x61, 0x74, 0x6e, 0x6f,
0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e,
0x6f, 0x52, 0x04, 0x61, 0x74, 0x6e, 0x6f, 0x22, 0x27, 0x0a, 0x11, 0x55, 0x69, 0x47, 0x61, 0x6d, 0x6f, 0x52, 0x04, 0x61, 0x74, 0x6e, 0x6f, 0x22, 0x3d, 0x0a, 0x17, 0x55, 0x69, 0x47, 0x61, 0x6d,
0x65, 0x47, 0x65, 0x74, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x4c, 0x61, 0x74, 0x74, 0x69, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x75,
0x73, 0x68, 0x12, 0x22, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x0e, 0x2e, 0x44, 0x42, 0x4c, 0x61, 0x74, 0x74, 0x69, 0x63, 0x65, 0x44, 0x61, 0x74, 0x61,
0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x27, 0x0a, 0x11, 0x55, 0x69, 0x47, 0x61, 0x6d, 0x65,
0x47, 0x65, 0x74, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x68,
0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x64, 0x69, 0x64, 0x22,
0x36, 0x0a, 0x12, 0x55, 0x69, 0x47, 0x61, 0x6d, 0x65, 0x47, 0x65, 0x74, 0x4d, 0x69, 0x6e, 0x65,
0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x44, 0x61, 0x74,
0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x39, 0x0a, 0x11, 0x55, 0x69, 0x47, 0x61, 0x6d,
0x65, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04,
0x68, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x64, 0x69, 0x64, 0x68, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x64, 0x69, 0x64,
0x22, 0x36, 0x0a, 0x12, 0x55, 0x69, 0x47, 0x61, 0x6d, 0x65, 0x47, 0x65, 0x74, 0x4d, 0x69, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x63,
0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x69, 0x64, 0x22, 0x55, 0x0a, 0x12, 0x55, 0x69, 0x47, 0x61, 0x6d, 0x65, 0x4d, 0x69, 0x6e, 0x65,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x44, 0x61, 0x72, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x39, 0x0a, 0x11, 0x55, 0x69, 0x47, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x4d, 0x69, 0x6e, 0x65, 0x72,
0x6d, 0x65, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x04, 0x61, 0x74,
0x04, 0x68, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x64, 0x69, 0x6e, 0x6f, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41,
0x64, 0x12, 0x10, 0x0a, 0x03, 0x63, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x74, 0x6e, 0x6f, 0x52, 0x04, 0x61, 0x74, 0x6e, 0x6f, 0x22, 0x39, 0x0a, 0x15, 0x55, 0x69, 0x47,
0x63, 0x69, 0x64, 0x22, 0x55, 0x0a, 0x12, 0x55, 0x69, 0x47, 0x61, 0x6d, 0x65, 0x4d, 0x69, 0x6e, 0x61, 0x6d, 0x65, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x75,
0x65, 0x72, 0x4b, 0x65, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x73, 0x68, 0x12, 0x20, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x0c, 0x2e, 0x44, 0x42, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04,
0x64, 0x61, 0x74, 0x61, 0x22, 0x2a, 0x0a, 0x14, 0x55, 0x69, 0x47, 0x61, 0x6d, 0x65, 0x4d, 0x69,
0x6e, 0x65, 0x72, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04,
0x68, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x64, 0x69, 0x64,
0x22, 0x58, 0x0a, 0x15, 0x55, 0x69, 0x47, 0x61, 0x6d, 0x65, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x46,
0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x64, 0x61, 0x74,
0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x4d, 0x69, 0x6e, 0x65, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x4d, 0x69, 0x6e, 0x65,
0x72, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x04, 0x61, 0x72, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x04, 0x61,
0x74, 0x6e, 0x6f, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x74, 0x6e, 0x6f, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72,
0x41, 0x74, 0x6e, 0x6f, 0x52, 0x04, 0x61, 0x74, 0x6e, 0x6f, 0x22, 0x2a, 0x0a, 0x14, 0x55, 0x69, 0x41, 0x74, 0x6e, 0x6f, 0x52, 0x04, 0x61, 0x74, 0x6e, 0x6f, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b,
0x47, 0x61, 0x6d, 0x65, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x52, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x64, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x68, 0x64, 0x69, 0x64, 0x22, 0x58, 0x0a, 0x15, 0x55, 0x69, 0x47, 0x61, 0x6d, 0x65,
0x4d, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12,
0x20, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e,
0x44, 0x42, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74,
0x61, 0x12, 0x1d, 0x0a, 0x04, 0x61, 0x74, 0x6e, 0x6f, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e, 0x6f, 0x52, 0x04, 0x61, 0x74, 0x6e, 0x6f,
0x22, 0x39, 0x0a, 0x15, 0x55, 0x69, 0x47, 0x61, 0x6d, 0x65, 0x4d, 0x69, 0x6e, 0x65, 0x72, 0x43,
0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x75, 0x73, 0x68, 0x12, 0x20, 0x0a, 0x04, 0x64, 0x61, 0x74,
0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44, 0x42, 0x4d, 0x69, 0x6e, 0x65,
0x72, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e,
0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@ -1279,7 +1328,7 @@ func file_uigame_uigame_msg_proto_rawDescGZIP() []byte {
return file_uigame_uigame_msg_proto_rawDescData return file_uigame_uigame_msg_proto_rawDescData
} }
var file_uigame_uigame_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 22) var file_uigame_uigame_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 23)
var file_uigame_uigame_msg_proto_goTypes = []interface{}{ var file_uigame_uigame_msg_proto_goTypes = []interface{}{
(*UiGameGetPuzzleReq)(nil), // 0: UiGameGetPuzzleReq (*UiGameGetPuzzleReq)(nil), // 0: UiGameGetPuzzleReq
(*UiGameGetPuzzleResp)(nil), // 1: UiGameGetPuzzleResp (*UiGameGetPuzzleResp)(nil), // 1: UiGameGetPuzzleResp
@ -1296,43 +1345,45 @@ var file_uigame_uigame_msg_proto_goTypes = []interface{}{
(*UiGameLatticeRewardResp)(nil), // 12: UiGameLatticeRewardResp (*UiGameLatticeRewardResp)(nil), // 12: UiGameLatticeRewardResp
(*UiGameLatticeFinishReq)(nil), // 13: UiGameLatticeFinishReq (*UiGameLatticeFinishReq)(nil), // 13: UiGameLatticeFinishReq
(*UiGameLatticeFinishResp)(nil), // 14: UiGameLatticeFinishResp (*UiGameLatticeFinishResp)(nil), // 14: UiGameLatticeFinishResp
(*UiGameGetMinerReq)(nil), // 15: UiGameGetMinerReq (*UiGameLatticeChangePush)(nil), // 15: UiGameLatticeChangePush
(*UiGameGetMinerResp)(nil), // 16: UiGameGetMinerResp (*UiGameGetMinerReq)(nil), // 16: UiGameGetMinerReq
(*UiGameMinerKeyReq)(nil), // 17: UiGameMinerKeyReq (*UiGameGetMinerResp)(nil), // 17: UiGameGetMinerResp
(*UiGameMinerKeyResp)(nil), // 18: UiGameMinerKeyResp (*UiGameMinerKeyReq)(nil), // 18: UiGameMinerKeyReq
(*UiGameMinerRewardReq)(nil), // 19: UiGameMinerRewardReq (*UiGameMinerKeyResp)(nil), // 19: UiGameMinerKeyResp
(*UiGameMinerRewardResp)(nil), // 20: UiGameMinerRewardResp (*UiGameMinerChangePush)(nil), // 20: UiGameMinerChangePush
(*UiGameMinerChangePush)(nil), // 21: UiGameMinerChangePush (*UiGameMinerFinishReq)(nil), // 21: UiGameMinerFinishReq
(*DBPuzzleData)(nil), // 22: DBPuzzleData (*UiGameMinerFinishResp)(nil), // 22: UiGameMinerFinishResp
(*UserAtno)(nil), // 23: UserAtno (*DBPuzzleData)(nil), // 23: DBPuzzleData
(*DBLatticeData)(nil), // 24: DBLatticeData (*UserAtno)(nil), // 24: UserAtno
(*DBMinerData)(nil), // 25: DBMinerData (*DBLatticeData)(nil), // 25: DBLatticeData
(*DBMinerData)(nil), // 26: DBMinerData
} }
var file_uigame_uigame_msg_proto_depIdxs = []int32{ var file_uigame_uigame_msg_proto_depIdxs = []int32{
22, // 0: UiGameGetPuzzleResp.data:type_name -> DBPuzzleData 23, // 0: UiGameGetPuzzleResp.data:type_name -> DBPuzzleData
22, // 1: UiGamePuzzleGridResp.data:type_name -> DBPuzzleData 23, // 1: UiGamePuzzleGridResp.data:type_name -> DBPuzzleData
23, // 2: UiGamePuzzleGridResp.atno:type_name -> UserAtno 24, // 2: UiGamePuzzleGridResp.atno:type_name -> UserAtno
22, // 3: UiGamePuzzleRewardResp.data:type_name -> DBPuzzleData 23, // 3: UiGamePuzzleRewardResp.data:type_name -> DBPuzzleData
23, // 4: UiGamePuzzleRewardResp.atno:type_name -> UserAtno 24, // 4: UiGamePuzzleRewardResp.atno:type_name -> UserAtno
22, // 5: UiGamePuzzleChangePush.data:type_name -> DBPuzzleData 23, // 5: UiGamePuzzleChangePush.data:type_name -> DBPuzzleData
24, // 6: UiGameGetLatticeResp.data:type_name -> DBLatticeData 25, // 6: UiGameGetLatticeResp.data:type_name -> DBLatticeData
24, // 7: UiGameLatticeGridResp.data:type_name -> DBLatticeData 25, // 7: UiGameLatticeGridResp.data:type_name -> DBLatticeData
23, // 8: UiGameLatticeGridResp.atno:type_name -> UserAtno 24, // 8: UiGameLatticeGridResp.atno:type_name -> UserAtno
24, // 9: UiGameLatticeRewardResp.data:type_name -> DBLatticeData 25, // 9: UiGameLatticeRewardResp.data:type_name -> DBLatticeData
23, // 10: UiGameLatticeRewardResp.atno:type_name -> UserAtno 24, // 10: UiGameLatticeRewardResp.atno:type_name -> UserAtno
24, // 11: UiGameLatticeFinishResp.data:type_name -> DBLatticeData 25, // 11: UiGameLatticeFinishResp.data:type_name -> DBLatticeData
23, // 12: UiGameLatticeFinishResp.atno:type_name -> UserAtno 24, // 12: UiGameLatticeFinishResp.atno:type_name -> UserAtno
25, // 13: UiGameGetMinerResp.data:type_name -> DBMinerData 25, // 13: UiGameLatticeChangePush.data:type_name -> DBLatticeData
25, // 14: UiGameMinerKeyResp.data:type_name -> DBMinerData 26, // 14: UiGameGetMinerResp.data:type_name -> DBMinerData
23, // 15: UiGameMinerKeyResp.atno:type_name -> UserAtno 26, // 15: UiGameMinerKeyResp.data:type_name -> DBMinerData
25, // 16: UiGameMinerRewardResp.data:type_name -> DBMinerData 24, // 16: UiGameMinerKeyResp.atno:type_name -> UserAtno
23, // 17: UiGameMinerRewardResp.atno:type_name -> UserAtno 26, // 17: UiGameMinerChangePush.data:type_name -> DBMinerData
25, // 18: UiGameMinerChangePush.data:type_name -> DBMinerData 26, // 18: UiGameMinerFinishResp.data:type_name -> DBMinerData
19, // [19:19] is the sub-list for method output_type 24, // 19: UiGameMinerFinishResp.atno:type_name -> UserAtno
19, // [19:19] is the sub-list for method input_type 20, // [20:20] is the sub-list for method output_type
19, // [19:19] is the sub-list for extension type_name 20, // [20:20] is the sub-list for method input_type
19, // [19:19] is the sub-list for extension extendee 20, // [20:20] is the sub-list for extension type_name
0, // [0:19] is the sub-list for field type_name 20, // [20:20] is the sub-list for extension extendee
0, // [0:20] is the sub-list for field type_name
} }
func init() { file_uigame_uigame_msg_proto_init() } func init() { file_uigame_uigame_msg_proto_init() }
@ -1524,7 +1575,7 @@ func file_uigame_uigame_msg_proto_init() {
} }
} }
file_uigame_uigame_msg_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { file_uigame_uigame_msg_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UiGameGetMinerReq); i { switch v := v.(*UiGameLatticeChangePush); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -1536,7 +1587,7 @@ func file_uigame_uigame_msg_proto_init() {
} }
} }
file_uigame_uigame_msg_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { file_uigame_uigame_msg_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UiGameGetMinerResp); i { switch v := v.(*UiGameGetMinerReq); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -1548,7 +1599,7 @@ func file_uigame_uigame_msg_proto_init() {
} }
} }
file_uigame_uigame_msg_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { file_uigame_uigame_msg_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UiGameMinerKeyReq); i { switch v := v.(*UiGameGetMinerResp); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -1560,7 +1611,7 @@ func file_uigame_uigame_msg_proto_init() {
} }
} }
file_uigame_uigame_msg_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { file_uigame_uigame_msg_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UiGameMinerKeyResp); i { switch v := v.(*UiGameMinerKeyReq); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -1572,7 +1623,7 @@ func file_uigame_uigame_msg_proto_init() {
} }
} }
file_uigame_uigame_msg_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { file_uigame_uigame_msg_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UiGameMinerRewardReq); i { switch v := v.(*UiGameMinerKeyResp); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -1584,7 +1635,7 @@ func file_uigame_uigame_msg_proto_init() {
} }
} }
file_uigame_uigame_msg_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { file_uigame_uigame_msg_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UiGameMinerRewardResp); i { switch v := v.(*UiGameMinerChangePush); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -1596,7 +1647,19 @@ func file_uigame_uigame_msg_proto_init() {
} }
} }
file_uigame_uigame_msg_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { file_uigame_uigame_msg_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UiGameMinerChangePush); i { switch v := v.(*UiGameMinerFinishReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_uigame_uigame_msg_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UiGameMinerFinishResp); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -1614,7 +1677,7 @@ func file_uigame_uigame_msg_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_uigame_uigame_msg_proto_rawDesc, RawDescriptor: file_uigame_uigame_msg_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 22, NumMessages: 23,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },

View File

@ -83,4 +83,7 @@ const (
GameBuffType_HAS_BUFF_ADD_DMG = 90 GameBuffType_HAS_BUFF_ADD_DMG = 90
GameBuffType_BUFF_DOT_ADD_DMG = 91 GameBuffType_BUFF_DOT_ADD_DMG = 91
GameBuffType_MODIFY_BUFF_ADD_PROB = 92 GameBuffType_MODIFY_BUFF_ADD_PROB = 92
GameBuffType_SHILED_CAN_ADD = 93
GameBuffType_SPECIAL_SHIELD = 94
GameBuffType_PROB_RESISTBUFF = 95
) )

View File

@ -41,4 +41,5 @@ const (
GameFightEventType_OnStealBuffEnd = 29 GameFightEventType_OnStealBuffEnd = 29
GameFightEventType_OnRebirthEnd = 30 GameFightEventType_OnRebirthEnd = 30
GameFightEventType_OnShiftBuffEnd = 31 GameFightEventType_OnShiftBuffEnd = 31
GameFightEventType_OnAddShieldEnd = 32
) )

View File

@ -14,6 +14,7 @@ import "bright/serialization"
type GameHeroupstoryChapterData struct { type GameHeroupstoryChapterData struct {
Key int32 Key int32
Hero int32 Hero int32
Chaptername string
Chapter int32 Chapter int32
Onlevel int32 Onlevel int32
Onlevelstory []int32 Onlevelstory []int32
@ -40,6 +41,7 @@ func (*GameHeroupstoryChapterData) GetTypeId() int32 {
func (_v *GameHeroupstoryChapterData)Deserialize(_buf map[string]interface{}) (err error) { func (_v *GameHeroupstoryChapterData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["hero"].(float64); !_ok_ { err = errors.New("hero error"); return }; _v.Hero = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["hero"].(float64); !_ok_ { err = errors.New("hero error"); return }; _v.Hero = int32(_tempNum_) }
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["chaptername"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Chaptername error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Chaptername, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["chapter"].(float64); !_ok_ { err = errors.New("chapter error"); return }; _v.Chapter = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["chapter"].(float64); !_ok_ { err = errors.New("chapter error"); return }; _v.Chapter = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["onlevel"].(float64); !_ok_ { err = errors.New("onlevel error"); return }; _v.Onlevel = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["onlevel"].(float64); !_ok_ { err = errors.New("onlevel error"); return }; _v.Onlevel = int32(_tempNum_) }
{ {

View File

@ -21,6 +21,7 @@ type GamePlayerInfor_overviewData struct {
Vague string Vague string
PvpAnimator string PvpAnimator string
Mainq string Mainq string
Vagueq string
Playerhead string Playerhead string
Name string Name string
} }
@ -55,6 +56,7 @@ func (_v *GamePlayerInfor_overviewData)Deserialize(_buf map[string]interface{})
{ var _ok_ bool; if _v.Vague, _ok_ = _buf["vague"].(string); !_ok_ { err = errors.New("vague error"); return } } { var _ok_ bool; if _v.Vague, _ok_ = _buf["vague"].(string); !_ok_ { err = errors.New("vague error"); return } }
{ var _ok_ bool; if _v.PvpAnimator, _ok_ = _buf["pvpAnimator"].(string); !_ok_ { err = errors.New("pvpAnimator error"); return } } { var _ok_ bool; if _v.PvpAnimator, _ok_ = _buf["pvpAnimator"].(string); !_ok_ { err = errors.New("pvpAnimator error"); return } }
{ var _ok_ bool; if _v.Mainq, _ok_ = _buf["mainq"].(string); !_ok_ { err = errors.New("mainq error"); return } } { var _ok_ bool; if _v.Mainq, _ok_ = _buf["mainq"].(string); !_ok_ { err = errors.New("mainq error"); return } }
{ var _ok_ bool; if _v.Vagueq, _ok_ = _buf["vagueq"].(string); !_ok_ { err = errors.New("vagueq error"); return } }
{ var _ok_ bool; if _v.Playerhead, _ok_ = _buf["playerhead"].(string); !_ok_ { err = errors.New("playerhead error"); return } } { var _ok_ bool; if _v.Playerhead, _ok_ = _buf["playerhead"].(string); !_ok_ { err = errors.New("playerhead error"); return } }
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["name"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Name error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Name, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } } {var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["name"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Name error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Name, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
return return

View File

@ -116,5 +116,7 @@ const (
GamePropertyType_CritResist = 104 GamePropertyType_CritResist = 104
GamePropertyType_Shield = 105 GamePropertyType_Shield = 105
GamePropertyType_Shield_Per = 106 GamePropertyType_Shield_Per = 106
GamePropertyType_Max = 107 GamePropertyType_Base_Shield = 107
GamePropertyType_Ext_Shield = 108
GamePropertyType_Max = 109
) )

View File

@ -17,7 +17,7 @@ type GamePushGiftData struct {
Resource string Resource string
Integral []int32 Integral []int32
Condition int32 Condition int32
Lbid int32 Lbid []*Gameatn
Time int32 Time int32
Rebate int32 Rebate int32
Isdayrepeat int32 Isdayrepeat int32
@ -51,7 +51,20 @@ func (_v *GamePushGiftData)Deserialize(_buf map[string]interface{}) (err error)
} }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["condition"].(float64); !_ok_ { err = errors.New("condition error"); return }; _v.Condition = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["condition"].(float64); !_ok_ { err = errors.New("condition error"); return }; _v.Condition = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["lbid"].(float64); !_ok_ { err = errors.New("lbid error"); return }; _v.Lbid = int32(_tempNum_) } {
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["lbid"].([]interface{}); !_ok_ { err = errors.New("lbid error"); return }
_v.Lbid = make([]*Gameatn, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *Gameatn
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } }
_v.Lbid = append(_v.Lbid, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["time"].(float64); !_ok_ { err = errors.New("time error"); return }; _v.Time = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["time"].(float64); !_ok_ { err = errors.New("time error"); return }; _v.Time = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["rebate"].(float64); !_ok_ { err = errors.New("rebate error"); return }; _v.Rebate = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["rebate"].(float64); !_ok_ { err = errors.New("rebate error"); return }; _v.Rebate = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["isdayrepeat"].(float64); !_ok_ { err = errors.New("isdayrepeat error"); return }; _v.Isdayrepeat = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["isdayrepeat"].(float64); !_ok_ { err = errors.New("isdayrepeat error"); return }; _v.Isdayrepeat = int32(_tempNum_) }

View File

@ -22,6 +22,7 @@ type GameSkillBuffData struct {
Effect []int32 Effect []int32
AddEffect bool AddEffect bool
RemoveType bool RemoveType bool
Priority int32
NotOverlay int32 NotOverlay int32
OverlayTimes byte OverlayTimes byte
SameID bool SameID bool
@ -101,6 +102,7 @@ func (_v *GameSkillBuffData)Deserialize(_buf map[string]interface{}) (err error)
{ var _ok_ bool; if _v.AddEffect, _ok_ = _buf["AddEffect"].(bool); !_ok_ { err = errors.New("AddEffect error"); return } } { var _ok_ bool; if _v.AddEffect, _ok_ = _buf["AddEffect"].(bool); !_ok_ { err = errors.New("AddEffect error"); return } }
{ var _ok_ bool; if _v.RemoveType, _ok_ = _buf["RemoveType"].(bool); !_ok_ { err = errors.New("RemoveType error"); return } } { var _ok_ bool; if _v.RemoveType, _ok_ = _buf["RemoveType"].(bool); !_ok_ { err = errors.New("RemoveType error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Priority"].(float64); !_ok_ { err = errors.New("Priority error"); return }; _v.Priority = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["NotOverlay"].(float64); !_ok_ { err = errors.New("NotOverlay error"); return }; _v.NotOverlay = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["NotOverlay"].(float64); !_ok_ { err = errors.New("NotOverlay error"); return }; _v.NotOverlay = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["OverlayTimes"].(float64); !_ok_ { err = errors.New("OverlayTimes error"); return }; _v.OverlayTimes = byte(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["OverlayTimes"].(float64); !_ok_ { err = errors.New("OverlayTimes error"); return }; _v.OverlayTimes = byte(_tempNum_) }
{ var _ok_ bool; if _v.SameID, _ok_ = _buf["SameID"].(bool); !_ok_ { err = errors.New("SameID error"); return } } { var _ok_ bool; if _v.SameID, _ok_ = _buf["SameID"].(bool); !_ok_ { err = errors.New("SameID error"); return } }