上传月之秘境代码
This commit is contained in:
parent
e01253f69f
commit
8cf678dcf2
102
bin/json/game_dreamlandchallenge.json
Normal file
102
bin/json/game_dreamlandchallenge.json
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"buynum": 1,
|
||||||
|
"need": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 10
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"buynum": 2,
|
||||||
|
"need": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 20
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"buynum": 3,
|
||||||
|
"need": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 30
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"buynum": 4,
|
||||||
|
"need": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 40
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"buynum": 5,
|
||||||
|
"need": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 50
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"buynum": 6,
|
||||||
|
"need": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 60
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"buynum": 7,
|
||||||
|
"need": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 70
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"buynum": 8,
|
||||||
|
"need": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 80
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"buynum": 9,
|
||||||
|
"need": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 90
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"buynum": 10,
|
||||||
|
"need": [
|
||||||
|
{
|
||||||
|
"a": "attr",
|
||||||
|
"t": "diamond",
|
||||||
|
"n": 100
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
12
bin/json/game_dreamlandtrigger.json
Normal file
12
bin/json/game_dreamlandtrigger.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"dreamland_pro": 500,
|
||||||
|
"open": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 2,
|
||||||
|
"dreamland_pro": 100,
|
||||||
|
"open": false
|
||||||
|
}
|
||||||
|
]
|
29
modules/moonfantasy/api_buy.go
Normal file
29
modules/moonfantasy/api_buy.go
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
package moonfantasy
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go_dreamfactory/comm"
|
||||||
|
"go_dreamfactory/pb"
|
||||||
|
|
||||||
|
"google.golang.org/protobuf/proto"
|
||||||
|
)
|
||||||
|
|
||||||
|
//参数校验
|
||||||
|
func (this *apiComp) BuyCheck(session comm.IUserSession, req *pb.MoonfantasyBuyReq) (code pb.ErrorCode) {
|
||||||
|
if req.BuyNum == 0 {
|
||||||
|
code = pb.ErrorCode_ReqParameterError
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
///询问怪物是否可以挑战
|
||||||
|
func (this *apiComp) Buy(session comm.IUserSession, req *pb.MoonfantasyBuyReq) (code pb.ErrorCode, data proto.Message) {
|
||||||
|
var ()
|
||||||
|
defer func() {
|
||||||
|
session.SendMsg(string(this.module.GetType()), "ask", &pb.MoonfantasyBuyResp{Issucc: true})
|
||||||
|
}()
|
||||||
|
if code = this.BuyCheck(session, req); code != pb.ErrorCode_Success {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
@ -10,7 +10,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
game_dreamlandboos = "game_dreamlandboos.json"
|
game_dreamlandboos = "game_dreamlandboos.json"
|
||||||
|
game_dreamlandchallenge = "game_dreamlandchallenge.json"
|
||||||
|
game_dreamlandtrigger = "game_dreamlandtrigger.json"
|
||||||
)
|
)
|
||||||
|
|
||||||
///背包配置管理组件
|
///背包配置管理组件
|
||||||
|
@ -76,22 +76,22 @@ func (BattleType) EnumDescriptor() ([]byte, []int) {
|
|||||||
type PlayType int32
|
type PlayType int32
|
||||||
|
|
||||||
const (
|
const (
|
||||||
PlayType_mainline PlayType = 0 //主线玩法
|
PlayType_moonfantasy PlayType = 0 //月之秘境
|
||||||
PlayType_pagoda PlayType = 1 //爬塔
|
PlayType_mainline PlayType = 1 //主线玩法
|
||||||
PlayType_moonfantasy PlayType = 2 //月之秘境
|
PlayType_pagoda PlayType = 2 //爬塔
|
||||||
)
|
)
|
||||||
|
|
||||||
// Enum value maps for PlayType.
|
// Enum value maps for PlayType.
|
||||||
var (
|
var (
|
||||||
PlayType_name = map[int32]string{
|
PlayType_name = map[int32]string{
|
||||||
0: "mainline",
|
0: "moonfantasy",
|
||||||
1: "pagoda",
|
1: "mainline",
|
||||||
2: "moonfantasy",
|
2: "pagoda",
|
||||||
}
|
}
|
||||||
PlayType_value = map[string]int32{
|
PlayType_value = map[string]int32{
|
||||||
"mainline": 0,
|
"moonfantasy": 0,
|
||||||
"pagoda": 1,
|
"mainline": 1,
|
||||||
"moonfantasy": 2,
|
"pagoda": 2,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -479,7 +479,7 @@ func (x *DBBattleRecord) GetPtype() PlayType {
|
|||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Ptype
|
return x.Ptype
|
||||||
}
|
}
|
||||||
return PlayType_mainline
|
return PlayType_moonfantasy
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DBBattleRecord) GetPlevel() string {
|
func (x *DBBattleRecord) GetPlevel() string {
|
||||||
@ -604,9 +604,9 @@ var file_battle_battle_db_proto_rawDesc = []byte{
|
|||||||
0x65, 0x12, 0x07, 0x0a, 0x03, 0x6e, 0x69, 0x6c, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x70, 0x76,
|
0x65, 0x12, 0x07, 0x0a, 0x03, 0x6e, 0x69, 0x6c, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x70, 0x76,
|
||||||
0x65, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x70, 0x76, 0x70, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03,
|
0x65, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x70, 0x76, 0x70, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03,
|
||||||
0x70, 0x76, 0x62, 0x10, 0x03, 0x2a, 0x35, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70,
|
0x70, 0x76, 0x62, 0x10, 0x03, 0x2a, 0x35, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70,
|
||||||
0x65, 0x12, 0x0c, 0x0a, 0x08, 0x6d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x10, 0x00, 0x12,
|
0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x6d, 0x6f, 0x6f, 0x6e, 0x66, 0x61, 0x6e, 0x74, 0x61, 0x73, 0x79,
|
||||||
0x0a, 0x0a, 0x06, 0x70, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x6d,
|
0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x6d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x10, 0x01,
|
||||||
0x6f, 0x6f, 0x6e, 0x66, 0x61, 0x6e, 0x74, 0x61, 0x73, 0x79, 0x10, 0x02, 0x2a, 0x1f, 0x0a, 0x0c,
|
0x12, 0x0a, 0x0a, 0x06, 0x70, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x10, 0x02, 0x2a, 0x1f, 0x0a, 0x0c,
|
||||||
0x42, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x06, 0x0a, 0x02,
|
0x42, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x06, 0x0a, 0x02,
|
||||||
0x69, 0x6e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x10, 0x02, 0x2a, 0x2b, 0x0a,
|
0x69, 0x6e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x10, 0x02, 0x2a, 0x2b, 0x0a,
|
||||||
0x0c, 0x44, 0x42, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x12, 0x08, 0x0a,
|
0x0c, 0x44, 0x42, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x12, 0x08, 0x0a,
|
||||||
|
@ -132,7 +132,7 @@ func (x *BattlePVEReq) GetPtype() PlayType {
|
|||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Ptype
|
return x.Ptype
|
||||||
}
|
}
|
||||||
return PlayType_mainline
|
return PlayType_moonfantasy
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *BattlePVEReq) GetTitle() string {
|
func (x *BattlePVEReq) GetTitle() string {
|
||||||
@ -236,7 +236,7 @@ func (x *BattleInfo) GetPtype() PlayType {
|
|||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Ptype
|
return x.Ptype
|
||||||
}
|
}
|
||||||
return PlayType_mainline
|
return PlayType_moonfantasy
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *BattleInfo) GetRedCompId() string {
|
func (x *BattleInfo) GetRedCompId() string {
|
||||||
|
@ -151,11 +151,11 @@ type DBHero struct {
|
|||||||
IsOverlying bool `protobuf:"varint,23,opt,name=isOverlying,proto3" json:"isOverlying"` // go_tags(`bson:"isOverlying"`) 是否允许叠加 默认true
|
IsOverlying bool `protobuf:"varint,23,opt,name=isOverlying,proto3" json:"isOverlying"` // go_tags(`bson:"isOverlying"`) 是否允许叠加 默认true
|
||||||
EnergyProperty map[string]int32 `protobuf:"bytes,24,rep,name=energyProperty,proto3" json:"energyProperty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3" bson:"energyProperty"` //
|
EnergyProperty map[string]int32 `protobuf:"bytes,24,rep,name=energyProperty,proto3" json:"energyProperty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3" bson:"energyProperty"` //
|
||||||
JuexProperty map[string]int32 `protobuf:"bytes,25,rep,name=juexProperty,proto3" json:"juexProperty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3" bson:"juexProperty"` ////hp
|
JuexProperty map[string]int32 `protobuf:"bytes,25,rep,name=juexProperty,proto3" json:"juexProperty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3" bson:"juexProperty"` ////hp
|
||||||
Status HeroType `protobuf:"varint,26,opt,name=status,proto3,enum=HeroType" json:"status" bson:"heroType"` //状态 (1 练功)
|
Status HeroType `protobuf:"varint,26,opt,name=status,proto3,enum=HeroType" json:"status" bson:"status"` //状态 (1 练功)
|
||||||
Suite1Star int32 `protobuf:"varint,27,opt,name=suite1Star,proto3" json:"suite1Star"`
|
Suite1Star int32 `protobuf:"varint,27,opt,name=suite1Star,proto3" json:"suite1Star" bson:"suite1Star"` //
|
||||||
Suite2Star int32 `protobuf:"varint,28,opt,name=suite2Star,proto3" json:"suite2Star"`
|
Suite2Star int32 `protobuf:"varint,28,opt,name=suite2Star,proto3" json:"suite2Star" bson:"suite2Star"`
|
||||||
Suite1Lv int32 `protobuf:"varint,29,opt,name=suite1Lv,proto3" json:"suite1Lv"`
|
Suite1Lv int32 `protobuf:"varint,29,opt,name=suite1Lv,proto3" json:"suite1Lv" bson:"suite1Lv"`
|
||||||
Suite2Lv int32 `protobuf:"varint,30,opt,name=suite2Lv,proto3" json:"suite2Lv"`
|
Suite2Lv int32 `protobuf:"varint,30,opt,name=suite2Lv,proto3" json:"suite2Lv" bson:"suite2Lv"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DBHero) Reset() {
|
func (x *DBHero) Reset() {
|
||||||
|
@ -577,6 +577,110 @@ func (x *MoonfantasyReceiveResp) GetIssucc() bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///购买挑战次数
|
||||||
|
type MoonfantasyBuyReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
BuyNum int32 `protobuf:"varint,1,opt,name=BuyNum,proto3" json:"BuyNum"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MoonfantasyBuyReq) Reset() {
|
||||||
|
*x = MoonfantasyBuyReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_moonfantasy_moonfantasy_msg_proto_msgTypes[10]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MoonfantasyBuyReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MoonfantasyBuyReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *MoonfantasyBuyReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_moonfantasy_moonfantasy_msg_proto_msgTypes[10]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use MoonfantasyBuyReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*MoonfantasyBuyReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_moonfantasy_moonfantasy_msg_proto_rawDescGZIP(), []int{10}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MoonfantasyBuyReq) GetBuyNum() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.BuyNum
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
///购买挑战次数 回应
|
||||||
|
type MoonfantasyBuyResp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Issucc bool `protobuf:"varint,1,opt,name=issucc,proto3" json:"issucc"` //是否成功
|
||||||
|
BattleNum int32 `protobuf:"varint,2,opt,name=BattleNum,proto3" json:"BattleNum"` //当前挑战次数
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MoonfantasyBuyResp) Reset() {
|
||||||
|
*x = MoonfantasyBuyResp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_moonfantasy_moonfantasy_msg_proto_msgTypes[11]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MoonfantasyBuyResp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*MoonfantasyBuyResp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *MoonfantasyBuyResp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_moonfantasy_moonfantasy_msg_proto_msgTypes[11]
|
||||||
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
if ms.LoadMessageInfo() == nil {
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
return ms
|
||||||
|
}
|
||||||
|
return mi.MessageOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Deprecated: Use MoonfantasyBuyResp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*MoonfantasyBuyResp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_moonfantasy_moonfantasy_msg_proto_rawDescGZIP(), []int{11}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MoonfantasyBuyResp) GetIssucc() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Issucc
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *MoonfantasyBuyResp) GetBattleNum() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.BattleNum
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
var File_moonfantasy_moonfantasy_msg_proto protoreflect.FileDescriptor
|
var File_moonfantasy_moonfantasy_msg_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
var file_moonfantasy_moonfantasy_msg_proto_rawDesc = []byte{
|
var file_moonfantasy_moonfantasy_msg_proto_rawDesc = []byte{
|
||||||
@ -634,8 +738,16 @@ var file_moonfantasy_moonfantasy_msg_proto_rawDesc = []byte{
|
|||||||
0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x30, 0x0a, 0x16, 0x4d, 0x6f, 0x6f, 0x6e, 0x66, 0x61,
|
0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x30, 0x0a, 0x16, 0x4d, 0x6f, 0x6f, 0x6e, 0x66, 0x61,
|
||||||
0x6e, 0x74, 0x61, 0x73, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70,
|
0x6e, 0x74, 0x61, 0x73, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70,
|
||||||
0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
|
0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08,
|
||||||
0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62,
|
0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x22, 0x2b, 0x0a, 0x11, 0x4d, 0x6f, 0x6f, 0x6e,
|
||||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x66, 0x61, 0x6e, 0x74, 0x61, 0x73, 0x79, 0x42, 0x75, 0x79, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a,
|
||||||
|
0x06, 0x42, 0x75, 0x79, 0x4e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x42,
|
||||||
|
0x75, 0x79, 0x4e, 0x75, 0x6d, 0x22, 0x4a, 0x0a, 0x12, 0x4d, 0x6f, 0x6f, 0x6e, 0x66, 0x61, 0x6e,
|
||||||
|
0x74, 0x61, 0x73, 0x79, 0x42, 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x69,
|
||||||
|
0x73, 0x73, 0x75, 0x63, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x73,
|
||||||
|
0x75, 0x63, 0x63, 0x12, 0x1c, 0x0a, 0x09, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x4e, 0x75, 0x6d,
|
||||||
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65, 0x4e, 0x75,
|
||||||
|
0x6d, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
|
0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -650,7 +762,7 @@ func file_moonfantasy_moonfantasy_msg_proto_rawDescGZIP() []byte {
|
|||||||
return file_moonfantasy_moonfantasy_msg_proto_rawDescData
|
return file_moonfantasy_moonfantasy_msg_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_moonfantasy_moonfantasy_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
var file_moonfantasy_moonfantasy_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
||||||
var file_moonfantasy_moonfantasy_msg_proto_goTypes = []interface{}{
|
var file_moonfantasy_moonfantasy_msg_proto_goTypes = []interface{}{
|
||||||
(*MoonfantasyGetListReq)(nil), // 0: MoonfantasyGetListReq
|
(*MoonfantasyGetListReq)(nil), // 0: MoonfantasyGetListReq
|
||||||
(*MoonfantasyGetListResp)(nil), // 1: MoonfantasyGetListResp
|
(*MoonfantasyGetListResp)(nil), // 1: MoonfantasyGetListResp
|
||||||
@ -662,18 +774,20 @@ var file_moonfantasy_moonfantasy_msg_proto_goTypes = []interface{}{
|
|||||||
(*MoonfantasyBattleResp)(nil), // 7: MoonfantasyBattleResp
|
(*MoonfantasyBattleResp)(nil), // 7: MoonfantasyBattleResp
|
||||||
(*MoonfantasyReceiveReq)(nil), // 8: MoonfantasyReceiveReq
|
(*MoonfantasyReceiveReq)(nil), // 8: MoonfantasyReceiveReq
|
||||||
(*MoonfantasyReceiveResp)(nil), // 9: MoonfantasyReceiveResp
|
(*MoonfantasyReceiveResp)(nil), // 9: MoonfantasyReceiveResp
|
||||||
(*DBMoonFantasy)(nil), // 10: DBMoonFantasy
|
(*MoonfantasyBuyReq)(nil), // 10: MoonfantasyBuyReq
|
||||||
(ErrorCode)(0), // 11: ErrorCode
|
(*MoonfantasyBuyResp)(nil), // 11: MoonfantasyBuyResp
|
||||||
(*BattleInfo)(nil), // 12: BattleInfo
|
(*DBMoonFantasy)(nil), // 12: DBMoonFantasy
|
||||||
(*BattleReport)(nil), // 13: BattleReport
|
(ErrorCode)(0), // 13: ErrorCode
|
||||||
|
(*BattleInfo)(nil), // 14: BattleInfo
|
||||||
|
(*BattleReport)(nil), // 15: BattleReport
|
||||||
}
|
}
|
||||||
var file_moonfantasy_moonfantasy_msg_proto_depIdxs = []int32{
|
var file_moonfantasy_moonfantasy_msg_proto_depIdxs = []int32{
|
||||||
10, // 0: MoonfantasyGetListResp.dfantasys:type_name -> DBMoonFantasy
|
12, // 0: MoonfantasyGetListResp.dfantasys:type_name -> DBMoonFantasy
|
||||||
11, // 1: MoonfantasyAskResp.code:type_name -> ErrorCode
|
13, // 1: MoonfantasyAskResp.code:type_name -> ErrorCode
|
||||||
10, // 2: MoonfantasyAskResp.info:type_name -> DBMoonFantasy
|
12, // 2: MoonfantasyAskResp.info:type_name -> DBMoonFantasy
|
||||||
11, // 3: MoonfantasyBattleResp.code:type_name -> ErrorCode
|
13, // 3: MoonfantasyBattleResp.code:type_name -> ErrorCode
|
||||||
12, // 4: MoonfantasyBattleResp.info:type_name -> BattleInfo
|
14, // 4: MoonfantasyBattleResp.info:type_name -> BattleInfo
|
||||||
13, // 5: MoonfantasyReceiveReq.report:type_name -> BattleReport
|
15, // 5: MoonfantasyReceiveReq.report:type_name -> BattleReport
|
||||||
6, // [6:6] is the sub-list for method output_type
|
6, // [6:6] is the sub-list for method output_type
|
||||||
6, // [6:6] is the sub-list for method input_type
|
6, // [6:6] is the sub-list for method input_type
|
||||||
6, // [6:6] is the sub-list for extension type_name
|
6, // [6:6] is the sub-list for extension type_name
|
||||||
@ -810,6 +924,30 @@ func file_moonfantasy_moonfantasy_msg_proto_init() {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
file_moonfantasy_moonfantasy_msg_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*MoonfantasyBuyReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_moonfantasy_moonfantasy_msg_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*MoonfantasyBuyResp); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
@ -817,7 +955,7 @@ func file_moonfantasy_moonfantasy_msg_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_moonfantasy_moonfantasy_msg_proto_rawDesc,
|
RawDescriptor: file_moonfantasy_moonfantasy_msg_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 10,
|
NumMessages: 12,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
42
sys/configure/structs/Game.DreamlandChallenge.go
Normal file
42
sys/configure/structs/Game.DreamlandChallenge.go
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
package cfg
|
||||||
|
|
||||||
|
type GameDreamlandChallenge struct {
|
||||||
|
_dataMap map[int32]*GameDreamlandChallengeData
|
||||||
|
_dataList []*GameDreamlandChallengeData
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewGameDreamlandChallenge(_buf []map[string]interface{}) (*GameDreamlandChallenge, error) {
|
||||||
|
_dataList := make([]*GameDreamlandChallengeData, 0, len(_buf))
|
||||||
|
dataMap := make(map[int32]*GameDreamlandChallengeData)
|
||||||
|
for _, _ele_ := range _buf {
|
||||||
|
if _v, err2 := DeserializeGameDreamlandChallengeData(_ele_); err2 != nil {
|
||||||
|
return nil, err2
|
||||||
|
} else {
|
||||||
|
_dataList = append(_dataList, _v)
|
||||||
|
dataMap[_v.Buynum] = _v
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return &GameDreamlandChallenge{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameDreamlandChallenge) GetDataMap() map[int32]*GameDreamlandChallengeData {
|
||||||
|
return table._dataMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameDreamlandChallenge) GetDataList() []*GameDreamlandChallengeData {
|
||||||
|
return table._dataList
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameDreamlandChallenge) Get(key int32) *GameDreamlandChallengeData {
|
||||||
|
return table._dataMap[key]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
50
sys/configure/structs/Game.DreamlandChallengeData.go
Normal file
50
sys/configure/structs/Game.DreamlandChallengeData.go
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
package cfg
|
||||||
|
|
||||||
|
import "errors"
|
||||||
|
|
||||||
|
type GameDreamlandChallengeData struct {
|
||||||
|
Buynum int32
|
||||||
|
Need []*Gameatn
|
||||||
|
}
|
||||||
|
|
||||||
|
const TypeId_GameDreamlandChallengeData = 1394403931
|
||||||
|
|
||||||
|
func (*GameDreamlandChallengeData) GetTypeId() int32 {
|
||||||
|
return 1394403931
|
||||||
|
}
|
||||||
|
|
||||||
|
func (_v *GameDreamlandChallengeData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||||
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buynum"].(float64); !_ok_ { err = errors.New("buynum error"); return }; _v.Buynum = int32(_tempNum_) }
|
||||||
|
{
|
||||||
|
var _arr_ []interface{}
|
||||||
|
var _ok_ bool
|
||||||
|
if _arr_, _ok_ = _buf["need"].([]interface{}); !_ok_ { err = errors.New("need error"); return }
|
||||||
|
|
||||||
|
_v.Need = 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.Need = append(_v.Need, _list_v_)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func DeserializeGameDreamlandChallengeData(_buf map[string]interface{}) (*GameDreamlandChallengeData, error) {
|
||||||
|
v := &GameDreamlandChallengeData{}
|
||||||
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
|
return v, nil
|
||||||
|
} else {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
}
|
42
sys/configure/structs/Game.DreamlandTrigger.go
Normal file
42
sys/configure/structs/Game.DreamlandTrigger.go
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
package cfg
|
||||||
|
|
||||||
|
type GameDreamlandTrigger struct {
|
||||||
|
_dataMap map[int32]*GameDreamlandTriggerData
|
||||||
|
_dataList []*GameDreamlandTriggerData
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewGameDreamlandTrigger(_buf []map[string]interface{}) (*GameDreamlandTrigger, error) {
|
||||||
|
_dataList := make([]*GameDreamlandTriggerData, 0, len(_buf))
|
||||||
|
dataMap := make(map[int32]*GameDreamlandTriggerData)
|
||||||
|
for _, _ele_ := range _buf {
|
||||||
|
if _v, err2 := DeserializeGameDreamlandTriggerData(_ele_); err2 != nil {
|
||||||
|
return nil, err2
|
||||||
|
} else {
|
||||||
|
_dataList = append(_dataList, _v)
|
||||||
|
dataMap[_v.Id] = _v
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return &GameDreamlandTrigger{_dataList:_dataList, _dataMap:dataMap}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameDreamlandTrigger) GetDataMap() map[int32]*GameDreamlandTriggerData {
|
||||||
|
return table._dataMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameDreamlandTrigger) GetDataList() []*GameDreamlandTriggerData {
|
||||||
|
return table._dataList
|
||||||
|
}
|
||||||
|
|
||||||
|
func (table *GameDreamlandTrigger) Get(key int32) *GameDreamlandTriggerData {
|
||||||
|
return table._dataMap[key]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
39
sys/configure/structs/Game.DreamlandTriggerData.go
Normal file
39
sys/configure/structs/Game.DreamlandTriggerData.go
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
package cfg
|
||||||
|
|
||||||
|
import "errors"
|
||||||
|
|
||||||
|
type GameDreamlandTriggerData struct {
|
||||||
|
Id int32
|
||||||
|
DreamlandPro int32
|
||||||
|
Open bool
|
||||||
|
}
|
||||||
|
|
||||||
|
const TypeId_GameDreamlandTriggerData = -1890310992
|
||||||
|
|
||||||
|
func (*GameDreamlandTriggerData) GetTypeId() int32 {
|
||||||
|
return -1890310992
|
||||||
|
}
|
||||||
|
|
||||||
|
func (_v *GameDreamlandTriggerData)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["dreamland_pro"].(float64); !_ok_ { err = errors.New("dreamland_pro error"); return }; _v.DreamlandPro = int32(_tempNum_) }
|
||||||
|
{ var _ok_ bool; if _v.Open, _ok_ = _buf["open"].(bool); !_ok_ { err = errors.New("open error"); return } }
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func DeserializeGameDreamlandTriggerData(_buf map[string]interface{}) (*GameDreamlandTriggerData, error) {
|
||||||
|
v := &GameDreamlandTriggerData{}
|
||||||
|
if err := v.Deserialize(_buf); err == nil {
|
||||||
|
return v, nil
|
||||||
|
} else {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user