Authored Unity primitive/object-model shim, VFX layer (control-flow-preserving, InstantVfx never invokes its action -- headless suppression), god-object stubs (GameMgr/EffectMgr/UIManager with faithfully-extracted nested enums), View/UI/Touch tree, LitJson+BetterList+Tuple copied, third-party stubs. Discovered Roslyn header-error masking: fixing class-header type errors unmasks body references, so the true copy closure is ~2570 files (was 782 under masking). Errors: masked-25720 -> 268; our shim files compile clean. Remaining: ~50 residual shim/external types, 24 NGUI UI-base overrides, static-type fixes, plus likely 1-2 more unmask waves.
44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using LitJson;
|
|
|
|
namespace Wizard;
|
|
|
|
public class QuestPointInfoTask : BaseTask
|
|
{
|
|
public List<QuestRewardInfo> RewardInfoList { get; private set; }
|
|
|
|
public DateTime StartTime { get; private set; }
|
|
|
|
public DateTime EndTime { get; private set; }
|
|
|
|
public int TotalPoint { get; private set; }
|
|
|
|
public int MaxPoint { get; private set; }
|
|
|
|
public QuestPointInfoTask()
|
|
{
|
|
base.type = ApiType.Type.QuestPoint;
|
|
}
|
|
|
|
protected override int Parse()
|
|
{
|
|
int num = base.Parse();
|
|
if (num != 1)
|
|
{
|
|
return num;
|
|
}
|
|
JsonData jsonData = base.ResponseData["data"];
|
|
StartTime = DateTime.Parse(jsonData["start_time"].ToString());
|
|
EndTime = DateTime.Parse(jsonData["end_time"].ToString());
|
|
TotalPoint = jsonData["total_point"].ToInt();
|
|
MaxPoint = jsonData["max_point"].ToInt();
|
|
RewardInfoList = new List<QuestRewardInfo>();
|
|
for (int i = 0; i < jsonData["reward_list"].Count; i++)
|
|
{
|
|
RewardInfoList.Add(new QuestRewardInfo(jsonData["reward_list"][i]));
|
|
}
|
|
return num;
|
|
}
|
|
}
|