diff --git a/bin/json/game_dreamlandchallenge.json b/bin/json/game_dreamlandchallenge.json
new file mode 100644
index 000000000..b66be6731
--- /dev/null
+++ b/bin/json/game_dreamlandchallenge.json
@@ -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
+ }
+ ]
+ }
+]
\ No newline at end of file
diff --git a/bin/json/game_dreamlandtrigger.json b/bin/json/game_dreamlandtrigger.json
new file mode 100644
index 000000000..7ed420298
--- /dev/null
+++ b/bin/json/game_dreamlandtrigger.json
@@ -0,0 +1,12 @@
+[
+ {
+ "id": 1,
+ "dreamland_pro": 500,
+ "open": true
+ },
+ {
+ "id": 2,
+ "dreamland_pro": 100,
+ "open": false
+ }
+]
\ No newline at end of file
diff --git a/modules/moonfantasy/api_buy.go b/modules/moonfantasy/api_buy.go
new file mode 100644
index 000000000..cd1f30981
--- /dev/null
+++ b/modules/moonfantasy/api_buy.go
@@ -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
+}
diff --git a/modules/moonfantasy/configure.go b/modules/moonfantasy/configure.go
index 2675ef485..b065394b0 100644
--- a/modules/moonfantasy/configure.go
+++ b/modules/moonfantasy/configure.go
@@ -10,7 +10,9 @@ import (
)
const (
- game_dreamlandboos = "game_dreamlandboos.json"
+ game_dreamlandboos = "game_dreamlandboos.json"
+ game_dreamlandchallenge = "game_dreamlandchallenge.json"
+ game_dreamlandtrigger = "game_dreamlandtrigger.json"
)
///背包配置管理组件
diff --git a/pb/battle_db.pb.go b/pb/battle_db.pb.go
index d64a47573..b4837786f 100644
--- a/pb/battle_db.pb.go
+++ b/pb/battle_db.pb.go
@@ -76,22 +76,22 @@ func (BattleType) EnumDescriptor() ([]byte, []int) {
type PlayType int32
const (
- PlayType_mainline PlayType = 0 //主线玩法
- PlayType_pagoda PlayType = 1 //爬塔
- PlayType_moonfantasy PlayType = 2 //月之秘境
+ PlayType_moonfantasy PlayType = 0 //月之秘境
+ PlayType_mainline PlayType = 1 //主线玩法
+ PlayType_pagoda PlayType = 2 //爬塔
)
// Enum value maps for PlayType.
var (
PlayType_name = map[int32]string{
- 0: "mainline",
- 1: "pagoda",
- 2: "moonfantasy",
+ 0: "moonfantasy",
+ 1: "mainline",
+ 2: "pagoda",
}
PlayType_value = map[string]int32{
- "mainline": 0,
- "pagoda": 1,
- "moonfantasy": 2,
+ "moonfantasy": 0,
+ "mainline": 1,
+ "pagoda": 2,
}
)
@@ -479,7 +479,7 @@ func (x *DBBattleRecord) GetPtype() PlayType {
if x != nil {
return x.Ptype
}
- return PlayType_mainline
+ return PlayType_moonfantasy
}
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, 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,
- 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x6d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x10, 0x00, 0x12,
- 0x0a, 0x0a, 0x06, 0x70, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x6d,
- 0x6f, 0x6f, 0x6e, 0x66, 0x61, 0x6e, 0x74, 0x61, 0x73, 0x79, 0x10, 0x02, 0x2a, 0x1f, 0x0a, 0x0c,
+ 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x6d, 0x6f, 0x6f, 0x6e, 0x66, 0x61, 0x6e, 0x74, 0x61, 0x73, 0x79,
+ 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x6d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x10, 0x01,
+ 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,
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,
diff --git a/pb/battle_msg.pb.go b/pb/battle_msg.pb.go
index 71ec3f8c1..8e05c4142 100644
--- a/pb/battle_msg.pb.go
+++ b/pb/battle_msg.pb.go
@@ -132,7 +132,7 @@ func (x *BattlePVEReq) GetPtype() PlayType {
if x != nil {
return x.Ptype
}
- return PlayType_mainline
+ return PlayType_moonfantasy
}
func (x *BattlePVEReq) GetTitle() string {
@@ -236,7 +236,7 @@ func (x *BattleInfo) GetPtype() PlayType {
if x != nil {
return x.Ptype
}
- return PlayType_mainline
+ return PlayType_moonfantasy
}
func (x *BattleInfo) GetRedCompId() string {
diff --git a/pb/hero_db.pb.go b/pb/hero_db.pb.go
index c005dade1..1ccf64cab 100644
--- a/pb/hero_db.pb.go
+++ b/pb/hero_db.pb.go
@@ -151,11 +151,11 @@ type DBHero struct {
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"` //
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 练功)
- Suite1Star int32 `protobuf:"varint,27,opt,name=suite1Star,proto3" json:"suite1Star"`
- Suite2Star int32 `protobuf:"varint,28,opt,name=suite2Star,proto3" json:"suite2Star"`
- Suite1Lv int32 `protobuf:"varint,29,opt,name=suite1Lv,proto3" json:"suite1Lv"`
- Suite2Lv int32 `protobuf:"varint,30,opt,name=suite2Lv,proto3" json:"suite2Lv"`
+ 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" bson:"suite1Star"` //
+ Suite2Star int32 `protobuf:"varint,28,opt,name=suite2Star,proto3" json:"suite2Star" bson:"suite2Star"`
+ Suite1Lv int32 `protobuf:"varint,29,opt,name=suite1Lv,proto3" json:"suite1Lv" bson:"suite1Lv"`
+ Suite2Lv int32 `protobuf:"varint,30,opt,name=suite2Lv,proto3" json:"suite2Lv" bson:"suite2Lv"`
}
func (x *DBHero) Reset() {
diff --git a/pb/moonfantasy_msg.pb.go b/pb/moonfantasy_msg.pb.go
index 6d0be3a25..cfb3c2083 100644
--- a/pb/moonfantasy_msg.pb.go
+++ b/pb/moonfantasy_msg.pb.go
@@ -577,6 +577,110 @@ func (x *MoonfantasyReceiveResp) GetIssucc() bool {
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_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,
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,
- 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62,
- 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x22, 0x2b, 0x0a, 0x11, 0x4d, 0x6f, 0x6f, 0x6e,
+ 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 (
@@ -650,7 +762,7 @@ func file_moonfantasy_moonfantasy_msg_proto_rawDescGZIP() []byte {
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{}{
(*MoonfantasyGetListReq)(nil), // 0: MoonfantasyGetListReq
(*MoonfantasyGetListResp)(nil), // 1: MoonfantasyGetListResp
@@ -662,18 +774,20 @@ var file_moonfantasy_moonfantasy_msg_proto_goTypes = []interface{}{
(*MoonfantasyBattleResp)(nil), // 7: MoonfantasyBattleResp
(*MoonfantasyReceiveReq)(nil), // 8: MoonfantasyReceiveReq
(*MoonfantasyReceiveResp)(nil), // 9: MoonfantasyReceiveResp
- (*DBMoonFantasy)(nil), // 10: DBMoonFantasy
- (ErrorCode)(0), // 11: ErrorCode
- (*BattleInfo)(nil), // 12: BattleInfo
- (*BattleReport)(nil), // 13: BattleReport
+ (*MoonfantasyBuyReq)(nil), // 10: MoonfantasyBuyReq
+ (*MoonfantasyBuyResp)(nil), // 11: MoonfantasyBuyResp
+ (*DBMoonFantasy)(nil), // 12: DBMoonFantasy
+ (ErrorCode)(0), // 13: ErrorCode
+ (*BattleInfo)(nil), // 14: BattleInfo
+ (*BattleReport)(nil), // 15: BattleReport
}
var file_moonfantasy_moonfantasy_msg_proto_depIdxs = []int32{
- 10, // 0: MoonfantasyGetListResp.dfantasys:type_name -> DBMoonFantasy
- 11, // 1: MoonfantasyAskResp.code:type_name -> ErrorCode
- 10, // 2: MoonfantasyAskResp.info:type_name -> DBMoonFantasy
- 11, // 3: MoonfantasyBattleResp.code:type_name -> ErrorCode
- 12, // 4: MoonfantasyBattleResp.info:type_name -> BattleInfo
- 13, // 5: MoonfantasyReceiveReq.report:type_name -> BattleReport
+ 12, // 0: MoonfantasyGetListResp.dfantasys:type_name -> DBMoonFantasy
+ 13, // 1: MoonfantasyAskResp.code:type_name -> ErrorCode
+ 12, // 2: MoonfantasyAskResp.info:type_name -> DBMoonFantasy
+ 13, // 3: MoonfantasyBattleResp.code:type_name -> ErrorCode
+ 14, // 4: MoonfantasyBattleResp.info:type_name -> BattleInfo
+ 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 input_type
6, // [6:6] is the sub-list for extension type_name
@@ -810,6 +924,30 @@ func file_moonfantasy_moonfantasy_msg_proto_init() {
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{}
out := protoimpl.TypeBuilder{
@@ -817,7 +955,7 @@ func file_moonfantasy_moonfantasy_msg_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_moonfantasy_moonfantasy_msg_proto_rawDesc,
NumEnums: 0,
- NumMessages: 10,
+ NumMessages: 12,
NumExtensions: 0,
NumServices: 0,
},
diff --git a/sys/configure/structs/Game.DreamlandChallenge.go b/sys/configure/structs/Game.DreamlandChallenge.go
new file mode 100644
index 000000000..5d21ca3b5
--- /dev/null
+++ b/sys/configure/structs/Game.DreamlandChallenge.go
@@ -0,0 +1,42 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+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]
+}
+
+
diff --git a/sys/configure/structs/Game.DreamlandChallengeData.go b/sys/configure/structs/Game.DreamlandChallengeData.go
new file mode 100644
index 000000000..e5f254963
--- /dev/null
+++ b/sys/configure/structs/Game.DreamlandChallengeData.go
@@ -0,0 +1,50 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+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
+ }
+}
diff --git a/sys/configure/structs/Game.DreamlandTrigger.go b/sys/configure/structs/Game.DreamlandTrigger.go
new file mode 100644
index 000000000..0e178b221
--- /dev/null
+++ b/sys/configure/structs/Game.DreamlandTrigger.go
@@ -0,0 +1,42 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+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]
+}
+
+
diff --git a/sys/configure/structs/Game.DreamlandTriggerData.go b/sys/configure/structs/Game.DreamlandTriggerData.go
new file mode 100644
index 000000000..943d487f8
--- /dev/null
+++ b/sys/configure/structs/Game.DreamlandTriggerData.go
@@ -0,0 +1,39 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+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
+ }
+}