Biome generation

This commit is contained in:
2026-03-19 13:45:33 -05:00
parent fedb426cfc
commit 6d97e5324c
8 changed files with 376 additions and 36 deletions
@@ -16,6 +16,9 @@ public class VisibleLocation
[BsonElement("coord")]
public LocationCoord Coord { get; set; } = new();
[BsonElement("biomeKey")]
public string BiomeKey { get; set; } = "plains";
[BsonElement("resources")]
public List<VisibleLocationResource> Resources { 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;
}