116 lines
2.8 KiB
C#
116 lines
2.8 KiB
C#
/*
|
|
* @Author: 白哉
|
|
* @Description:
|
|
* @Date: 2026年03月03日 星期二 15:03:01
|
|
* @Modify:
|
|
*/
|
|
|
|
|
|
using System.Collections.Generic;
|
|
using Logic;
|
|
using MemoryPack;
|
|
using RuntimeData;
|
|
|
|
|
|
namespace TH1_Logic.Collect
|
|
{
|
|
[MemoryPackable]
|
|
public partial class CollectData
|
|
{
|
|
public ulong MemberId;
|
|
public string Version;
|
|
public List<DamageCollectData> Damages;
|
|
public List<AddUnitCollectData> AddUnits;
|
|
public List<TransformUnitCollectData> TransformUnits;
|
|
public List<LearnTechCollectData> LearnTechs;
|
|
public List<OnTurnStartCollectData> OnTurnStarts;
|
|
public List<MatchGameEndCollectData> MatchGameEnds;
|
|
public List<PlayerGameEndCollectData> PlayerGameEnds;
|
|
|
|
|
|
public CollectData()
|
|
{
|
|
Damages = new List<DamageCollectData>();
|
|
AddUnits = new List<AddUnitCollectData>();
|
|
TransformUnits = new List<TransformUnitCollectData>();
|
|
LearnTechs = new List<LearnTechCollectData>();
|
|
OnTurnStarts = new List<OnTurnStartCollectData>();
|
|
MatchGameEnds = new List<MatchGameEndCollectData>();
|
|
PlayerGameEnds = new List<PlayerGameEndCollectData>();
|
|
}
|
|
}
|
|
|
|
|
|
[MemoryPackable]
|
|
public partial class DamageCollectData
|
|
{
|
|
public uint Turn;
|
|
public bool IsKill;
|
|
public Empire OriginEmpire;
|
|
public UnitFullType OriginUnitType;
|
|
public int OriginDamage;
|
|
|
|
public Empire TargetEmpire;
|
|
public UnitFullType TargetUnitType;
|
|
public int TargetDamage;
|
|
}
|
|
|
|
|
|
[MemoryPackable]
|
|
public partial class AddUnitCollectData
|
|
{
|
|
public uint Turn;
|
|
public Empire Empire;
|
|
public UnitFullType UnitType;
|
|
}
|
|
|
|
|
|
[MemoryPackable]
|
|
public partial class TransformUnitCollectData
|
|
{
|
|
public uint Turn;
|
|
public Empire Empire;
|
|
public UnitFullType OriginUnitType;
|
|
public UnitFullType TargetUnitType;
|
|
}
|
|
|
|
|
|
[MemoryPackable]
|
|
public partial class LearnTechCollectData
|
|
{
|
|
public uint Turn;
|
|
public Empire Empire;
|
|
public TechType TechType;
|
|
}
|
|
|
|
|
|
[MemoryPackable]
|
|
public partial class OnTurnStartCollectData
|
|
{
|
|
public uint Turn;
|
|
public Empire Empire;
|
|
public int PlayerCoinPerTurn;
|
|
public int PlayerTechPointPerTurn;
|
|
public int CityCount;
|
|
public int MaxCityLevel;
|
|
public int AverageCityLevel;
|
|
public int TechCount;
|
|
}
|
|
|
|
|
|
[MemoryPackable]
|
|
public partial class MatchGameEndCollectData
|
|
{
|
|
public uint Turn;
|
|
public Empire Empire;
|
|
}
|
|
|
|
|
|
[MemoryPackable]
|
|
public partial class PlayerGameEndCollectData
|
|
{
|
|
public uint Turn;
|
|
public Empire SelfEmpire;
|
|
public Empire KillerEmpire;
|
|
}
|
|
} |