// // generated using ContentTool. DO NOT EDIT! // using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Collections.ObjectModel; using Newtonsoft.Json.Converters; using Newtonsoft.Json; namespace MetaAssets { #pragma warning disable public partial class BuildingLfMetaDataMutable { [JsonProperty("Id")] public int Id { get; set; } [JsonProperty("InstanceType")] public InstanceType InstanceType { get; set; } [JsonProperty("ItemType")] public ItemType ItemType { get; set; } [JsonProperty("ItemId")] public int ItemId { get; set; } [JsonProperty("NFT")] public bool NFT { get; set; } [JsonProperty("PositionX")] public string PositionX { get; set; } [JsonProperty("PositionY")] public string PositionY { get; set; } [JsonProperty("Rotation")] public string Rotation { get; set; } [JsonProperty("Usable")] public bool Usable { get; set; } [JsonProperty("Function")] public string Function { get; set; } } public partial class BuildingLfMetaTableMutable { [JsonProperty("BuildingLfMetaDataList")] public IList BuildingLfMetaDataList { get; set; } } ////////////////////////////// // readonly class ////////////////////////////// public partial class BuildingLfMetaData { public readonly int Id; public readonly InstanceType InstanceType; public readonly ItemType ItemType; public readonly int ItemId; public readonly bool NFT; public readonly string PositionX; public readonly string PositionY; public readonly string Rotation; public readonly bool Usable; public readonly string Function; public BuildingLfMetaData(BuildingLfMetaDataMutable data) { Id = data.Id; InstanceType = data.InstanceType; ItemType = data.ItemType; ItemId = data.ItemId; NFT = data.NFT; PositionX = data.PositionX; PositionY = data.PositionY; Rotation = data.Rotation; Usable = data.Usable; Function = data.Function; } } public partial class BuildingLfMetaTable { public readonly IReadOnlyList BuildingLfMetaDataList; public BuildingLfMetaTable(BuildingLfMetaTableMutable data) { if(data.BuildingLfMetaDataList != null) BuildingLfMetaDataList = data.BuildingLfMetaDataList.Select(x => new BuildingLfMetaData(x)).ToList().AsReadOnly(); } } }