Add classes for mapping a bsg items library object

This commit is contained in:
Chomp 2021-08-25 18:59:54 +01:00
parent 9aa4e25759
commit 240f9d1e57

View File

@ -0,0 +1,48 @@
using System.Collections.Generic;
namespace PMCGenerator.Models
{
public class ItemsLibRoot
{
public List<Dictionary<string, Item>> items { get; set; }
}
public class Item
{
public string _id { get; set; }
public string _name { get; set; }
public string _parent { get; set; }
public string _type { get; set; }
public Props _props { get; set; }
}
public class Props
{
public string Name { get; set; }
public string ShortName { get; set; }
public string Description { get; set; }
public List<Chamber> Chambers { get; set; }
public string defAmmo { get; set; }
}
public class Chamber
{
public string _name { get; set; }
public string _id { get; set; }
public string _parent { get; set; }
public ChamberProps _props { get; set; }
public bool _required { get; set; }
public bool _mergeSlotWithChildren { get; set; }
public string _proto { get; set; }
}
public class ChamberProps
{
public List<Filter> filters { get; set; }
}
public class Filter
{
public List<string> filter { get; set; }
}
}