/// Actual Physical Point in space - that is interesting.
/// </summary>
public struct PointOfInterest
- {
+ {
public string Notes;
public BlockPos Location;
public DateTimeOffset Timestamp;
{
protected override BlockPos GetKeyForItem(PointOfInterest item)
{
- return item.Location;
+ return item.Location;
}
internal void AddReplace(PointOfInterest poi)
{
- if (this.Contains(poi.Location)) {
- this.Remove(poi.Location);
- this.Add(poi);
- }
- else {
- this.Add(poi);
- }
+ if (this.Contains(poi.Location))
+ {
+ this.Remove(poi.Location);
+ this.Add(poi);
+ }
+ else
+ {
+ this.Add(poi);
+ }
}
}