34 lines
785 B
C#
34 lines
785 B
C#
using System.Collections.Generic;
|
|
using System.Text.Json.Serialization;
|
|
|
|
public class ResearchData
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public string Id { get; set; }
|
|
|
|
[JsonPropertyName("inputs")]
|
|
public List<Ingredient> Inputs { get; set; }
|
|
|
|
[JsonPropertyName("research")]
|
|
public string Research { get; set; }
|
|
|
|
[JsonPropertyName("crafttime")]
|
|
public double CraftTime { get; set; }
|
|
|
|
[JsonPropertyName("texture")]
|
|
public string Texture { get; set; }
|
|
|
|
[JsonPropertyName("effects")]
|
|
public List<ResearchEffect> Effects { get; set; }
|
|
|
|
public string GetReadableName()
|
|
{
|
|
return ItemData.GetReadableName(Id);
|
|
}
|
|
|
|
public static string GetIndex(string readable)
|
|
{
|
|
return readable.ToLower().Replace(" ", "_");
|
|
}
|
|
}
|