2 using System.Collections.Generic;
3 using System.Collections.ObjectModel;
7 using Vintagestory.API.Common.Entities;
8 using Vintagestory.API.MathTools;
15 /// Actual Physical Point in space - that is interesting.
18 public struct EntityOfInterest
27 public BlockPos Location;
30 public DateTime Timestamp;
37 /// Entities of interest.
39 /// <remarks>Tracked by ID - these never leave.</remarks>
40 public class EntitiesOfInterest : KeyedCollection<long, EntityOfInterest>
43 internal void AddReplace(EntityOfInterest entity)
45 if (Contains(entity.EntityId))
46 Remove(entity.EntityId);
51 protected override long GetKeyForItem(EntityOfInterest item)