Adding interactable object spawning

This commit is contained in:
2026-03-19 16:35:07 -05:00
parent 932f7be66b
commit 1aefd5ba88
12 changed files with 768 additions and 68 deletions
@@ -15,4 +15,10 @@ public class VisibleLocation
[BsonElement("coord")]
public LocationCoord Coord { get; set; } = new();
[BsonElement("biomeKey")]
public string BiomeKey { get; set; } = string.Empty;
[BsonElement("locationObject")]
public VisibleLocationObject? LocationObject { get; set; }
}
@@ -0,0 +1,21 @@
using MongoDB.Bson.Serialization.Attributes;
namespace CharacterApi.Models;
public class VisibleLocationObject
{
[BsonElement("id")]
public string Id { get; set; } = string.Empty;
[BsonElement("objectType")]
public string ObjectType { get; set; } = string.Empty;
[BsonElement("objectKey")]
public string ObjectKey { get; set; } = string.Empty;
[BsonElement("name")]
public string Name { get; set; } = string.Empty;
[BsonElement("state")]
public VisibleLocationObjectState State { get; set; } = new();
}
@@ -0,0 +1,15 @@
using MongoDB.Bson.Serialization.Attributes;
namespace CharacterApi.Models;
public class VisibleLocationObjectState
{
[BsonElement("itemKey")]
public string ItemKey { get; set; } = string.Empty;
[BsonElement("remainingQuantity")]
public int RemainingQuantity { get; set; }
[BsonElement("gatherQuantity")]
public int GatherQuantity { get; set; } = 1;
}