- Regenerate 31 VFX/View/UI/Touch stubs to keep their decomp ': base(...)' / ': this(...)' ctor initializers (m1_stub_gen was dropping them -> CS7036/CS1729 when the copied base has no parameterless ctor). Whole base-ctor cluster cleared. - UnityEngine.Event: add rawType/keyCode/modifiers/Use() + EventType enum (NGUI UIInput/UIInputOnGUI legacy IMGUI path). - Reward: copy the real Wizard.Scripts.Network.Data.TaskData.Arena.Reward verbatim (was an empty ambiguous-name shim in LooseEnds); deps (UserGoods/JsonData) present. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
29 lines
598 B
C#
29 lines
598 B
C#
using LitJson;
|
|
|
|
namespace Wizard.Scripts.Network.Data.TaskData.Arena;
|
|
|
|
public class Reward
|
|
{
|
|
public int num;
|
|
|
|
public int _effectId;
|
|
|
|
public string _name;
|
|
|
|
public UserGoods UserGoodsData { get; private set; }
|
|
|
|
public Reward(JsonData data)
|
|
{
|
|
num = data["reward_number"].ToInt();
|
|
if (data.Keys.Contains("effect_id"))
|
|
{
|
|
_effectId = data["effect_id"].ToInt();
|
|
}
|
|
if (data.Keys.Contains("name"))
|
|
{
|
|
_name = data["name"].ToString();
|
|
}
|
|
UserGoodsData = new UserGoods((UserGoods.Type)data["reward_type"].ToInt(), data["reward_detail_id"].ToLong());
|
|
}
|
|
}
|