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.
53 lines
1.2 KiB
C#
53 lines
1.2 KiB
C#
using System;
|
|
using LitJson;
|
|
|
|
namespace Wizard;
|
|
|
|
public class PlayedTogetherHistory : HeaderData
|
|
{
|
|
public const int FRIEND_STATUS_NO_ACTION = 0;
|
|
|
|
public const int FRIEND_STATUS_IS_FRIEND = 1;
|
|
|
|
public const int FRIEND_STATUS_IS_SEND = 2;
|
|
|
|
public const int FRIEND_STATUS_IS_RECEIVED = 3;
|
|
|
|
public int ViewerId;
|
|
|
|
public string Name;
|
|
|
|
public string CountryCode;
|
|
|
|
public int Rank;
|
|
|
|
public long EmblemId;
|
|
|
|
public int DegreeId;
|
|
|
|
public DateTime LastPlayTime;
|
|
|
|
public int FriendStatus;
|
|
|
|
public DateTime PlayedTime;
|
|
|
|
public int ApplyId;
|
|
|
|
public BattleParameter BattleParameter;
|
|
|
|
public PlayedTogetherHistory(JsonData data)
|
|
{
|
|
ViewerId = data["viewer_id"].ToInt();
|
|
Name = data["name"].ToString();
|
|
CountryCode = data["country_code"].ToString();
|
|
Rank = data["rank"].ToInt();
|
|
EmblemId = data["emblem_id"].ToLong();
|
|
DegreeId = data["degree_id"].ToInt();
|
|
LastPlayTime = DateTime.Parse(data["last_play_time"].ToString());
|
|
FriendStatus = data["friend_status"].ToInt();
|
|
PlayedTime = DateTime.Parse(data["played_time"].ToString());
|
|
ApplyId = data["friend_apply_id"].ToInt();
|
|
BattleParameter = BattleParameter.JsonToBattleParameter(data);
|
|
}
|
|
}
|