Added complete crafting to the game. Next step would be research and buildings. Updated DSL with Setup to work with dynamic loading.
This commit is contained in:
@@ -27,4 +27,15 @@ public class ItemData
|
||||
|
||||
[JsonPropertyName("stacksize")]
|
||||
public int StackSize { get; set; }
|
||||
|
||||
public string GetReadableName()
|
||||
{
|
||||
string noUnderscore = Id.Replace("_", " ").ToLower();
|
||||
return char.ToUpper(noUnderscore[0]) + noUnderscore.Substring(1);
|
||||
}
|
||||
|
||||
public static string GetIndex(string readable)
|
||||
{
|
||||
return readable.ToLower().Replace(" ", "_");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user