Exemple #1
0
    public string ReportFile;     // 战报路径

    public void Deserialize(PAthleticsLog data)
    {
        Name       = data.roleName;
        ReportFile = data.btVideoFile;
        BattleTime.SetTimeMilliseconds(data.btTime);
        Win        = (data.btResult == eBattleResult.BTR_WIN || data.btResult == eBattleResult.BTR_NARROW_VICTORY || data.btResult == eBattleResult.BTR_PERFECT_VICTORY);
        Number     = data.rankChange;
        FightScore = data.fighting;
        Icon       = data.headImage;
        Level      = data.level;
    }
    public ElapseTime ProduceRewardElapseTime; // 距离上次收获的经过的时间

    public override void Deserialize(PBuildInfo data)
    {
        base.Deserialize(data);

        ProduceRewardElapseTime.SetTimeMilliseconds(data.elapseTime);
    }