Files
gameauthapi/Models/DTOs/CreateSpawnableRequest.cs

22 lines
646 B
C#

using System.Collections.Generic;
namespace GameAuthApi.Models;
public class CreateSpawnableRequest
{
public string Name { get; set; }
public int SpawnRate { get; set; }
// Action players must perform to collect the item
public string CollectAction { get; set; }
// Possible outcomes of collecting the item
public List<CollectOutcome> CollectResults { get; set; } = [];
// Should the spawnable be removed after a successful action?
public bool ConsumeOnSuccess { get; set; } = false;
// Number of successful actions allowed before it disappears (0 for unlimited)
public int Uses { get; set; } = 0;
}