2 using System.Collections.Generic;
3 using System.Collections.ObjectModel;
7 using Vintagestory.API.Common.Entities;
8 using Vintagestory.API.MathTools;
9 using Vintagestory.API.Client;
13 using Newtonsoft.Json;
18 /// Basically the same as a POI but for an entity
21 public struct EntityOfInterest
27 [DisplayName(1, "Notes")]
31 [DisplayName(0, "Loc.")]
33 public BlockPos Location;
35 [DisplayName(2, "Time")]
37 public DateTime Timestamp;
39 [DisplayName(3, "ID")]
47 /// Entities of interest.
49 /// <remarks>Tracked by ID - these never leave.</remarks>
50 public class EntitiesOfInterest : KeyedCollection<long, EntityOfInterest>
52 protected override long GetKeyForItem(EntityOfInterest item)
55 internal void AddReplace(EntityOfInterest entity)
57 if (Contains(entity.EntityId))
58 Remove(entity.EntityId);