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
24 [DisplayName(0, "Name")]
28 [DisplayName(2, "Notes")]
32 [DisplayName(1, "Loc.")]
34 public BlockPos Location;
36 [DisplayName(3, "Time")]
38 public DateTime Timestamp;
40 [DisplayName(4, "ID")]
48 /// Entities of interest.
50 /// <remarks>Tracked by ID - these never leave.</remarks>
51 public class EntitiesOfInterest : KeyedCollection<long, EntityOfInterest>
53 protected override long GetKeyForItem(EntityOfInterest item)
56 internal void AddReplace(EntityOfInterest entity)
58 if (Contains(entity.EntityId))
59 Remove(entity.EntityId);