This commit is contained in:
hz
2026-03-19 16:44:12 -05:00
8 changed files with 942 additions and 740 deletions
@@ -1,23 +1,23 @@
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;
namespace CharacterApi.Models;
[BsonIgnoreExtraElements]
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;
namespace CharacterApi.Models;
[BsonIgnoreExtraElements]
public class VisibleLocation
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string? Id { get; set; }
[BsonElement("name")]
public string Name { get; set; } = string.Empty;
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string? Id { get; set; }
[BsonElement("name")]
public string Name { get; set; } = string.Empty;
[BsonElement("coord")]
public LocationCoord Coord { get; set; } = new();
[BsonElement("biomeKey")]
public string BiomeKey { get; set; } = string.Empty;
public string BiomeKey { get; set; } = "plains";
[BsonElement("locationObject")]
public VisibleLocationObject? LocationObject { get; set; }
@@ -0,0 +1,16 @@
using MongoDB.Bson.Serialization.Attributes;
namespace CharacterApi.Models;
[BsonIgnoreExtraElements]
public class VisibleLocationResource
{
[BsonElement("itemKey")]
public string ItemKey { get; set; } = string.Empty;
[BsonElement("remainingQuantity")]
public int RemainingQuantity { get; set; }
[BsonElement("gatherQuantity")]
public int GatherQuantity { get; set; } = 1;
}