Biome generation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user