feat(battle-engine): copy-loop closure to 3282 files (member-surface frontier)
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user