// // 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 BattleObjectMetaDataMutable { [JsonProperty("Id")] public int Id { get; set; } [JsonProperty("Name")] public string Name { get; set; } [JsonProperty("Description")] public string Desc { get; set; } [JsonProperty("AnchorBP")] public string AnchorBP { get; set; } [JsonProperty("RespawnTime")] public int RespawnTime { get; set; } [JsonProperty("Type")] public EBattleObjectType ObjectType { get; set; } [JsonProperty("TypeID")] public int TypeID { get; set; } [JsonProperty("Value")] public int ObjectValue { get; set; } [JsonProperty("InteractionTime")] public int InteractionTime { get; set; } [JsonProperty("GetBattleObjectID")] public int GetBattleObjectID { get; set; } [JsonProperty("AlwaysVisible")] public bool AlwaysVisible { get; set; } } public partial class BattleObjectMetaTableMutable { [JsonProperty("BattleObjectMetaDataList")] public IList BattleObjectMetaDataList { get; set; } } ////////////////////////////// // readonly class ////////////////////////////// public partial class BattleObjectMetaData { public readonly int Id; public readonly string Name; public readonly string Desc; public readonly string AnchorBP; public readonly int RespawnTime; public readonly EBattleObjectType ObjectType; public readonly int TypeID; public readonly int ObjectValue; public readonly int InteractionTime; public readonly int GetBattleObjectID; public readonly bool AlwaysVisible; public BattleObjectMetaData(BattleObjectMetaDataMutable data) { Id = data.Id; Name = data.Name; Desc = data.Desc; AnchorBP = data.AnchorBP; RespawnTime = data.RespawnTime; ObjectType = data.ObjectType; TypeID = data.TypeID; ObjectValue = data.ObjectValue; InteractionTime = data.InteractionTime; GetBattleObjectID = data.GetBattleObjectID; AlwaysVisible = data.AlwaysVisible; } } public partial class BattleObjectMetaTable { public readonly IReadOnlyList BattleObjectMetaDataList; public BattleObjectMetaTable(BattleObjectMetaTableMutable data) { if(data.BattleObjectMetaDataList != null) BattleObjectMetaDataList = data.BattleObjectMetaDataList.Select(x => new BattleObjectMetaData(x)).ToList().AsReadOnly(); } } }