public static bool Equals(BattleAttributes attr1, BattleAttributes attr2) { if (object.ReferenceEquals(attr1, attr2)) { return(true); } if (attr1 == null || attr2 == null) { return(false); } if (attr1.BattleEndedAt != attr2.BattleEndedAt || attr1.DamagePercentage != attr2.DamagePercentage || attr1.TimeLeft != attr2.TimeLeft || attr1.LootCreditsEarned != attr2.LootCreditsEarned || attr1.LootMaterialsEarned != attr2.LootMaterialsEarned || attr1.LootContrabandEarned != attr2.LootContrabandEarned || attr1.DeathLogCount != attr2.DeathLogCount) { return(false); } int i = 0; int deathLogCount = attr1.DeathLogCount; while (i < deathLogCount) { if (attr1.deathLogUids[i] != attr2.deathLogUids[i]) { return(false); } if (attr1.deathLogTimes[i] != attr2.deathLogTimes[i]) { return(false); } i++; } return(true); }
public unsafe static long $Invoke1(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(BattleAttributes.Equals((BattleAttributes)GCHandledObjects.GCHandleToObject(*args), (BattleAttributes)GCHandledObjects.GCHandleToObject(args[1])))); }