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.
67 lines
1.6 KiB
C#
67 lines
1.6 KiB
C#
using System.Collections.Generic;
|
|
using LitJson;
|
|
using UnityEngine;
|
|
using Wizard;
|
|
using Wizard.Lottery;
|
|
|
|
public class RoomMatchResultReporter : IBattleResultReporter
|
|
{
|
|
private readonly GameObject m_reportEndAgentObj;
|
|
|
|
private readonly RoomMatchReportEndAgent m_reportEndAgent;
|
|
|
|
public bool IsEnd => m_reportEndAgent.IsEnd;
|
|
|
|
public int ClassExp => GetClassExp();
|
|
|
|
public List<UserAchievement> UserAchievement => GetUserAchievementList();
|
|
|
|
public List<UserMission> UserMission => GetUserMissionList();
|
|
|
|
public List<ReceivedReward> MissionRewards => Data.RoomMatchFinish.data._missionRewards;
|
|
|
|
public List<ReceivedReward> VictoryRewards => null;
|
|
|
|
public bool IsDataExist => Data.RoomMatchFinish.data != null;
|
|
|
|
public MyPageHomeDialogData HomeDialogData => null;
|
|
|
|
public LotteryApplyData LotteryData => Data.RoomMatchFinish.data.AchievedInfo._lotteryData;
|
|
|
|
public RoomMatchResultReporter()
|
|
{
|
|
m_reportEndAgentObj = new GameObject();
|
|
m_reportEndAgent = m_reportEndAgentObj.AddComponent<RoomMatchReportEndAgent>();
|
|
}
|
|
|
|
public void Report(bool isWin)
|
|
{
|
|
m_reportEndAgent.Finished();
|
|
}
|
|
|
|
public JsonData GetFinishResponseData()
|
|
{
|
|
return Data.RoomMatchFinish.data._responseData;
|
|
}
|
|
|
|
public List<UserAchievement> GetUserAchievementList()
|
|
{
|
|
return Data.RoomMatchFinish.data.achieved_achievement_list;
|
|
}
|
|
|
|
public List<UserMission> GetUserMissionList()
|
|
{
|
|
return Data.RoomMatchFinish.data.achieved_mission_list;
|
|
}
|
|
|
|
public void Destroy()
|
|
{
|
|
Object.Destroy(m_reportEndAgentObj);
|
|
}
|
|
|
|
public int GetClassExp()
|
|
{
|
|
return 0;
|
|
}
|
|
}
|