OSDN Git Service

commit the part that makes the map work
[automap/automap.git] / Automap / Data / EntitiesOfInterest.cs
index 9760c3b..d22f328 100644 (file)
@@ -1,23 +1,49 @@
 using System;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
-
+using System.IO;
 using System.Linq;
 
 using Vintagestory.API.Common.Entities;
 using Vintagestory.API.MathTools;
+using Vintagestory.API.Client;
+
+using ProtoBuf;
+
+using Newtonsoft.Json;
 
 namespace Automap
 {
        /// <summary>
        /// Basically the same as a POI but for an entity
        /// </summary>
+       [ProtoContract]
        public struct EntityOfInterest
        {
+
+               [DisplayName(0, "Name")]
+               [ProtoMember(1)]
+               public string Name;
+               
+               [DisplayName(2, "Notes")]
+               [ProtoMember(2)]
                public string Notes;
+
+               [DisplayName(1, "Loc.")]
+               public string PrettyLocation;
+
+               [ProtoMember(3)]
                public BlockPos Location;
-               public DateTimeOffset Timestamp;
+
+               [DisplayName(3, "Time")]
+               [ProtoMember(4)]
+               public DateTime Timestamp;
+
+               [DisplayName(4, "ID")]
+               [ProtoMember(5)]
                public long EntityId;
+
+
        }
 
        /// <summary>