};
}
+ #region Designators
+
internal static void DecodeSign(ICoreClientAPI clientAPI, PointsOfInterest poi, BlockPos posn, Block block)
{
#if DEBUG
poi.AddReplace(
new PointOfInterest
{
+ Name = "Sign",
Location = posn.Copy(),
Notes = signEntity.text,
- Timestamp = DateTimeOffset.UtcNow,
+ Timestamp = DateTime.UtcNow,
}
);
poi.AddReplace(
new PointOfInterest
{
+ Name = "Signpost",
Location = posn.Copy(),
Notes = string.Join(",", signEntity.textByCardinalDirection),
- Timestamp = DateTimeOffset.UtcNow,
+ Timestamp = DateTime.UtcNow,
}
);
internal static void KeepTrackOfMerchant(ICoreClientAPI clientAPI, EntitiesOfInterest poi, BlockPos posn, Entity entity)
{
- clientAPI.Logger.VerboseDebug("Trader: {0} @ {1}", entity.GetName(), posn);
+ //clientAPI.Logger.VerboseDebug("Trader: {0} @ {1}", entity.GetName(), posn);
- var message = $"{entity.GetName()}";
var traderJoe = entity as EntityTrader;
+ var message = $"{entity.GetName()} Alive: {traderJoe.Alive}";
if (traderJoe.TradeProps != null)
{
- message = $"{traderJoe.GetName()} Alive:{traderJoe.Alive} - Gears: {traderJoe.TradeProps.Money}, ";
+ message += $" - Gears: {traderJoe.TradeProps.Money}, ";
}
- poi.Upsert(entity, message);
+ poi.AddReplace(new EntityOfInterest
+ {
+ Name = "Trader",
+ Location = posn.Copy(),
+ Notes = message,
+ Timestamp = DateTime.UtcNow,
+ EntityId = entity.EntityId
+ });
}
internal static void DecodeTranslocator(ICoreClientAPI clientAPI, PointsOfInterest poi, BlockPos posn, Block block)
poi.AddReplace(
new PointOfInterest
{
+ Name = "Translocator",
Location = posn.Copy(),
Notes = textTarget.ToString(),
- Timestamp = DateTimeOffset.UtcNow,
+ Timestamp = DateTime.UtcNow,
}
);
}
}
+
+ #endregion
}
}