Adding endpoint to only get locations visible to character
Deploy Promiscuity Auth API / deploy (push) Successful in 48s
Deploy Promiscuity Character API / deploy (push) Successful in 59s
Deploy Promiscuity Locations API / deploy (push) Successful in 44s
k8s smoke test / test (push) Successful in 7s

This commit is contained in:
2026-03-13 10:49:57 -05:00
parent 4ba06bf7e0
commit 84f8087647
16 changed files with 865 additions and 51 deletions
@@ -15,5 +15,7 @@ public class Character
public Coord Coord { get; set; } = new();
public int VisionRadius { get; set; } = 3;
public DateTime CreatedUtc { get; set; } = DateTime.UtcNow;
}
@@ -0,0 +1,17 @@
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace CharacterApi.Models;
public class VisibleLocation
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string? Id { get; set; }
[BsonElement("name")]
public string Name { get; set; } = string.Empty;
[BsonElement("coord")]
public Coord Coord { get; set; } = new();
}