Files
gameauthapi/Models/Spawnable.cs
T

25 lines
688 B
C#

using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System.Collections.Generic;
namespace GameAuthApi.Models;
public class Spawnable
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; }
public string Name { get; set; }
public int SpawnRate { get; set; }
// Action required by the player to collect this spawnable item
public string CollectAction { get; set; }
// Possible outcomes of collecting this item
public List<CollectOutcome> CollectResults { get; set; } = [];
// If true, the spawnable item is removed after a successful action
public bool ConsumeOnSuccess { get; set; } = false;
}