feat(battle-engine): full Unity/VFX/god-object shims + expanded copy closure (2570 files)
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.
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
using System.Collections.Generic;
|
||||
using LitJson;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class RedEtherCampaignResultData
|
||||
{
|
||||
public class ClearMissionInfo
|
||||
{
|
||||
public string MissionText { get; private set; }
|
||||
|
||||
public int RedEther { get; private set; }
|
||||
|
||||
public ClearMissionInfo(JsonData json)
|
||||
{
|
||||
MissionText = json["mission_name"].ToString();
|
||||
RedEther = json["reward_number"].ToInt();
|
||||
}
|
||||
|
||||
public ClearMissionInfo(string text, int ether)
|
||||
{
|
||||
MissionText = text;
|
||||
RedEther = ether;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsEnable { get; private set; }
|
||||
|
||||
public int BeforeDailyEther { get; private set; }
|
||||
|
||||
public int AfterDailyEther { get; private set; }
|
||||
|
||||
public int MaxDailyEther { get; private set; }
|
||||
|
||||
public int CanGainBattleWin { get; private set; }
|
||||
|
||||
public int BattleRewardEther { get; private set; }
|
||||
|
||||
public List<ClearMissionInfo> ClearMissionList { get; private set; } = new List<ClearMissionInfo>();
|
||||
|
||||
public List<ReceivedReward> RewardList { get; private set; } = new List<ReceivedReward>();
|
||||
|
||||
public float BeforeGaugeValue
|
||||
{
|
||||
get
|
||||
{
|
||||
float num = BeforeDailyEther;
|
||||
float num2 = MaxDailyEther;
|
||||
return num / num2;
|
||||
}
|
||||
}
|
||||
|
||||
public float AfterGaugeValue
|
||||
{
|
||||
get
|
||||
{
|
||||
float num = AfterDailyEther;
|
||||
float num2 = MaxDailyEther;
|
||||
return num / num2;
|
||||
}
|
||||
}
|
||||
|
||||
public RedEtherCampaignResultData(JsonData json)
|
||||
{
|
||||
BeforeDailyEther = json["before_red_ether"].ToInt();
|
||||
AfterDailyEther = json["after_red_ethe"].ToInt();
|
||||
MaxDailyEther = json["max_gain_red_ethe"].ToInt();
|
||||
CanGainBattleWin = json["can_gain_times_by_battle"].ToInt();
|
||||
BattleRewardEther = json["current_gain_red_ether_by_battle"].ToInt();
|
||||
JsonData jsonData = json["achieved_mission_info_list"];
|
||||
for (int i = 0; i < jsonData.Count; i++)
|
||||
{
|
||||
ClearMissionInfo clearMissionInfo = new ClearMissionInfo(jsonData[i]);
|
||||
ClearMissionList.Add(clearMissionInfo);
|
||||
RewardList.Add(new ReceivedReward(1, 0L, clearMissionInfo.RedEther));
|
||||
}
|
||||
if (BattleRewardEther > 0)
|
||||
{
|
||||
RewardList.Add(new ReceivedReward(1, 0L, BattleRewardEther));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user