2021-08-25 18:59:54 +01:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2021-09-01 17:39:50 +03:00
|
|
|
|
namespace Common.Models
|
2021-08-25 18:59:54 +01:00
|
|
|
|
{
|
|
|
|
|
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
|
|
|
|
|
{
|
2022-08-18 20:44:25 +01:00
|
|
|
|
public string defMagType;
|
|
|
|
|
|
2021-08-25 18:59:54 +01:00
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public string ShortName { get; set; }
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
public List<Chamber> Chambers { get; set; }
|
2022-08-18 20:44:25 +01:00
|
|
|
|
public List<Cartridge> Cartridges { get;set;}
|
2021-09-01 17:39:50 +03:00
|
|
|
|
public List<Slot> Slots { get; set; }
|
2021-08-25 18:59:54 +01:00
|
|
|
|
public string defAmmo { get; set; }
|
2021-09-21 14:10:52 +01:00
|
|
|
|
public string weapClass { get; set; }
|
|
|
|
|
public string weapUseType { get; set; }
|
2022-08-18 20:44:25 +01:00
|
|
|
|
public string ammoCaliber { get; set; }
|
|
|
|
|
public string Caliber { get; set; }
|
2021-08-25 18:59:54 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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; }
|
|
|
|
|
}
|
|
|
|
|
|
2022-08-18 20:44:25 +01:00
|
|
|
|
public class Cartridge
|
|
|
|
|
{
|
|
|
|
|
public string _name { get; set; }
|
|
|
|
|
public string _id { get; set; }
|
|
|
|
|
public string _parent { get; set; }
|
|
|
|
|
public int _max_count { get; set; }
|
|
|
|
|
public ChamberProps _props { get; set; }
|
|
|
|
|
public string _proto { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2021-09-01 17:39:50 +03:00
|
|
|
|
public class Slot
|
|
|
|
|
{
|
|
|
|
|
public string _name { get; set; }
|
|
|
|
|
public bool _required { get; set; }
|
2022-08-18 20:44:25 +01:00
|
|
|
|
public ChamberProps _props { get;set;}
|
2021-09-01 17:39:50 +03:00
|
|
|
|
}
|
|
|
|
|
|
2021-08-25 18:59:54 +01:00
|
|
|
|
public class ChamberProps
|
|
|
|
|
{
|
|
|
|
|
public List<Filter> filters { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class Filter
|
|
|
|
|
{
|
|
|
|
|
public List<string> filter { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|