上传埋点中心代码
This commit is contained in:
parent
22544c5df8
commit
4c765eab8e
File diff suppressed because it is too large
Load Diff
@ -26,6 +26,12 @@ const (
|
||||
)
|
||||
|
||||
const (
|
||||
//任务完成自动锁定
|
||||
autolock = 1
|
||||
//一次性任务
|
||||
ctype_once = 1
|
||||
//重复性任务
|
||||
ctype_repeat = 2
|
||||
//日常任务
|
||||
ctype_daily = 3
|
||||
//周长任务
|
||||
ctype_weekly = 4
|
||||
)
|
||||
|
@ -10,8 +10,10 @@ import (
|
||||
"go_dreamfactory/lego/sys/log"
|
||||
"go_dreamfactory/modules"
|
||||
"go_dreamfactory/pb"
|
||||
"go_dreamfactory/sys/configure"
|
||||
cfg "go_dreamfactory/sys/configure/structs"
|
||||
"go_dreamfactory/sys/db"
|
||||
"go_dreamfactory/utils"
|
||||
"time"
|
||||
)
|
||||
|
||||
@ -331,6 +333,32 @@ func (this *Buried) updateAndCheckBuried(bconf *cfg.GameBuriedTypeData, bdata *p
|
||||
return
|
||||
}
|
||||
|
||||
//状态等于休眠
|
||||
if bitem.State == pb.BuriedItemState_Sleep {
|
||||
if cond.Ctype == ctype_repeat { //完成后自动锁定
|
||||
bitem.State = pb.BuriedItemState_Activated
|
||||
bitem.Value = 0
|
||||
bitem.Finish = pb.BuriedItemFinishState_buried_unfinish
|
||||
} else if cond.Ctype == ctype_daily { //日常
|
||||
if !utils.IsToday(bitem.Timestamp) { //不是同一天 可以重置数据
|
||||
bitem.State = pb.BuriedItemState_Activated
|
||||
bitem.Value = 0
|
||||
bitem.Finish = pb.BuriedItemFinishState_buried_unfinish
|
||||
}
|
||||
} else if cond.Ctype == ctype_weekly { //周常
|
||||
if !utils.IsSameWeek(bitem.Timestamp) { //不是同一周
|
||||
bitem.State = pb.BuriedItemState_Activated
|
||||
bitem.Value = 0
|
||||
bitem.Finish = pb.BuriedItemFinishState_buried_unfinish
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//非激活状态不写入输出
|
||||
if bitem.State != pb.BuriedItemState_Activated {
|
||||
return
|
||||
}
|
||||
|
||||
switch bconf.Insert { //数据接入方式
|
||||
case overlay: //累加数据
|
||||
bitem.Value += collec.Value
|
||||
@ -360,12 +388,20 @@ func (this *Buried) updateAndCheckBuried(bconf *cfg.GameBuriedTypeData, bdata *p
|
||||
|
||||
if bitem.Value >= cond.Value { //完成进度
|
||||
bitem.Finish = pb.BuriedItemFinishState_buried_finish
|
||||
if cond.Lock == autolock { //完成后自动锁定
|
||||
if cond.Ctype == ctype_once { //完成后自动锁定
|
||||
bitem.State = pb.BuriedItemState_Freeze
|
||||
} else if cond.Ctype == ctype_repeat {
|
||||
bitem.State = pb.BuriedItemState_Sleep
|
||||
} else if cond.Ctype == ctype_daily {
|
||||
bitem.State = pb.BuriedItemState_Sleep
|
||||
} else if cond.Ctype == ctype_weekly {
|
||||
bitem.State = pb.BuriedItemState_Sleep
|
||||
}
|
||||
bitem.Timestamp = configure.Now().Unix() //记录最后一次操作时间
|
||||
} else {
|
||||
this.Debug("完成条件未达成!", log.Field{Key: "埋点Id", Value: bdata.Btype}, log.Field{Key: "条件Id", Value: bitem.Conid}, log.Field{Key: "当前进度", Value: bitem.Value}, log.Field{Key: "目标进度", Value: cond.Value})
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
129
modules/combat/api_ask.go
Normal file
129
modules/combat/api_ask.go
Normal file
@ -0,0 +1,129 @@
|
||||
package combat
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/pb"
|
||||
cfg "go_dreamfactory/sys/configure/structs"
|
||||
)
|
||||
|
||||
//参数校验
|
||||
func (this *apiComp) AskCheck(session comm.IUserSession, req *pb.CombatAskReq) (code pb.ErrorCode) {
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
///获取自己的排行榜信息
|
||||
func (this *apiComp) Ask(session comm.IUserSession, req *pb.CombatAskReq) (code pb.ErrorCode, data *pb.ErrorData) {
|
||||
var (
|
||||
info *pb.DBCombatUser
|
||||
level *pb.DBCombatLevel
|
||||
lvconf *cfg.GameCombatLevelData
|
||||
pitem *pb.LevelProgressItem
|
||||
condis []*pb.ConIProgress
|
||||
ok bool
|
||||
err error
|
||||
)
|
||||
if code = this.AskCheck(session, req); code != pb.ErrorCode_Success {
|
||||
return
|
||||
}
|
||||
if info, err = this.module.modelCombat.queryInfo(session.GetUserId()); err != nil {
|
||||
code = pb.ErrorCode_DBError
|
||||
return
|
||||
}
|
||||
|
||||
if lvconf, err = this.module.configure.getCombatLevel(req.Level); err != nil {
|
||||
code = pb.ErrorCode_ConfigNoFound
|
||||
return
|
||||
}
|
||||
|
||||
if level, ok = info.Level[req.Level]; !ok {
|
||||
err = fmt.Errorf("没有初始化指定关卡数据:%d", req.Level)
|
||||
code = pb.ErrorCode_ReqParameterError
|
||||
data = &pb.ErrorData{
|
||||
Title: code.ToString(),
|
||||
Message: err.Error(),
|
||||
}
|
||||
this.module.Errorln(err)
|
||||
return
|
||||
}
|
||||
|
||||
pitem = &pb.LevelProgressItem{
|
||||
Level: level.Id,
|
||||
Pass: level.Pass,
|
||||
}
|
||||
if condis, err = this.module.ModuleBuried.CheckCondition(session.GetUserId(), lvconf.Maintask...); err != nil {
|
||||
code = pb.ErrorCode_ExternalModule
|
||||
data = &pb.ErrorData{
|
||||
Title: code.ToString(),
|
||||
Message: comm.NewExternalModuleErr("Buried", "CheckCondition", lvconf.Maintask).Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
ok = true
|
||||
pitem.Passmaintask = condis
|
||||
for _, v := range condis {
|
||||
level.Progress += v.Value
|
||||
if v.State != 2 {
|
||||
ok = false
|
||||
}
|
||||
}
|
||||
|
||||
if ok { //
|
||||
level.Pass = 1
|
||||
pitem.Pass = 1
|
||||
this.module.DispenseRes(session, lvconf.Award, true)
|
||||
atns := make([]*pb.UserAssets, len(lvconf.Award))
|
||||
for i, v := range lvconf.Award {
|
||||
atns[i] = &pb.UserAssets{
|
||||
A: v.A,
|
||||
T: v.T,
|
||||
N: v.N,
|
||||
}
|
||||
}
|
||||
pitem.Mainaward = atns
|
||||
}
|
||||
|
||||
if level.Pass == 1 {
|
||||
if condis, err = this.module.ModuleBuried.CheckCondition(session.GetUserId(), lvconf.Subtask...); err != nil {
|
||||
code = pb.ErrorCode_ExternalModule
|
||||
data = &pb.ErrorData{
|
||||
Title: code.ToString(),
|
||||
Message: comm.NewExternalModuleErr("Buried", "CheckCondition", lvconf.Subtask).Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
pitem.Passpertask = condis
|
||||
ok = true
|
||||
for _, v := range condis {
|
||||
level.Progress += v.Value
|
||||
if v.State != 2 {
|
||||
ok = false
|
||||
}
|
||||
}
|
||||
|
||||
if ok { //
|
||||
level.Pass = 2
|
||||
pitem.Pass = 2
|
||||
this.module.DispenseRes(session, lvconf.Profectaward, true)
|
||||
atns := make([]*pb.UserAssets, len(lvconf.Profectaward))
|
||||
for i, v := range lvconf.Profectaward {
|
||||
atns[i] = &pb.UserAssets{
|
||||
A: v.A,
|
||||
T: v.T,
|
||||
N: v.N,
|
||||
}
|
||||
}
|
||||
pitem.Peraward = atns
|
||||
}
|
||||
}
|
||||
|
||||
info.Level[req.Level] = level
|
||||
if err = this.module.modelCombat.updateInfo(info); err != nil {
|
||||
code = pb.ErrorCode_DBError
|
||||
return
|
||||
}
|
||||
pitem.Progress = level.Progress
|
||||
session.SendMsg(string(this.module.GetType()), "progress", &pb.CombatAskResp{Level: pitem})
|
||||
return
|
||||
}
|
@ -3,7 +3,6 @@ package combat
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/pb"
|
||||
cfg "go_dreamfactory/sys/configure/structs"
|
||||
)
|
||||
|
||||
//参数校验
|
||||
@ -17,10 +16,6 @@ func (this *apiComp) In(session comm.IUserSession, req *pb.CombatInReq) (code pb
|
||||
var (
|
||||
info *pb.DBCombatUser
|
||||
level *pb.DBCombatLevel
|
||||
lvconf *cfg.GameCombatLevelData
|
||||
condis []*pb.ConIProgress
|
||||
pitem *pb.LevelProgressItem
|
||||
push bool
|
||||
ok bool
|
||||
err error
|
||||
)
|
||||
@ -31,106 +26,22 @@ func (this *apiComp) In(session comm.IUserSession, req *pb.CombatInReq) (code pb
|
||||
code = pb.ErrorCode_DBError
|
||||
return
|
||||
}
|
||||
|
||||
if lvconf, err = this.module.configure.getCombatLevel(req.Id); err != nil {
|
||||
code = pb.ErrorCode_ConfigNoFound
|
||||
return
|
||||
}
|
||||
|
||||
if level, ok = info.Level[req.Id]; !ok {
|
||||
if level, ok = info.Level[req.Level]; !ok {
|
||||
|
||||
level = &pb.DBCombatLevel{
|
||||
Id: req.Id,
|
||||
Id: req.Level,
|
||||
Passmanster: make([]int32, 0),
|
||||
Passdrop: make([]int32, 0),
|
||||
Progress: 0,
|
||||
Pass: 0,
|
||||
}
|
||||
pitem = &pb.LevelProgressItem{
|
||||
Level: level.Id,
|
||||
Pass: level.Pass,
|
||||
}
|
||||
if condis, err = this.module.ModuleBuried.CheckCondition(session.GetUserId(), lvconf.Maintask...); err != nil {
|
||||
code = pb.ErrorCode_ExternalModule
|
||||
data = &pb.ErrorData{
|
||||
Title: code.ToString(),
|
||||
Message: comm.NewExternalModuleErr("Buried", "CheckCondition", lvconf.Maintask).Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
ok = true
|
||||
level.Passmaintask = condis
|
||||
pitem.Passmaintask = condis
|
||||
for _, v := range condis {
|
||||
level.Progress += v.Value
|
||||
if v.State != 2 {
|
||||
ok = false
|
||||
}
|
||||
}
|
||||
|
||||
if ok { //
|
||||
level.Pass = 1
|
||||
pitem.Pass = 1
|
||||
this.module.DispenseRes(session, lvconf.Award, true)
|
||||
atns := make([]*pb.UserAssets, len(lvconf.Award))
|
||||
for i, v := range lvconf.Award {
|
||||
atns[i] = &pb.UserAssets{
|
||||
A: v.A,
|
||||
T: v.T,
|
||||
N: v.N,
|
||||
}
|
||||
}
|
||||
pitem.Mainaward = atns
|
||||
push = true
|
||||
}
|
||||
|
||||
if level.Pass == 1 {
|
||||
if condis, err = this.module.ModuleBuried.CheckCondition(session.GetUserId(), lvconf.Subtask...); err != nil {
|
||||
code = pb.ErrorCode_ExternalModule
|
||||
data = &pb.ErrorData{
|
||||
Title: code.ToString(),
|
||||
Message: comm.NewExternalModuleErr("Buried", "CheckCondition", lvconf.Subtask).Error(),
|
||||
}
|
||||
return
|
||||
}
|
||||
level.Passpertask = condis
|
||||
pitem.Passpertask = condis
|
||||
ok = true
|
||||
for _, v := range condis {
|
||||
level.Progress += v.Value
|
||||
if v.State != 2 {
|
||||
ok = false
|
||||
}
|
||||
}
|
||||
|
||||
if ok { //
|
||||
level.Pass = 2
|
||||
pitem.Pass = 2
|
||||
this.module.DispenseRes(session, lvconf.Profectaward, true)
|
||||
atns := make([]*pb.UserAssets, len(lvconf.Profectaward))
|
||||
for i, v := range lvconf.Profectaward {
|
||||
atns[i] = &pb.UserAssets{
|
||||
A: v.A,
|
||||
T: v.T,
|
||||
N: v.N,
|
||||
}
|
||||
}
|
||||
pitem.Peraward = atns
|
||||
push = true
|
||||
}
|
||||
}
|
||||
|
||||
info.Level[req.Id] = level
|
||||
info.Level[req.Level] = level
|
||||
if err = this.module.modelCombat.updateInfo(info); err != nil {
|
||||
code = pb.ErrorCode_DBError
|
||||
return
|
||||
}
|
||||
}
|
||||
session.SendMsg(string(this.module.GetType()), "in", &pb.CombatInResp{Level: level})
|
||||
if push {
|
||||
pitem.Progress = level.Progress
|
||||
session.SendMsg(string(this.module.GetType()), "progress", &pb.CombatProgressPush{Levels: []*pb.LevelProgressItem{pitem}})
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
@ -80,6 +80,9 @@ func (this *Combat) GetLevels(uid string) (levels map[int32]*pb.DBCombatLevel) {
|
||||
//任务埋点通知
|
||||
func (this *Combat) BuriedsNotify(uid string, condis []*pb.ConIProgress) {
|
||||
this.Debug("收到埋点中心 进度改变通知", log.Field{Key: "uid", Value: uid}, log.Field{Key: "condis", Value: condis})
|
||||
//废弃 采用主动询问机制
|
||||
return
|
||||
|
||||
var (
|
||||
err error
|
||||
session comm.IUserSession
|
||||
|
@ -26,7 +26,7 @@ type CombatInReq struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` //关卡id
|
||||
Level int32 `protobuf:"varint,1,opt,name=level,proto3" json:"level"` //关卡id
|
||||
}
|
||||
|
||||
func (x *CombatInReq) Reset() {
|
||||
@ -61,9 +61,9 @@ func (*CombatInReq) Descriptor() ([]byte, []int) {
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *CombatInReq) GetId() int32 {
|
||||
func (x *CombatInReq) GetLevel() int32 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
return x.Level
|
||||
}
|
||||
return 0
|
||||
}
|
||||
@ -116,6 +116,101 @@ func (x *CombatInResp) GetLevel() *DBCombatLevel {
|
||||
return nil
|
||||
}
|
||||
|
||||
//询问关卡进度
|
||||
type CombatAskReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Level int32 `protobuf:"varint,1,opt,name=level,proto3" json:"level"` //关卡id
|
||||
}
|
||||
|
||||
func (x *CombatAskReq) Reset() {
|
||||
*x = CombatAskReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CombatAskReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CombatAskReq) ProtoMessage() {}
|
||||
|
||||
func (x *CombatAskReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[2]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CombatAskReq.ProtoReflect.Descriptor instead.
|
||||
func (*CombatAskReq) Descriptor() ([]byte, []int) {
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *CombatAskReq) GetLevel() int32 {
|
||||
if x != nil {
|
||||
return x.Level
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type CombatAskResp struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Level *LevelProgressItem `protobuf:"bytes,1,opt,name=level,proto3" json:"level"` //关卡id
|
||||
}
|
||||
|
||||
func (x *CombatAskResp) Reset() {
|
||||
*x = CombatAskResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
}
|
||||
|
||||
func (x *CombatAskResp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*CombatAskResp) ProtoMessage() {}
|
||||
|
||||
func (x *CombatAskResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[3]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use CombatAskResp.ProtoReflect.Descriptor instead.
|
||||
func (*CombatAskResp) Descriptor() ([]byte, []int) {
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *CombatAskResp) GetLevel() *LevelProgressItem {
|
||||
if x != nil {
|
||||
return x.Level
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type CombatUpdateLevelReq struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
@ -128,7 +223,7 @@ type CombatUpdateLevelReq struct {
|
||||
func (x *CombatUpdateLevelReq) Reset() {
|
||||
*x = CombatUpdateLevelReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[2]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -141,7 +236,7 @@ func (x *CombatUpdateLevelReq) String() string {
|
||||
func (*CombatUpdateLevelReq) ProtoMessage() {}
|
||||
|
||||
func (x *CombatUpdateLevelReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[2]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[4]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -154,7 +249,7 @@ func (x *CombatUpdateLevelReq) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CombatUpdateLevelReq.ProtoReflect.Descriptor instead.
|
||||
func (*CombatUpdateLevelReq) Descriptor() ([]byte, []int) {
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{2}
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *CombatUpdateLevelReq) GetLevel() int32 {
|
||||
@ -182,7 +277,7 @@ type CombatUpdateLevelResp struct {
|
||||
func (x *CombatUpdateLevelResp) Reset() {
|
||||
*x = CombatUpdateLevelResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[3]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -195,7 +290,7 @@ func (x *CombatUpdateLevelResp) String() string {
|
||||
func (*CombatUpdateLevelResp) ProtoMessage() {}
|
||||
|
||||
func (x *CombatUpdateLevelResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[3]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[5]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -208,7 +303,7 @@ func (x *CombatUpdateLevelResp) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CombatUpdateLevelResp.ProtoReflect.Descriptor instead.
|
||||
func (*CombatUpdateLevelResp) Descriptor() ([]byte, []int) {
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{3}
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *CombatUpdateLevelResp) GetLevel() int32 {
|
||||
@ -232,7 +327,7 @@ type CombatChallengeReq struct {
|
||||
func (x *CombatChallengeReq) Reset() {
|
||||
*x = CombatChallengeReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[4]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -245,7 +340,7 @@ func (x *CombatChallengeReq) String() string {
|
||||
func (*CombatChallengeReq) ProtoMessage() {}
|
||||
|
||||
func (x *CombatChallengeReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[4]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[6]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -258,7 +353,7 @@ func (x *CombatChallengeReq) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CombatChallengeReq.ProtoReflect.Descriptor instead.
|
||||
func (*CombatChallengeReq) Descriptor() ([]byte, []int) {
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{4}
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *CombatChallengeReq) GetLevel() int32 {
|
||||
@ -296,7 +391,7 @@ type CombatChallengeResp struct {
|
||||
func (x *CombatChallengeResp) Reset() {
|
||||
*x = CombatChallengeResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[5]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -309,7 +404,7 @@ func (x *CombatChallengeResp) String() string {
|
||||
func (*CombatChallengeResp) ProtoMessage() {}
|
||||
|
||||
func (x *CombatChallengeResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[5]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[7]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -322,7 +417,7 @@ func (x *CombatChallengeResp) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CombatChallengeResp.ProtoReflect.Descriptor instead.
|
||||
func (*CombatChallengeResp) Descriptor() ([]byte, []int) {
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{5}
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *CombatChallengeResp) GetLevel() int32 {
|
||||
@ -360,7 +455,7 @@ type CombatChallengeReceiveReq struct {
|
||||
func (x *CombatChallengeReceiveReq) Reset() {
|
||||
*x = CombatChallengeReceiveReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[6]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -373,7 +468,7 @@ func (x *CombatChallengeReceiveReq) String() string {
|
||||
func (*CombatChallengeReceiveReq) ProtoMessage() {}
|
||||
|
||||
func (x *CombatChallengeReceiveReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[6]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[8]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -386,7 +481,7 @@ func (x *CombatChallengeReceiveReq) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CombatChallengeReceiveReq.ProtoReflect.Descriptor instead.
|
||||
func (*CombatChallengeReceiveReq) Descriptor() ([]byte, []int) {
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{6}
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *CombatChallengeReceiveReq) GetLevel() int32 {
|
||||
@ -424,7 +519,7 @@ type CombatChallengeReceiveResp struct {
|
||||
func (x *CombatChallengeReceiveResp) Reset() {
|
||||
*x = CombatChallengeReceiveResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[7]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -437,7 +532,7 @@ func (x *CombatChallengeReceiveResp) String() string {
|
||||
func (*CombatChallengeReceiveResp) ProtoMessage() {}
|
||||
|
||||
func (x *CombatChallengeReceiveResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[7]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[9]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -450,7 +545,7 @@ func (x *CombatChallengeReceiveResp) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CombatChallengeReceiveResp.ProtoReflect.Descriptor instead.
|
||||
func (*CombatChallengeReceiveResp) Descriptor() ([]byte, []int) {
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{7}
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *CombatChallengeReceiveResp) GetLevel() int32 {
|
||||
@ -487,7 +582,7 @@ type CombatDropReq struct {
|
||||
func (x *CombatDropReq) Reset() {
|
||||
*x = CombatDropReq{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[8]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -500,7 +595,7 @@ func (x *CombatDropReq) String() string {
|
||||
func (*CombatDropReq) ProtoMessage() {}
|
||||
|
||||
func (x *CombatDropReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[8]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[10]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -513,7 +608,7 @@ func (x *CombatDropReq) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CombatDropReq.ProtoReflect.Descriptor instead.
|
||||
func (*CombatDropReq) Descriptor() ([]byte, []int) {
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{8}
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
func (x *CombatDropReq) GetLevel() int32 {
|
||||
@ -543,7 +638,7 @@ type CombatDropResp struct {
|
||||
func (x *CombatDropResp) Reset() {
|
||||
*x = CombatDropResp{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[9]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -556,7 +651,7 @@ func (x *CombatDropResp) String() string {
|
||||
func (*CombatDropResp) ProtoMessage() {}
|
||||
|
||||
func (x *CombatDropResp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[9]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[11]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -569,7 +664,7 @@ func (x *CombatDropResp) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CombatDropResp.ProtoReflect.Descriptor instead.
|
||||
func (*CombatDropResp) Descriptor() ([]byte, []int) {
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{9}
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *CombatDropResp) GetLevel() int32 {
|
||||
@ -604,7 +699,7 @@ type LevelProgressItem struct {
|
||||
func (x *LevelProgressItem) Reset() {
|
||||
*x = LevelProgressItem{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[10]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -617,7 +712,7 @@ func (x *LevelProgressItem) String() string {
|
||||
func (*LevelProgressItem) ProtoMessage() {}
|
||||
|
||||
func (x *LevelProgressItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[10]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[12]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -630,7 +725,7 @@ func (x *LevelProgressItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use LevelProgressItem.ProtoReflect.Descriptor instead.
|
||||
func (*LevelProgressItem) Descriptor() ([]byte, []int) {
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{10}
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *LevelProgressItem) GetLevel() int32 {
|
||||
@ -694,7 +789,7 @@ type CombatProgressPush struct {
|
||||
func (x *CombatProgressPush) Reset() {
|
||||
*x = CombatProgressPush{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[11]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@ -707,7 +802,7 @@ func (x *CombatProgressPush) String() string {
|
||||
func (*CombatProgressPush) ProtoMessage() {}
|
||||
|
||||
func (x *CombatProgressPush) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[11]
|
||||
mi := &file_combat_combat_msg_proto_msgTypes[13]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@ -720,7 +815,7 @@ func (x *CombatProgressPush) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use CombatProgressPush.ProtoReflect.Descriptor instead.
|
||||
func (*CombatProgressPush) Descriptor() ([]byte, []int) {
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{11}
|
||||
return file_combat_combat_msg_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
func (x *CombatProgressPush) GetLevels() []*LevelProgressItem {
|
||||
@ -739,84 +834,90 @@ var file_combat_combat_msg_proto_rawDesc = []byte{
|
||||
0x6d, 0x62, 0x61, 0x74, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x62,
|
||||
0x75, 0x72, 0x69, 0x65, 0x64, 0x2f, 0x62, 0x75, 0x72, 0x69, 0x65, 0x64, 0x5f, 0x64, 0x62, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x2f, 0x62, 0x61,
|
||||
0x74, 0x74, 0x6c, 0x65, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1d,
|
||||
0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a,
|
||||
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x22, 0x34, 0x0a,
|
||||
0x0c, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x49, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x24, 0x0a,
|
||||
0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44,
|
||||
0x42, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65,
|
||||
0x76, 0x65, 0x6c, 0x22, 0x9a, 0x01, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x55, 0x70,
|
||||
0x64, 0x61, 0x74, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05,
|
||||
0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76,
|
||||
0x65, 0x6c, 0x12, 0x33, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
|
||||
0x32, 0x1f, 0x2e, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c,
|
||||
0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72,
|
||||
0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45,
|
||||
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
|
||||
0x22, 0x2d, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
|
||||
0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76,
|
||||
0x74, 0x74, 0x6c, 0x65, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x23,
|
||||
0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x49, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a,
|
||||
0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65,
|
||||
0x76, 0x65, 0x6c, 0x22, 0x34, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x49, 0x6e, 0x52,
|
||||
0x65, 0x73, 0x70, 0x12, 0x24, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x4c, 0x65, 0x76,
|
||||
0x65, 0x6c, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x24, 0x0a, 0x0c, 0x43, 0x6f, 0x6d,
|
||||
0x62, 0x61, 0x74, 0x41, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76,
|
||||
0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22,
|
||||
0x6e, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e,
|
||||
0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6d,
|
||||
0x61, 0x6e, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x61,
|
||||
0x6e, 0x73, 0x74, 0x65, 0x72, 0x12, 0x28, 0x0a, 0x06, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x18,
|
||||
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x46, 0x6f,
|
||||
0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x22,
|
||||
0x66, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e,
|
||||
0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07,
|
||||
0x6d, 0x61, 0x6e, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d,
|
||||
0x61, 0x6e, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x49, 0x6e, 0x66,
|
||||
0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x72, 0x0a, 0x19, 0x43, 0x6f, 0x6d, 0x62, 0x61,
|
||||
0x74, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76,
|
||||
0x65, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61,
|
||||
0x6e, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x61, 0x6e,
|
||||
0x73, 0x74, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03,
|
||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x52, 0x65, 0x70,
|
||||
0x6f, 0x72, 0x74, 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x6d, 0x0a, 0x1a, 0x43,
|
||||
0x6f, 0x6d, 0x62, 0x61, 0x74, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x65,
|
||||
0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76,
|
||||
0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12,
|
||||
0x18, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x07, 0x6d, 0x61, 0x6e, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x04, 0x61, 0x74, 0x6e,
|
||||
0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x73,
|
||||
0x73, 0x65, 0x74, 0x73, 0x52, 0x04, 0x61, 0x74, 0x6e, 0x73, 0x22, 0x39, 0x0a, 0x0d, 0x43, 0x6f,
|
||||
0x6d, 0x62, 0x61, 0x74, 0x44, 0x72, 0x6f, 0x70, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x6c,
|
||||
0x39, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x41, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70,
|
||||
0x12, 0x28, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||
0x12, 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49,
|
||||
0x74, 0x65, 0x6d, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x9a, 0x01, 0x0a, 0x14, 0x43,
|
||||
0x6f, 0x6d, 0x62, 0x61, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c,
|
||||
0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x33, 0x0a, 0x04, 0x64, 0x61, 0x74,
|
||||
0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74,
|
||||
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x2e, 0x44,
|
||||
0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x37,
|
||||
0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
|
||||
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a,
|
||||
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61,
|
||||
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x2d, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x62, 0x61,
|
||||
0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70,
|
||||
0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x6e, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74,
|
||||
0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05,
|
||||
0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76,
|
||||
0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x61, 0x6e, 0x73, 0x74, 0x65, 0x72, 0x12, 0x28, 0x0a, 0x06,
|
||||
0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x42,
|
||||
0x61, 0x74, 0x74, 0x6c, 0x65, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06,
|
||||
0x62, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x22, 0x66, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74,
|
||||
0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a,
|
||||
0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65,
|
||||
0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x61, 0x6e, 0x73, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a,
|
||||
0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x42, 0x61,
|
||||
0x74, 0x74, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x72,
|
||||
0x0a, 0x19, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67,
|
||||
0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x6c,
|
||||
0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65,
|
||||
0x6c, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x72, 0x6f, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x04, 0x64, 0x72, 0x6f, 0x70, 0x22, 0x47, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x44,
|
||||
0x72, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
|
||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x1f, 0x0a,
|
||||
0x04, 0x61, 0x74, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x55, 0x73,
|
||||
0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x04, 0x61, 0x74, 0x6e, 0x73, 0x22, 0x91,
|
||||
0x02, 0x0a, 0x11, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73,
|
||||
0x49, 0x74, 0x65, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x31, 0x0a, 0x0c, 0x70, 0x61,
|
||||
0x73, 0x73, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
|
||||
0x32, 0x0d, 0x2e, 0x43, 0x6f, 0x6e, 0x49, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52,
|
||||
0x0c, 0x70, 0x61, 0x73, 0x73, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x2f, 0x0a,
|
||||
0x0b, 0x70, 0x61, 0x73, 0x73, 0x70, 0x65, 0x72, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x03,
|
||||
0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x6f, 0x6e, 0x49, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73,
|
||||
0x73, 0x52, 0x0b, 0x70, 0x61, 0x73, 0x73, 0x70, 0x65, 0x72, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x1a,
|
||||
0x0a, 0x08, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x08, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61,
|
||||
0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x73, 0x73, 0x12, 0x29,
|
||||
0x0a, 0x09, 0x6d, 0x61, 0x69, 0x6e, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x06, 0x20, 0x03, 0x28,
|
||||
0x0b, 0x32, 0x0b, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x09,
|
||||
0x6d, 0x61, 0x69, 0x6e, 0x61, 0x77, 0x61, 0x72, 0x64, 0x12, 0x27, 0x0a, 0x08, 0x70, 0x65, 0x72,
|
||||
0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x55, 0x73,
|
||||
0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x08, 0x70, 0x65, 0x72, 0x61, 0x77, 0x61,
|
||||
0x72, 0x64, 0x22, 0x40, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x50, 0x72, 0x6f, 0x67,
|
||||
0x72, 0x65, 0x73, 0x73, 0x50, 0x75, 0x73, 0x68, 0x12, 0x2a, 0x0a, 0x06, 0x6c, 0x65, 0x76, 0x65,
|
||||
0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c,
|
||||
0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x06, 0x6c, 0x65,
|
||||
0x76, 0x65, 0x6c, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x33,
|
||||
0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x73, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x07, 0x6d, 0x61, 0x6e, 0x73, 0x74, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x06, 0x72,
|
||||
0x65, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x42, 0x61,
|
||||
0x74, 0x74, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f,
|
||||
0x72, 0x74, 0x22, 0x6d, 0x0a, 0x1a, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x43, 0x68, 0x61, 0x6c,
|
||||
0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70,
|
||||
0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x73, 0x74, 0x65,
|
||||
0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6d, 0x61, 0x6e, 0x73, 0x74, 0x65, 0x72,
|
||||
0x12, 0x1f, 0x0a, 0x04, 0x61, 0x74, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b,
|
||||
0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x04, 0x61, 0x74, 0x6e,
|
||||
0x73, 0x22, 0x39, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x44, 0x72, 0x6f, 0x70, 0x52,
|
||||
0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x72, 0x6f, 0x70,
|
||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x64, 0x72, 0x6f, 0x70, 0x22, 0x47, 0x0a, 0x0e,
|
||||
0x43, 0x6f, 0x6d, 0x62, 0x61, 0x74, 0x44, 0x72, 0x6f, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14,
|
||||
0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c,
|
||||
0x65, 0x76, 0x65, 0x6c, 0x12, 0x1f, 0x0a, 0x04, 0x61, 0x74, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03,
|
||||
0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52,
|
||||
0x04, 0x61, 0x74, 0x6e, 0x73, 0x22, 0x91, 0x02, 0x0a, 0x11, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x50,
|
||||
0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x6c,
|
||||
0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65,
|
||||
0x6c, 0x12, 0x31, 0x0a, 0x0c, 0x70, 0x61, 0x73, 0x73, 0x6d, 0x61, 0x69, 0x6e, 0x74, 0x61, 0x73,
|
||||
0x6b, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x6f, 0x6e, 0x49, 0x50, 0x72,
|
||||
0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0c, 0x70, 0x61, 0x73, 0x73, 0x6d, 0x61, 0x69, 0x6e,
|
||||
0x74, 0x61, 0x73, 0x6b, 0x12, 0x2f, 0x0a, 0x0b, 0x70, 0x61, 0x73, 0x73, 0x70, 0x65, 0x72, 0x74,
|
||||
0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x43, 0x6f, 0x6e, 0x49,
|
||||
0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0b, 0x70, 0x61, 0x73, 0x73, 0x70, 0x65,
|
||||
0x72, 0x74, 0x61, 0x73, 0x6b, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73,
|
||||
0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73,
|
||||
0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x04, 0x70, 0x61, 0x73, 0x73, 0x12, 0x29, 0x0a, 0x09, 0x6d, 0x61, 0x69, 0x6e, 0x61, 0x77, 0x61,
|
||||
0x72, 0x64, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41,
|
||||
0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x09, 0x6d, 0x61, 0x69, 0x6e, 0x61, 0x77, 0x61, 0x72, 0x64,
|
||||
0x12, 0x27, 0x0a, 0x08, 0x70, 0x65, 0x72, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x07, 0x20, 0x03,
|
||||
0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52,
|
||||
0x08, 0x70, 0x65, 0x72, 0x61, 0x77, 0x61, 0x72, 0x64, 0x22, 0x40, 0x0a, 0x12, 0x43, 0x6f, 0x6d,
|
||||
0x62, 0x61, 0x74, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x50, 0x75, 0x73, 0x68, 0x12,
|
||||
0x2a, 0x0a, 0x06, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
||||
0x12, 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49,
|
||||
0x74, 0x65, 0x6d, 0x52, 0x06, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e,
|
||||
0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@ -831,46 +932,49 @@ func file_combat_combat_msg_proto_rawDescGZIP() []byte {
|
||||
return file_combat_combat_msg_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_combat_combat_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
||||
var file_combat_combat_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
|
||||
var file_combat_combat_msg_proto_goTypes = []interface{}{
|
||||
(*CombatInReq)(nil), // 0: CombatInReq
|
||||
(*CombatInResp)(nil), // 1: CombatInResp
|
||||
(*CombatUpdateLevelReq)(nil), // 2: CombatUpdateLevelReq
|
||||
(*CombatUpdateLevelResp)(nil), // 3: CombatUpdateLevelResp
|
||||
(*CombatChallengeReq)(nil), // 4: CombatChallengeReq
|
||||
(*CombatChallengeResp)(nil), // 5: CombatChallengeResp
|
||||
(*CombatChallengeReceiveReq)(nil), // 6: CombatChallengeReceiveReq
|
||||
(*CombatChallengeReceiveResp)(nil), // 7: CombatChallengeReceiveResp
|
||||
(*CombatDropReq)(nil), // 8: CombatDropReq
|
||||
(*CombatDropResp)(nil), // 9: CombatDropResp
|
||||
(*LevelProgressItem)(nil), // 10: LevelProgressItem
|
||||
(*CombatProgressPush)(nil), // 11: CombatProgressPush
|
||||
nil, // 12: CombatUpdateLevelReq.DataEntry
|
||||
(*DBCombatLevel)(nil), // 13: DBCombatLevel
|
||||
(*BattleFormation)(nil), // 14: BattleFormation
|
||||
(*BattleInfo)(nil), // 15: BattleInfo
|
||||
(*BattleReport)(nil), // 16: BattleReport
|
||||
(*UserAssets)(nil), // 17: UserAssets
|
||||
(*ConIProgress)(nil), // 18: ConIProgress
|
||||
(*CombatAskReq)(nil), // 2: CombatAskReq
|
||||
(*CombatAskResp)(nil), // 3: CombatAskResp
|
||||
(*CombatUpdateLevelReq)(nil), // 4: CombatUpdateLevelReq
|
||||
(*CombatUpdateLevelResp)(nil), // 5: CombatUpdateLevelResp
|
||||
(*CombatChallengeReq)(nil), // 6: CombatChallengeReq
|
||||
(*CombatChallengeResp)(nil), // 7: CombatChallengeResp
|
||||
(*CombatChallengeReceiveReq)(nil), // 8: CombatChallengeReceiveReq
|
||||
(*CombatChallengeReceiveResp)(nil), // 9: CombatChallengeReceiveResp
|
||||
(*CombatDropReq)(nil), // 10: CombatDropReq
|
||||
(*CombatDropResp)(nil), // 11: CombatDropResp
|
||||
(*LevelProgressItem)(nil), // 12: LevelProgressItem
|
||||
(*CombatProgressPush)(nil), // 13: CombatProgressPush
|
||||
nil, // 14: CombatUpdateLevelReq.DataEntry
|
||||
(*DBCombatLevel)(nil), // 15: DBCombatLevel
|
||||
(*BattleFormation)(nil), // 16: BattleFormation
|
||||
(*BattleInfo)(nil), // 17: BattleInfo
|
||||
(*BattleReport)(nil), // 18: BattleReport
|
||||
(*UserAssets)(nil), // 19: UserAssets
|
||||
(*ConIProgress)(nil), // 20: ConIProgress
|
||||
}
|
||||
var file_combat_combat_msg_proto_depIdxs = []int32{
|
||||
13, // 0: CombatInResp.level:type_name -> DBCombatLevel
|
||||
12, // 1: CombatUpdateLevelReq.data:type_name -> CombatUpdateLevelReq.DataEntry
|
||||
14, // 2: CombatChallengeReq.battle:type_name -> BattleFormation
|
||||
15, // 3: CombatChallengeResp.info:type_name -> BattleInfo
|
||||
16, // 4: CombatChallengeReceiveReq.report:type_name -> BattleReport
|
||||
17, // 5: CombatChallengeReceiveResp.atns:type_name -> UserAssets
|
||||
17, // 6: CombatDropResp.atns:type_name -> UserAssets
|
||||
18, // 7: LevelProgressItem.passmaintask:type_name -> ConIProgress
|
||||
18, // 8: LevelProgressItem.passpertask:type_name -> ConIProgress
|
||||
17, // 9: LevelProgressItem.mainaward:type_name -> UserAssets
|
||||
17, // 10: LevelProgressItem.peraward:type_name -> UserAssets
|
||||
10, // 11: CombatProgressPush.levels:type_name -> LevelProgressItem
|
||||
12, // [12:12] is the sub-list for method output_type
|
||||
12, // [12:12] is the sub-list for method input_type
|
||||
12, // [12:12] is the sub-list for extension type_name
|
||||
12, // [12:12] is the sub-list for extension extendee
|
||||
0, // [0:12] is the sub-list for field type_name
|
||||
15, // 0: CombatInResp.level:type_name -> DBCombatLevel
|
||||
12, // 1: CombatAskResp.level:type_name -> LevelProgressItem
|
||||
14, // 2: CombatUpdateLevelReq.data:type_name -> CombatUpdateLevelReq.DataEntry
|
||||
16, // 3: CombatChallengeReq.battle:type_name -> BattleFormation
|
||||
17, // 4: CombatChallengeResp.info:type_name -> BattleInfo
|
||||
18, // 5: CombatChallengeReceiveReq.report:type_name -> BattleReport
|
||||
19, // 6: CombatChallengeReceiveResp.atns:type_name -> UserAssets
|
||||
19, // 7: CombatDropResp.atns:type_name -> UserAssets
|
||||
20, // 8: LevelProgressItem.passmaintask:type_name -> ConIProgress
|
||||
20, // 9: LevelProgressItem.passpertask:type_name -> ConIProgress
|
||||
19, // 10: LevelProgressItem.mainaward:type_name -> UserAssets
|
||||
19, // 11: LevelProgressItem.peraward:type_name -> UserAssets
|
||||
12, // 12: CombatProgressPush.levels:type_name -> LevelProgressItem
|
||||
13, // [13:13] is the sub-list for method output_type
|
||||
13, // [13:13] is the sub-list for method input_type
|
||||
13, // [13:13] is the sub-list for extension type_name
|
||||
13, // [13:13] is the sub-list for extension extendee
|
||||
0, // [0:13] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_combat_combat_msg_proto_init() }
|
||||
@ -908,7 +1012,7 @@ func file_combat_combat_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_combat_combat_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CombatUpdateLevelReq); i {
|
||||
switch v := v.(*CombatAskReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -920,7 +1024,7 @@ func file_combat_combat_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_combat_combat_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CombatUpdateLevelResp); i {
|
||||
switch v := v.(*CombatAskResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -932,7 +1036,7 @@ func file_combat_combat_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_combat_combat_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CombatChallengeReq); i {
|
||||
switch v := v.(*CombatUpdateLevelReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -944,7 +1048,7 @@ func file_combat_combat_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_combat_combat_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CombatChallengeResp); i {
|
||||
switch v := v.(*CombatUpdateLevelResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -956,7 +1060,7 @@ func file_combat_combat_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_combat_combat_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CombatChallengeReceiveReq); i {
|
||||
switch v := v.(*CombatChallengeReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -968,7 +1072,7 @@ func file_combat_combat_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_combat_combat_msg_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CombatChallengeReceiveResp); i {
|
||||
switch v := v.(*CombatChallengeResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -980,7 +1084,7 @@ func file_combat_combat_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_combat_combat_msg_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CombatDropReq); i {
|
||||
switch v := v.(*CombatChallengeReceiveReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -992,7 +1096,7 @@ func file_combat_combat_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_combat_combat_msg_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CombatDropResp); i {
|
||||
switch v := v.(*CombatChallengeReceiveResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1004,7 +1108,7 @@ func file_combat_combat_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_combat_combat_msg_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*LevelProgressItem); i {
|
||||
switch v := v.(*CombatDropReq); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
@ -1016,6 +1120,30 @@ func file_combat_combat_msg_proto_init() {
|
||||
}
|
||||
}
|
||||
file_combat_combat_msg_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CombatDropResp); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_combat_combat_msg_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*LevelProgressItem); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_combat_combat_msg_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*CombatProgressPush); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1034,7 +1162,7 @@ func file_combat_combat_msg_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_combat_combat_msg_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 13,
|
||||
NumMessages: 15,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
@ -13,7 +13,7 @@ import "errors"
|
||||
type GameBuriedCondiData struct {
|
||||
Id int32
|
||||
Rtype int32
|
||||
Lock int32
|
||||
Ctype int32
|
||||
Notify []string
|
||||
TypeSp int32
|
||||
Tasktxt string
|
||||
@ -33,7 +33,7 @@ func (*GameBuriedCondiData) GetTypeId() int32 {
|
||||
func (_v *GameBuriedCondiData)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; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["rtype"].(float64); !_ok_ { err = errors.New("rtype error"); return }; _v.Rtype = int32(_tempNum_) }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["lock"].(float64); !_ok_ { err = errors.New("lock error"); return }; _v.Lock = int32(_tempNum_) }
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["ctype"].(float64); !_ok_ { err = errors.New("ctype error"); return }; _v.Ctype = int32(_tempNum_) }
|
||||
{
|
||||
var _arr_ []interface{}
|
||||
var _ok_ bool
|
||||
|
@ -16,6 +16,19 @@ func IsToday(d int64) bool {
|
||||
return tt.Year() == now.Year() && tt.Month() == now.Month() && tt.Day() == now.Day()
|
||||
}
|
||||
|
||||
// 判断是否是出于同一周
|
||||
func IsSameWeek(d int64) bool {
|
||||
// 将时间戳转换成一个 time.Time 对象
|
||||
t1 := time.Unix(d, 0)
|
||||
t2 := configure.Now()
|
||||
|
||||
// 获取 t1 所在的周的第一天和 t2 所在的周的第一天
|
||||
t1FirstDay := t1.AddDate(0, 0, -int(t1.Weekday())+1)
|
||||
t2FirstDay := t2.AddDate(0, 0, -int(t2.Weekday())+1)
|
||||
// 判断两个时间所在的周的第一天是否相同
|
||||
return t1FirstDay.Equal(t2FirstDay)
|
||||
}
|
||||
|
||||
//判断是否大于1周
|
||||
func IsAfterWeek(d int64) bool {
|
||||
tt := time.Unix(d, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user