using MongoDB.Bson.Serialization.Attributes;

namespace LocationsApi.Models;

[BsonIgnoreExtraElements]
public class BiomeDefinition
{
    [BsonId]
    [BsonElement("biomeKey")]
    public string BiomeKey { get; set; } = string.Empty;

    [BsonElement("continuationWeight")]
    public double ContinuationWeight { get; set; }

    [BsonElement("transitionWeights")]
    public List<BiomeTransitionWeight> TransitionWeights { get; set; } = [];

    [BsonElement("objectSpawnRules")]
    public List<BiomeObjectSpawnRule> ObjectSpawnRules { get; set; } = [];

    [BsonElement("updatedUtc")]
    public DateTime UpdatedUtc { get; set; } = DateTime.UtcNow;
}
