public void method_0(HeroPet.EnemyLocatorResult enemyLocatorResult_0) { this.LastTick = DateTimeOffset.Now; if (enemyLocatorResult_0.Found) { this.LastFound = this.LastTick; } this.WasLastFound = enemyLocatorResult_0.Found; }
public void method_0(HeroPet.EnemyLocatorResult enemyLocatorResult_0) { Dictionary <int, EnemyLocatorResultCollection.Entry> entries = this.Entries; lock (entries) { EnemyLocatorResultCollection.Entry entry; if (!this.Entries.TryGetValue(enemyLocatorResult_0.Id, out entry)) { Dictionary <int, EnemyLocatorResultCollection.Entry> entries2 = this.Entries; int id = enemyLocatorResult_0.Id; EnemyLocatorResultCollection.Entry entry2 = new EnemyLocatorResultCollection.Entry(); entry2.Id = enemyLocatorResult_0.Id; entry = entry2; entries2[id] = entry2; } entry.method_0(enemyLocatorResult_0); } }