【易经宝库】开始获取活动数据
parent
8640018b87
commit
f79499faea
|
@ -469,7 +469,7 @@ PanelType = {
|
||||||
LingShouUpLv={14,16,1202},--灵兽升级
|
LingShouUpLv={14,16,1202},--灵兽升级
|
||||||
LingShouUpStar={14,16,1203},--灵兽升星
|
LingShouUpStar={14,16,1203},--灵兽升星
|
||||||
Celebration = {14,16,50003},--社稷大典
|
Celebration = {14,16,50003},--社稷大典
|
||||||
YiJingBaoKu = {14,16,50003},--易经宝库
|
YiJingBaoKu = {14,16,1004},--易经宝库
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -173,6 +173,8 @@ ConfigName = {
|
||||||
FreeTravelStore="FreeTravelStore",
|
FreeTravelStore="FreeTravelStore",
|
||||||
GodSacrificeConfig = "GodSacrificeConfig",
|
GodSacrificeConfig = "GodSacrificeConfig",
|
||||||
GodSacrificeSetting = "GodSacrificeSetting",
|
GodSacrificeSetting = "GodSacrificeSetting",
|
||||||
|
BlessingConfigNew = "BlessingConfigNew",
|
||||||
|
BlessingRewardPoolNew = "BlessingRewardPoolNew",
|
||||||
}
|
}
|
||||||
|
|
||||||
require "Framework/GameDataBase"
|
require "Framework/GameDataBase"
|
||||||
|
|
|
@ -13,6 +13,9 @@ GETSHEJIAWARDREQUEST = protobuf.Descriptor();
|
||||||
GETSHEJIAWARDREQUEST_ACTIVITYID_FIELD = protobuf.FieldDescriptor();
|
GETSHEJIAWARDREQUEST_ACTIVITYID_FIELD = protobuf.FieldDescriptor();
|
||||||
GETSHEJIAWARDRESPONSE = protobuf.Descriptor();
|
GETSHEJIAWARDRESPONSE = protobuf.Descriptor();
|
||||||
GETSHEJIAWARDRESPONSE_DROP_FIELD = protobuf.FieldDescriptor();
|
GETSHEJIAWARDRESPONSE_DROP_FIELD = protobuf.FieldDescriptor();
|
||||||
|
SELETSUBREWARDPOOLREQUEST = protobuf.Descriptor();
|
||||||
|
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD = protobuf.FieldDescriptor();
|
||||||
|
SELETSUBREWARDPOOLRESPONSE = protobuf.Descriptor();
|
||||||
|
|
||||||
COMMITSHEJIACTIVITYITEMREQUEST_ITEMID_FIELD.name = "itemId"
|
COMMITSHEJIACTIVITYITEMREQUEST_ITEMID_FIELD.name = "itemId"
|
||||||
COMMITSHEJIACTIVITYITEMREQUEST_ITEMID_FIELD.full_name = ".com.ljsd.jieling.protocols.CommitShejiActivityItemRequest.itemId"
|
COMMITSHEJIACTIVITYITEMREQUEST_ITEMID_FIELD.full_name = ".com.ljsd.jieling.protocols.CommitShejiActivityItemRequest.itemId"
|
||||||
|
@ -94,9 +97,35 @@ GETSHEJIAWARDRESPONSE.enum_types = {}
|
||||||
GETSHEJIAWARDRESPONSE.fields = {GETSHEJIAWARDRESPONSE_DROP_FIELD}
|
GETSHEJIAWARDRESPONSE.fields = {GETSHEJIAWARDRESPONSE_DROP_FIELD}
|
||||||
GETSHEJIAWARDRESPONSE.is_extendable = false
|
GETSHEJIAWARDRESPONSE.is_extendable = false
|
||||||
GETSHEJIAWARDRESPONSE.extensions = {}
|
GETSHEJIAWARDRESPONSE.extensions = {}
|
||||||
|
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.name = "selectId"
|
||||||
|
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.full_name = ".com.ljsd.jieling.protocols.SeletSubRewardPoolRequest.selectId"
|
||||||
|
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.number = 1
|
||||||
|
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.index = 0
|
||||||
|
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.label = 1
|
||||||
|
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.has_default_value = false
|
||||||
|
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.default_value = 0
|
||||||
|
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.type = 5
|
||||||
|
SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD.cpp_type = 1
|
||||||
|
|
||||||
|
SELETSUBREWARDPOOLREQUEST.name = "SeletSubRewardPoolRequest"
|
||||||
|
SELETSUBREWARDPOOLREQUEST.full_name = ".com.ljsd.jieling.protocols.SeletSubRewardPoolRequest"
|
||||||
|
SELETSUBREWARDPOOLREQUEST.nested_types = {}
|
||||||
|
SELETSUBREWARDPOOLREQUEST.enum_types = {}
|
||||||
|
SELETSUBREWARDPOOLREQUEST.fields = {SELETSUBREWARDPOOLREQUEST_SELECTID_FIELD}
|
||||||
|
SELETSUBREWARDPOOLREQUEST.is_extendable = false
|
||||||
|
SELETSUBREWARDPOOLREQUEST.extensions = {}
|
||||||
|
SELETSUBREWARDPOOLRESPONSE.name = "SeletSubRewardPoolResponse"
|
||||||
|
SELETSUBREWARDPOOLRESPONSE.full_name = ".com.ljsd.jieling.protocols.SeletSubRewardPoolResponse"
|
||||||
|
SELETSUBREWARDPOOLRESPONSE.nested_types = {}
|
||||||
|
SELETSUBREWARDPOOLRESPONSE.enum_types = {}
|
||||||
|
SELETSUBREWARDPOOLRESPONSE.fields = {}
|
||||||
|
SELETSUBREWARDPOOLRESPONSE.is_extendable = false
|
||||||
|
SELETSUBREWARDPOOLRESPONSE.extensions = {}
|
||||||
|
|
||||||
CommitShejiActivityItemRequest = protobuf.Message(COMMITSHEJIACTIVITYITEMREQUEST)
|
CommitShejiActivityItemRequest = protobuf.Message(COMMITSHEJIACTIVITYITEMREQUEST)
|
||||||
CommitShejiActivityItemResponse = protobuf.Message(COMMITSHEJIACTIVITYITEMRESPONSE)
|
CommitShejiActivityItemResponse = protobuf.Message(COMMITSHEJIACTIVITYITEMRESPONSE)
|
||||||
GetShejiAwardRequest = protobuf.Message(GETSHEJIAWARDREQUEST)
|
GetShejiAwardRequest = protobuf.Message(GETSHEJIAWARDREQUEST)
|
||||||
GetShejiAwardResponse = protobuf.Message(GETSHEJIAWARDRESPONSE)
|
GetShejiAwardResponse = protobuf.Message(GETSHEJIAWARDRESPONSE)
|
||||||
|
SeletSubRewardPoolRequest = protobuf.Message(SELETSUBREWARDPOOLREQUEST)
|
||||||
|
SeletSubRewardPoolResponse = protobuf.Message(SELETSUBREWARDPOOLRESPONSE)
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,8 @@
|
||||||
DynamicActivityManager = {}
|
DynamicActivityManager = {}
|
||||||
local this = DynamicActivityManager
|
local this = DynamicActivityManager
|
||||||
|
|
||||||
this.curLevel = 0
|
this.curLevel = 0--社稷大典的等级
|
||||||
|
this.curBaoKuLevel = 0--易经宝库等级
|
||||||
|
|
||||||
function this.Initialize()
|
function this.Initialize()
|
||||||
end
|
end
|
||||||
|
@ -16,7 +17,7 @@ function this.SheJiGetRankData(type,activityId,fun)
|
||||||
end,activityId)
|
end,activityId)
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.SetCurLevel(level)
|
function this.SetCurLevel(level)--社稷大典的等级
|
||||||
this.curLevel = level
|
this.curLevel = level
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -55,4 +56,16 @@ function this.SheJiCheckRedPoint()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function this.GetBaoKuData()
|
||||||
|
local ActInfo = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.Celebration)--活动数据
|
||||||
|
this.curBaoKuLevel = 1
|
||||||
|
local activityId = 7001--ActInfo.activityId
|
||||||
|
local BlessingConfigNew = ConfigManager.GetConfigDataByKey(ConfigName.BlessingConfigNewl,"ActivityId",activityId)
|
||||||
|
local curPool = BlessingConfigNew.BasicPoolId[this.curBaoKuLevel]
|
||||||
|
local BlessingRewardPoolNew = ConfigManager.GetAllConfigsDataByKey(ConfigName.BlessingRewardPoolNew,"PoolId",curPool)
|
||||||
|
local data={}
|
||||||
|
for i = 1, #ActInfo.mission do
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
return this
|
return this
|
|
@ -35,6 +35,9 @@ end
|
||||||
function YiJingBaoKu:BindEvent()
|
function YiJingBaoKu:BindEvent()
|
||||||
Util.AddClick(this.addBtn,function()
|
Util.AddClick(this.addBtn,function()
|
||||||
LogYellow("选择最终奖励")
|
LogYellow("选择最终奖励")
|
||||||
|
NetManager.SelectFinalRewardRequest(61,function ()
|
||||||
|
LogYellow("选择完了")
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Util.AddClick(this.refrashBtn,function()
|
Util.AddClick(this.refrashBtn,function()
|
||||||
|
@ -70,6 +73,7 @@ function YiJingBaoKu:OnShow(_sortingOrder,_parent)
|
||||||
|
|
||||||
sortingOrder = _sortingOrder
|
sortingOrder = _sortingOrder
|
||||||
parent = _parent
|
parent = _parent
|
||||||
|
|
||||||
YiJingBaoKu:Refresh()
|
YiJingBaoKu:Refresh()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -4714,4 +4714,20 @@ function this.GetSheJiRewardRequest(id,func)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--易经宝库选择最终奖励
|
||||||
|
function this.SelectFinalRewardRequest(id,func)
|
||||||
|
local data = ActivityProto_pb.SeletSubRewardPoolRequest()
|
||||||
|
data.selectId = id
|
||||||
|
local msg = data:SerializeToString()
|
||||||
|
Network:SendMessageWithCallBack(MessageTypeProto_pb.SeletSubRewardPoolRequest, MessageTypeProto_pb.SeletSubRewardPoolResponse, msg, function(buffer)
|
||||||
|
local data = buffer:DataByte()
|
||||||
|
local msg = ActivityProto_pb.SeletSubRewardPoolResponse()
|
||||||
|
msg:ParseFromString(data)
|
||||||
|
if func then
|
||||||
|
func(msg)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end
|
||||||
|
|
||||||
return this
|
return this
|
Loading…
Reference in New Issue