Remove custom OptionalType and use the default c# nullable type.

This commit is contained in:
hondacrx
2022-03-01 17:27:56 -05:00
parent cc08afe269
commit c14f1eb3dc
89 changed files with 924 additions and 976 deletions
+1 -2
View File
@@ -702,8 +702,7 @@ namespace Game.BattleGrounds
PVPMatchComplete pvpMatchComplete = new();
pvpMatchComplete.Winner = (byte)GetWinner();
pvpMatchComplete.Duration = (int)Math.Max(0, (GetElapsedTime() - (int)BattlegroundStartTimeIntervals.Delay2m) / Time.InMilliseconds);
pvpMatchComplete.LogData.Value = new();
BuildPvPLogDataPacket(out pvpMatchComplete.LogData.Value);
BuildPvPLogDataPacket(out pvpMatchComplete.LogData);
pvpMatchComplete.Write();
foreach (var pair in m_Players)
@@ -65,10 +65,11 @@ namespace Game.BattleGrounds
playerData.Faction = (byte)TeamId;
if (HonorableKills != 0 || Deaths != 0 || BonusHonor != 0)
{
playerData.Honor.Value = new();
playerData.Honor.Value.HonorKills = HonorableKills;
playerData.Honor.Value.Deaths = Deaths;
playerData.Honor.Value.ContributionPoints = BonusHonor;
PVPMatchStatistics.HonorData playerDataHonor = new();
playerDataHonor.HonorKills = HonorableKills;
playerDataHonor.Deaths = Deaths;
playerDataHonor.ContributionPoints = BonusHonor;
playerData.Honor = playerDataHonor;
}
playerData.DamageDone = DamageDone;