34 lines
919 B
C#
34 lines
919 B
C#
namespace Wizard;
|
|
|
|
public class CompetitionPermanentEntryTask : BaseTask
|
|
{
|
|
public class CompetitionPermanentEntryTaskParam : BaseParam
|
|
{
|
|
public int consume_item_type;
|
|
}
|
|
|
|
public CompetitionPermanentEntryTask()
|
|
{
|
|
base.type = ApiType.Type.CompetitionPermanentEntry;
|
|
}
|
|
|
|
public void SetParameter(ArenaData.eARENA_PAY inPayType)
|
|
{
|
|
CompetitionPermanentEntryTaskParam competitionPermanentEntryTaskParam = new CompetitionPermanentEntryTaskParam();
|
|
competitionPermanentEntryTaskParam.consume_item_type = (int)inPayType;
|
|
base.Params = competitionPermanentEntryTaskParam;
|
|
}
|
|
|
|
protected override int Parse()
|
|
{
|
|
int num = base.Parse();
|
|
if (num != 1)
|
|
{
|
|
return num;
|
|
}
|
|
PlayerStaticData.UpdateHaveUserGoodsNumByJsonData(base.ResponseData["data"]["reward_list"]);
|
|
Data.ArenaData.CompetitionData.SetRestChallangeCountByEntry(base.ResponseData["data"]);
|
|
return num;
|
|
}
|
|
}
|