Adding endpoint to only get locations visible to character
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user