OSDN Git Service

change the way the metadata is exported, typos
[automap/automap.git] / Automap / Data / EntitiesOfInterest.cs
index ddb4053..9760c3b 100644 (file)
@@ -10,7 +10,7 @@ using Vintagestory.API.MathTools;
 namespace Automap
 {
        /// <summary>
-       /// Actual Physical Point in space - that is interesting.
+       /// Basically the same as a POI but for an entity
        /// </summary>
        public struct EntityOfInterest
        {
@@ -26,6 +26,8 @@ namespace Automap
        /// <remarks>Tracked by ID - these never leave.</remarks>
        public class EntitiesOfInterest : KeyedCollection<long, EntityOfInterest>
        {
+               protected override long GetKeyForItem(EntityOfInterest item)
+                       => item.EntityId;
 
                internal void AddReplace(EntityOfInterest entity)
                {
@@ -35,8 +37,6 @@ namespace Automap
                        Add(entity);
                }
 
-               protected override long GetKeyForItem(EntityOfInterest item)
-                       => item.EntityId;
        }
 }